blob: 87af602aaf598974323237ef501f4648a8e31ed2 [file] [log] [blame]
Dan Gohmanf72fb672008-09-09 01:02:47 +00001; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep select
Dan Gohmanf72fb672008-09-09 01:02:47 +00002; rudimentary test of select on vectors returning vector of bool
3
4define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b,
5 <4 x i1> %cond) nounwind {
6entry:
7 %cmp = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> %b
8 ; <4 x i32> [#uses=1]
9 ret <4 x i32> %cmp
10}
11