Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: tests_lit/llvm2ice_tests/select-opt.ll

Issue 300563003: Subzero: Initial O2 lowering (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Jan's third-round comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/fpconst.pnacl.ll ('k') | tests_lit/llvm2ice_tests/shift.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/fpconst.pnacl.ll ('k') | tests_lit/llvm2ice_tests/shift.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698