Bill Wendling | a0126af | 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 | 13f5c58 | 2014-08-19 21:08:27 +0000 | [diff] [blame] | 2 | ; RUN: verify-uselistorder %s |
Bill Wendling | a0126af | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 3 | ; Rudimentary test of fcmp/icmp on vectors returning vector of bool |
Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 4 | |
Bill Wendling | a0126af | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 5 | ; CHECK: @ffoo |
| 6 | ; CHECK: fcmp olt <4 x float> %a, %b |
Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 7 | define <4 x i1> @ffoo(<4 x float> %a, <4 x float> %b) nounwind { |
| 8 | entry: |
Bill Wendling | a0126af | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 9 | %cmp = fcmp olt <4 x float> %a, %b ; <4 x i1> [#uses=1] |
| 10 | ret <4 x i1> %cmp |
Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 11 | } |
| 12 | |
Bill Wendling | a0126af | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 13 | ; CHECK: @ifoo |
| 14 | ; CHECK: icmp slt <4 x i32> %a, %b |
Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 15 | define <4 x i1> @ifoo(<4 x i32> %a, <4 x i32> %b) nounwind { |
| 16 | entry: |
Bill Wendling | a0126af | 2012-04-08 11:00:38 +0000 | [diff] [blame] | 17 | %cmp = icmp slt <4 x i32> %a, %b ; <4 x i1> [#uses=1] |
| 18 | ret <4 x i1> %cmp |
Dan Gohman | f72fb67 | 2008-09-09 01:02:47 +0000 | [diff] [blame] | 19 | } |