Bill Wendling | 57f8e5e | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s |
Duncan P. N. Exon Smith | c8eccd1 | 2014-08-19 21:08:27 +0000 | [diff] [blame] | 2 | ; RUN: verify-uselistorder %s |
Bill Wendling | 57f8e5e | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 3 | ; Rudimentary test of select on vectors returning vector of bool |
Dan Gohman | c579d97 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 4 | |
Bill Wendling | 57f8e5e | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 5 | ; CHECK: @foo |
| 6 | ; CHECK: select <4 x i1> %cond, <4 x i32> %a, <4 x i32> %b |
| 7 | define <4 x i32> @foo(<4 x i32> %a, <4 x i32> %b, <4 x i1> %cond) nounwind { |
Dan Gohman | c579d97 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 8 | entry: |
Bill Wendling | 57f8e5e | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 9 | %cmp = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> %b |
Dan Gohman | c579d97 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 10 | ret <4 x i32> %cmp |
| 11 | } |
| 12 | |