Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep select |
Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 2 | ; rudimentary test of select on vectors returning vector of bool |
3 | |||||
4 | define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b, | ||||
5 | <4 x i1> %cond) nounwind { | ||||
6 | entry: | ||||
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 |