blob: e652d2ff3b36e775ec6ec3aed60d48f165ea1c04 [file] [log] [blame]
Bill Wendlinga0126af2012-04-08 11:00:38 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; Rudimentary test of fcmp/icmp on vectors returning vector of bool
Dan Gohmanf72fb672008-09-09 01:02:47 +00003
Bill Wendlinga0126af2012-04-08 11:00:38 +00004; CHECK: @ffoo
5; CHECK: fcmp olt <4 x float> %a, %b
Dan Gohmanf72fb672008-09-09 01:02:47 +00006define <4 x i1> @ffoo(<4 x float> %a, <4 x float> %b) nounwind {
7entry:
Bill Wendlinga0126af2012-04-08 11:00:38 +00008 %cmp = fcmp olt <4 x float> %a, %b ; <4 x i1> [#uses=1]
9 ret <4 x i1> %cmp
Dan Gohmanf72fb672008-09-09 01:02:47 +000010}
11
Bill Wendlinga0126af2012-04-08 11:00:38 +000012; CHECK: @ifoo
13; CHECK: icmp slt <4 x i32> %a, %b
Dan Gohmanf72fb672008-09-09 01:02:47 +000014define <4 x i1> @ifoo(<4 x i32> %a, <4 x i32> %b) nounwind {
15entry:
Bill Wendlinga0126af2012-04-08 11:00:38 +000016 %cmp = icmp slt <4 x i32> %a, %b ; <4 x i1> [#uses=1]
17 ret <4 x i1> %cmp
Dan Gohmanf72fb672008-09-09 01:02:47 +000018}