blob: 6bbd5c8f0b4c48a9d3d022c429c90df03dd2336b [file] [log] [blame]
Bill Wendlinga0126af2012-04-08 11:00:38 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Bill Wendlinga0126af2012-04-08 11:00:38 +00003; Rudimentary test of fcmp/icmp on vectors returning vector of bool
Dan Gohmanf72fb672008-09-09 01:02:47 +00004
Bill Wendlinga0126af2012-04-08 11:00:38 +00005; CHECK: @ffoo
6; CHECK: fcmp olt <4 x float> %a, %b
Dan Gohmanf72fb672008-09-09 01:02:47 +00007define <4 x i1> @ffoo(<4 x float> %a, <4 x float> %b) nounwind {
8entry:
Bill Wendlinga0126af2012-04-08 11:00:38 +00009 %cmp = fcmp olt <4 x float> %a, %b ; <4 x i1> [#uses=1]
10 ret <4 x i1> %cmp
Dan Gohmanf72fb672008-09-09 01:02:47 +000011}
12
Bill Wendlinga0126af2012-04-08 11:00:38 +000013; CHECK: @ifoo
14; CHECK: icmp slt <4 x i32> %a, %b
Dan Gohmanf72fb672008-09-09 01:02:47 +000015define <4 x i1> @ifoo(<4 x i32> %a, <4 x i32> %b) nounwind {
16entry:
Bill Wendlinga0126af2012-04-08 11:00:38 +000017 %cmp = icmp slt <4 x i32> %a, %b ; <4 x i1> [#uses=1]
18 ret <4 x i1> %cmp
Dan Gohmanf72fb672008-09-09 01:02:47 +000019}