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

Side by Side Diff: tests_lit/llvm2ice_tests/phi.ll

Issue 673783002: Subzero: Improve debugging controls, plus minor refactoring. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 1 month 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 | « src/llvm2ice.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; This tests some of the subtleties of Phi lowering. In particular, 1 ; This tests some of the subtleties of Phi lowering. In particular,
2 ; it tests that it does the right thing when it tries to enable 2 ; it tests that it does the right thing when it tries to enable
3 ; compare/branch fusing. 3 ; compare/branch fusing.
4 4
5 ; TODO(kschimpf) Find out why lc2i must be used. 5 ; TODO(kschimpf) Find out why lc2i must be used.
6 ; RUN: %lc2i -i %s --args -O2 --verbose none --no-phi-edge-split \ 6 ; RUN: %lc2i -i %s --args -O2 --verbose none --phi-edge-split=0 \
7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 7 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
8 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - | FileCheck %s 8 ; RUN: | llvm-objdump -d -symbolize -x86-asm-syntax=intel - | FileCheck %s
9 ; RUN: %lc2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s 9 ; RUN: %lc2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
10 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s 10 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
11 11
12 define internal i32 @testPhi1(i32 %arg) { 12 define internal i32 @testPhi1(i32 %arg) {
13 entry: 13 entry:
14 %cmp1 = icmp sgt i32 %arg, 0 14 %cmp1 = icmp sgt i32 %arg, 0
15 br i1 %cmp1, label %next, label %target 15 br i1 %cmp1, label %next, label %target
16 next: 16 next:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 ; CHECK-LABEL: testPhi3 95 ; CHECK-LABEL: testPhi3
96 ; CHECK: push [[EBX:.*]] 96 ; CHECK: push [[EBX:.*]]
97 ; CHECK: mov {{.*}}, dword ptr [esp 97 ; CHECK: mov {{.*}}, dword ptr [esp
98 ; CHECK: mov 98 ; CHECK: mov
99 ; CHECK: mov {{.*}}[[ADDR:.*1000]] 99 ; CHECK: mov {{.*}}[[ADDR:.*1000]]
100 ; CHECK: cmp {{.*}}, 0 100 ; CHECK: cmp {{.*}}, 0
101 ; CHECK: jne 101 ; CHECK: jne
102 ; CHECK: mov {{.*}}[[ADDR]] 102 ; CHECK: mov {{.*}}[[ADDR]]
103 ; CHECK: pop [[EBX]] 103 ; CHECK: pop [[EBX]]
OLDNEW
« no previous file with comments | « src/llvm2ice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698