mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Re-enable some of the disabled tests. Use FileCheck instead of grep to check
output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e64f810a5
commit
0b4a61548f
@ -1,12 +1,8 @@
|
|||||||
; DISABLED: llc < %s -march=mips | grep __adddf3
|
; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
|
||||||
; RUN: false
|
|
||||||
; XFAIL: *
|
|
||||||
|
|
||||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
|
|
||||||
target triple = "mipsallegrexel-unknown-psp-elf"
|
|
||||||
|
|
||||||
define double @dofloat(double %a, double %b) nounwind {
|
define double @dofloat(double %a, double %b) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: __adddf3
|
||||||
fadd double %a, %b ; <double>:0 [#uses=1]
|
fadd double %a, %b ; <double>:0 [#uses=1]
|
||||||
ret double %0
|
ret double %0
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
; DISABLED: llc < %s -march=mips | grep __extendsfdf2
|
; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
|
||||||
; RUN: false
|
|
||||||
; XFAIL: *
|
|
||||||
|
|
||||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
|
|
||||||
target triple = "mipsallegrexel-unknown-psp-elf"
|
|
||||||
|
|
||||||
define double @dofloat(float %a) nounwind {
|
define double @dofloat(float %a) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: __extendsfdf2
|
||||||
fpext float %a to double ; <double>:0 [#uses=1]
|
fpext float %a to double ; <double>:0 [#uses=1]
|
||||||
ret double %0
|
ret double %0
|
||||||
}
|
}
|
||||||
|
@ -1,34 +1,33 @@
|
|||||||
; DISABLED: llc < %s -march=mips -o %t
|
; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
|
||||||
; DISABLED: grep __floatsidf %t | count 1
|
|
||||||
; DISABLED: grep __floatunsidf %t | count 1
|
|
||||||
; DISABLED: grep __fixdfsi %t | count 1
|
|
||||||
; DISABLED: grep __fixunsdfsi %t | count 1
|
|
||||||
; RUN: false
|
|
||||||
; XFAIL: *
|
|
||||||
|
|
||||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
|
|
||||||
target triple = "mipsallegrexel-unknown-psp-elf"
|
|
||||||
|
|
||||||
define double @int2fp(i32 %a) nounwind {
|
define double @int2fp(i32 %a) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: int2fp
|
||||||
|
; CHECK: __floatsidf
|
||||||
sitofp i32 %a to double ; <double>:0 [#uses=1]
|
sitofp i32 %a to double ; <double>:0 [#uses=1]
|
||||||
ret double %0
|
ret double %0
|
||||||
}
|
}
|
||||||
|
|
||||||
define double @uint2double(i32 %a) nounwind {
|
define double @uint2double(i32 %a) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: uint2double
|
||||||
|
; CHECK: __floatunsidf
|
||||||
uitofp i32 %a to double ; <double>:0 [#uses=1]
|
uitofp i32 %a to double ; <double>:0 [#uses=1]
|
||||||
ret double %0
|
ret double %0
|
||||||
}
|
}
|
||||||
|
|
||||||
define i32 @double2int(double %a) nounwind {
|
define i32 @double2int(double %a) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: double2int
|
||||||
|
; CHECK: __fixdfsi
|
||||||
fptosi double %a to i32 ; <i32>:0 [#uses=1]
|
fptosi double %a to i32 ; <i32>:0 [#uses=1]
|
||||||
ret i32 %0
|
ret i32 %0
|
||||||
}
|
}
|
||||||
|
|
||||||
define i32 @double2uint(double %a) nounwind {
|
define i32 @double2uint(double %a) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: double2uint
|
||||||
|
; CHECK: __fixunsdfsi
|
||||||
fptoui double %a to i32 ; <i32>:0 [#uses=1]
|
fptoui double %a to i32 ; <i32>:0 [#uses=1]
|
||||||
ret i32 %0
|
ret i32 %0
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,23 @@
|
|||||||
; DISABLED: llc < %s -march=mips -o %t
|
; RUN: llc -march=mips -relocation-model=static < %s | FileCheck %s
|
||||||
; DISABLED: grep {rodata.str1.4,"aMS",@progbits} %t | count 1
|
|
||||||
; DISABLED: grep {r.data,} %t | count 1
|
|
||||||
; DISABLED: grep {\%hi} %t | count 2
|
|
||||||
; DISABLED: grep {\%lo} %t | count 2
|
|
||||||
; DISABLED: not grep {gp_rel} %t
|
|
||||||
; RUN: false
|
|
||||||
+; XFAIL: *
|
|
||||||
|
|
||||||
|
|
||||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
|
|
||||||
target triple = "mipsallegrexel-unknown-psp-elf"
|
|
||||||
@.str = internal unnamed_addr constant [10 x i8] c"AAAAAAAAA\00"
|
@.str = internal unnamed_addr constant [10 x i8] c"AAAAAAAAA\00"
|
||||||
@i0 = internal unnamed_addr constant [5 x i32] [ i32 0, i32 1, i32 2, i32 3, i32 4 ]
|
@i0 = internal unnamed_addr constant [5 x i32] [ i32 0, i32 1, i32 2, i32 3, i32 4 ]
|
||||||
|
|
||||||
define i8* @foo() nounwind {
|
define i8* @foo() nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: foo
|
||||||
|
; CHECK: %hi(.str)
|
||||||
|
; CHECK: %lo(.str)
|
||||||
ret i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0)
|
ret i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
define i32* @bar() nounwind {
|
define i32* @bar() nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: bar
|
||||||
|
; CHECK: %hi(i0)
|
||||||
|
; CHECK: %lo(i0)
|
||||||
ret i32* getelementptr ([5 x i32]* @i0, i32 0, i32 0)
|
ret i32* getelementptr ([5 x i32]* @i0, i32 0, i32 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; CHECK: rodata.str1.4,"aMS",@progbits
|
||||||
|
; CHECK: rodata,"a",@progbits
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
; DISABLED: llc < %s -march=mips | grep __truncdfsf2 | count 1
|
; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
|
||||||
; RUN: false
|
|
||||||
; XFAIL: *
|
|
||||||
|
|
||||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
|
|
||||||
target triple = "mipsallegrexel-unknown-psp-elf"
|
|
||||||
|
|
||||||
define float @round2float(double %a) nounwind {
|
define float @round2float(double %a) nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
; CHECK: __truncdfsf2
|
||||||
fptrunc double %a to float ; <float>:0 [#uses=1]
|
fptrunc double %a to float ; <float>:0 [#uses=1]
|
||||||
ret float %0
|
ret float %0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user