OLD | NEW |
1 ; Tests if we can read binary operators. | 1 ; Tests if we can read binary operators. |
2 | 2 |
3 ; RUN: %p2i -i %s --insts | FileCheck %s | 3 ; RUN: %p2i -i %s --insts | %ifp FileCheck %s |
| 4 ; RUN: %l2i -i %s --insts | %ifl FileCheck %s |
| 5 ; RUN: %lc2i -i %s --insts | %iflc FileCheck %s |
4 | 6 |
5 ; TODO(kschimpf): add i8/i16. Needs bitcasts. | 7 ; TODO(kschimpf): add i8/i16. Needs bitcasts. |
6 | 8 |
7 define i32 @AddI32(i32 %a, i32 %b) { | 9 define i32 @AddI32(i32 %a, i32 %b) { |
8 entry: | 10 entry: |
9 %add = add i32 %b, %a | 11 %add = add i32 %b, %a |
10 ret i32 %add | 12 ret i32 %add |
11 } | 13 } |
12 | 14 |
13 ; CHECK: define i32 @AddI32(i32 %a, i32 %b) { | 15 ; CHECK: define i32 @AddI32(i32 %a, i32 %b) { |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 entry: | 958 entry: |
957 %lshr = lshr <4 x i32> %b, %a | 959 %lshr = lshr <4 x i32> %b, %a |
958 ret <4 x i32> %lshr | 960 ret <4 x i32> %lshr |
959 } | 961 } |
960 | 962 |
961 ; CHECK-NEXT: define <4 x i32> @LshrV4I32(<4 x i32> %a, <4 x i32> %b) { | 963 ; CHECK-NEXT: define <4 x i32> @LshrV4I32(<4 x i32> %a, <4 x i32> %b) { |
962 ; CHECK-NEXT: entry: | 964 ; CHECK-NEXT: entry: |
963 ; CHECK-NEXT: %lshr = lshr <4 x i32> %b, %a | 965 ; CHECK-NEXT: %lshr = lshr <4 x i32> %b, %a |
964 ; CHECK-NEXT: ret <4 x i32> %lshr | 966 ; CHECK-NEXT: ret <4 x i32> %lshr |
965 ; CHECK-NEXT: } | 967 ; CHECK-NEXT: } |
OLD | NEW |