OLD | NEW |
1 ; Simple test of the select instruction. The CHECK lines are only | 1 ; Simple test of the select instruction. The CHECK lines are only |
2 ; checking for basic instruction patterns that should be present | 2 ; checking for basic instruction patterns that should be present |
3 ; regardless of the optimization level, so there are no special OPTM1 | 3 ; regardless of the optimization level, so there are no special OPTM1 |
4 ; match lines. | 4 ; match lines. |
5 | 5 |
6 ; RUIN: %llvm2ice -O2 --verbose none %s | FileCheck %s | 6 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s |
7 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s | 7 ; RUN: %llvm2ice -Om1 --verbose none %s | FileCheck %s |
8 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s | 8 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
9 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s | 9 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
10 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ | 10 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
11 ; RUN: | FileCheck --check-prefix=DUMP %s | 11 ; RUN: | FileCheck --check-prefix=DUMP %s |
12 | 12 |
13 define void @testSelect(i32 %a, i32 %b) { | 13 define void @testSelect(i32 %a, i32 %b) { |
14 entry: | 14 entry: |
15 %cmp = icmp slt i32 %a, %b | 15 %cmp = icmp slt i32 %a, %b |
16 %cond = select i1 %cmp, i32 %a, i32 %b | 16 %cond = select i1 %cmp, i32 %a, i32 %b |
(...skipping 10 matching lines...) Expand all Loading... |
27 ; CHECK: cmp | 27 ; CHECK: cmp |
28 ; CHECK: cmp | 28 ; CHECK: cmp |
29 ; CHECK: call useInt | 29 ; CHECK: call useInt |
30 ; CHECK: cmp | 30 ; CHECK: cmp |
31 ; CHECK: cmp | 31 ; CHECK: cmp |
32 ; CHECK: call useInt | 32 ; CHECK: call useInt |
33 ; CHECK: ret | 33 ; CHECK: ret |
34 | 34 |
35 ; ERRORS-NOT: ICE translation error | 35 ; ERRORS-NOT: ICE translation error |
36 ; DUMP-NOT: SZ | 36 ; DUMP-NOT: SZ |
OLD | NEW |