aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/vector-cmp.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-08 11:00:38 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-08 11:00:38 +0000
commita0126afec8d81945006dec1dda4b55c848318f78 (patch)
tree4294604f08324c684d8381e071e35f6115f0e8f6 /test/Assembler/vector-cmp.ll
parent69b2c71abb3fa17612ebfb1fb804b656ea47ab8f (diff)
downloadexternal_llvm-a0126afec8d81945006dec1dda4b55c848318f78.zip
external_llvm-a0126afec8d81945006dec1dda4b55c848318f78.tar.gz
external_llvm-a0126afec8d81945006dec1dda4b55c848318f78.tar.bz2
FileCheckize these testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/vector-cmp.ll')
-rw-r--r--test/Assembler/vector-cmp.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Assembler/vector-cmp.ll b/test/Assembler/vector-cmp.ll
index 688369b..6e3894c 100644
--- a/test/Assembler/vector-cmp.ll
+++ b/test/Assembler/vector-cmp.ll
@@ -1,16 +1,16 @@
-; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {global.*icmp slt}
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
; PR2317
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i686-apple-darwin9.2.2"
+; CHECK: @1 = global <4 x i1> <i1 icmp slt (i32 ptrtoint (i32* @B to i32), i32 1), i1 true, i1 false, i1 true>
+
define <4 x i1> @foo(<4 x float> %a, <4 x float> %b) nounwind {
entry:
- %cmp = fcmp olt <4 x float> %a, %b ; <4 x i32> [#uses=1]
- ret <4 x i1> %cmp
+ %cmp = fcmp olt <4 x float> %a, %b ; <4 x i32> [#uses=1]
+ ret <4 x i1> %cmp
}
global <4 x i1> icmp slt ( <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> <i32 1, i32 2, i32 1, i32 2> )
-
@B = external global i32
-
global <4 x i1> icmp slt ( <4 x i32> <i32 ptrtoint (i32 * @B to i32), i32 1, i32 1, i32 1>, <4 x i32> <i32 1, i32 2, i32 1, i32 2> )