summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2010-06-22 19:40:50 +0000
committerMon P Wang <wangmp@apple.com>2010-06-22 19:40:50 +0000
commit825639e849bb960bee566601221cfd92b4054733 (patch)
treea0b3ec184b9cd191283d4e2796294ae9819f5c11 /llvm/test
parent55081f9317b578bf3751ee4aef8315a14bb5e543 (diff)
downloadbcm5719-llvm-825639e849bb960bee566601221cfd92b4054733.tar.gz
bcm5719-llvm-825639e849bb960bee566601221cfd92b4054733.zip
Move v-binop-widen tests to X86 since they don't work on all platforms
llvm-svn: 106562
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/v-binop-widen.ll (renamed from llvm/test/CodeGen/Generic/v-binop-widen.ll)6
-rw-r--r--llvm/test/CodeGen/X86/v-binop-widen2.ll (renamed from llvm/test/CodeGen/Generic/v-binop-widen2.ll)7
2 files changed, 10 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/Generic/v-binop-widen.ll b/llvm/test/CodeGen/X86/v-binop-widen.ll
index 4eb34348b8a..2a9e6868340 100644
--- a/llvm/test/CodeGen/Generic/v-binop-widen.ll
+++ b/llvm/test/CodeGen/X86/v-binop-widen.ll
@@ -1,4 +1,7 @@
-; RUN: llc -march=x86 < %s
+; RUN: llc -march=x86 < %s | FileCheck %s
+; CHECK: divss
+; CHECK: divps
+; CHECK: divps
%vec = type <9 x float>
define %vec @vecdiv( %vec %p1, %vec %p2)
@@ -6,3 +9,4 @@ define %vec @vecdiv( %vec %p1, %vec %p2)
%result = fdiv %vec %p1, %p2
ret %vec %result
}
+
diff --git a/llvm/test/CodeGen/Generic/v-binop-widen2.ll b/llvm/test/CodeGen/X86/v-binop-widen2.ll
index c494ca16f66..fa4eb49dd6f 100644
--- a/llvm/test/CodeGen/Generic/v-binop-widen2.ll
+++ b/llvm/test/CodeGen/X86/v-binop-widen2.ll
@@ -1,7 +1,9 @@
-; RUN: llvm-as < %s | lli
+; RUN: llc -march=x86 < %s | FileCheck %s
%vec = type <6 x float>
-
+; CHECK: divss
+; CHECK: divss
+; CHECK: divps
define %vec @vecdiv( %vec %p1, %vec %p2)
{
%result = fdiv %vec %p1, %p2
@@ -13,6 +15,7 @@ define %vec @vecdiv( %vec %p1, %vec %p2)
; Expected result: < 1.0, 2.0, 4.0, ..., 2.0^(n-1) >
; main() returns 0 if the result is expected and 1 otherwise
+; to execute, use llvm-as < %s | lli
define i32 @main() nounwind {
entry:
%avec = load %vec* @a
OpenPOWER on IntegriCloud