summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-09-21 17:36:30 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-09-21 17:36:30 +0000
commit0b4a61548f4c79b65a1f08883b0eeb972423a9f9 (patch)
tree056488539157859998052c8318487e7fa42f6067 /test/CodeGen
parent0e64f810a521806838bf90d77f081d3a1da98b5e (diff)
downloadllvm-0b4a61548f4c79b65a1f08883b0eeb972423a9f9.tar.gz
llvm-0b4a61548f4c79b65a1f08883b0eeb972423a9f9.tar.bz2
llvm-0b4a61548f4c79b65a1f08883b0eeb972423a9f9.tar.xz
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
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/Mips/2008-07-06-fadd64.ll8
-rw-r--r--test/CodeGen/Mips/2008-07-07-FPExtend.ll8
-rw-r--r--test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll19
-rw-r--r--test/CodeGen/Mips/2008-07-15-InternalConstant.ll22
-rw-r--r--test/CodeGen/Mips/2008-08-07-FPRound.ll8
5 files changed, 25 insertions, 40 deletions
diff --git a/test/CodeGen/Mips/2008-07-06-fadd64.ll b/test/CodeGen/Mips/2008-07-06-fadd64.ll
index 8b118eda63..ff8ed4d944 100644
--- a/test/CodeGen/Mips/2008-07-06-fadd64.ll
+++ b/test/CodeGen/Mips/2008-07-06-fadd64.ll
@@ -1,12 +1,8 @@
-; DISABLED: llc < %s -march=mips | grep __adddf3
-; 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"
+; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
define double @dofloat(double %a, double %b) nounwind {
entry:
+; CHECK: __adddf3
fadd double %a, %b ; <double>:0 [#uses=1]
ret double %0
}
diff --git a/test/CodeGen/Mips/2008-07-07-FPExtend.ll b/test/CodeGen/Mips/2008-07-07-FPExtend.ll
index 624293f57d..29c8e8446e 100644
--- a/test/CodeGen/Mips/2008-07-07-FPExtend.ll
+++ b/test/CodeGen/Mips/2008-07-07-FPExtend.ll
@@ -1,12 +1,8 @@
-; DISABLED: llc < %s -march=mips | grep __extendsfdf2
-; 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"
+; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
define double @dofloat(float %a) nounwind {
entry:
+; CHECK: __extendsfdf2
fpext float %a to double ; <double>:0 [#uses=1]
ret double %0
}
diff --git a/test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll b/test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll
index c8247029da..9a6bbdfb22 100644
--- a/test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll
+++ b/test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll
@@ -1,34 +1,33 @@
-; DISABLED: llc < %s -march=mips -o %t
-; 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"
+; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
define double @int2fp(i32 %a) nounwind {
entry:
+; CHECK: int2fp
+; CHECK: __floatsidf
sitofp i32 %a to double ; <double>:0 [#uses=1]
ret double %0
}
define double @uint2double(i32 %a) nounwind {
entry:
+; CHECK: uint2double
+; CHECK: __floatunsidf
uitofp i32 %a to double ; <double>:0 [#uses=1]
ret double %0
}
define i32 @double2int(double %a) nounwind {
entry:
+; CHECK: double2int
+; CHECK: __fixdfsi
fptosi double %a to i32 ; <i32>:0 [#uses=1]
ret i32 %0
}
define i32 @double2uint(double %a) nounwind {
entry:
+; CHECK: double2uint
+; CHECK: __fixunsdfsi
fptoui double %a to i32 ; <i32>:0 [#uses=1]
ret i32 %0
}
diff --git a/test/CodeGen/Mips/2008-07-15-InternalConstant.ll b/test/CodeGen/Mips/2008-07-15-InternalConstant.ll
index 4b83032605..29a7b5c376 100644
--- a/test/CodeGen/Mips/2008-07-15-InternalConstant.ll
+++ b/test/CodeGen/Mips/2008-07-15-InternalConstant.ll
@@ -1,25 +1,23 @@
-; DISABLED: llc < %s -march=mips -o %t
-; 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: *
+; RUN: llc -march=mips -relocation-model=static < %s | FileCheck %s
-
-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"
-@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 {
entry:
+; CHECK: foo
+; CHECK: %hi(.str)
+; CHECK: %lo(.str)
ret i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0)
}
define i32* @bar() nounwind {
entry:
+; CHECK: bar
+; CHECK: %hi(i0)
+; CHECK: %lo(i0)
ret i32* getelementptr ([5 x i32]* @i0, i32 0, i32 0)
}
+; CHECK: rodata.str1.4,"aMS",@progbits
+; CHECK: rodata,"a",@progbits
diff --git a/test/CodeGen/Mips/2008-08-07-FPRound.ll b/test/CodeGen/Mips/2008-08-07-FPRound.ll
index e3fa01844c..4fa43b6833 100644
--- a/test/CodeGen/Mips/2008-08-07-FPRound.ll
+++ b/test/CodeGen/Mips/2008-08-07-FPRound.ll
@@ -1,12 +1,8 @@
-; DISABLED: llc < %s -march=mips | grep __truncdfsf2 | 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"
+; RUN: llc -march=mips -mattr=single-float < %s | FileCheck %s
define float @round2float(double %a) nounwind {
entry:
+; CHECK: __truncdfsf2
fptrunc double %a to float ; <float>:0 [#uses=1]
ret float %0
}