OLD | NEW |
1 ; Tests if we can read binary operators. | 1 ; Tests if we can read binary operators. |
2 | 2 |
3 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ | 3 ; RUN: %p2i -i %s --insts | FileCheck %s |
4 ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \ | |
5 ; RUN: -allow-pnacl-reader-error-recovery \ | |
6 ; RUN: -allow-local-symbol-tables \ | |
7 ; RUN: | FileCheck %s | |
8 | 4 |
9 ; TODO(kschimpf): add i8/i16. Needs bitcasts. | 5 ; TODO(kschimpf): add i8/i16. Needs bitcasts. |
10 | 6 |
11 define i32 @AddI32(i32 %a, i32 %b) { | 7 define i32 @AddI32(i32 %a, i32 %b) { |
12 entry: | 8 entry: |
13 %add = add i32 %b, %a | 9 %add = add i32 %b, %a |
14 ret i32 %add | 10 ret i32 %add |
15 } | 11 } |
16 | 12 |
17 ; CHECK: define i32 @AddI32(i32 %a, i32 %b) { | 13 ; CHECK: define i32 @AddI32(i32 %a, i32 %b) { |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 entry: | 956 entry: |
961 %lshr = lshr <4 x i32> %b, %a | 957 %lshr = lshr <4 x i32> %b, %a |
962 ret <4 x i32> %lshr | 958 ret <4 x i32> %lshr |
963 } | 959 } |
964 | 960 |
965 ; CHECK-NEXT: define <4 x i32> @LshrV4I32(<4 x i32> %a, <4 x i32> %b) { | 961 ; CHECK-NEXT: define <4 x i32> @LshrV4I32(<4 x i32> %a, <4 x i32> %b) { |
966 ; CHECK-NEXT: entry: | 962 ; CHECK-NEXT: entry: |
967 ; CHECK-NEXT: %lshr = lshr <4 x i32> %b, %a | 963 ; CHECK-NEXT: %lshr = lshr <4 x i32> %b, %a |
968 ; CHECK-NEXT: ret <4 x i32> %lshr | 964 ; CHECK-NEXT: ret <4 x i32> %lshr |
969 ; CHECK-NEXT: } | 965 ; CHECK-NEXT: } |
OLD | NEW |