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

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

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix sandboxing and linking Created 5 years, 4 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
OLDNEW
1 ; This tests a switch statement, including multiple branches to the 1 ; This tests a switch statement, including multiple branches to the
2 ; same label which also results in phi instructions with multiple 2 ; same label which also results in phi instructions with multiple
3 ; entries for the same incoming edge. 3 ; entries for the same incoming edge.
4 4
5 ; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 | FileCheck %s
jvoung (off chromium) 2015/07/29 21:31:17 Why remove this?
ascull 2015/07/29 22:43:05 Since there is no longer an --adv-switch flag, x86
6
7 ; TODO(jvoung): Update to -02 once the phi assignments is done for ARM 5 ; TODO(jvoung): Update to -02 once the phi assignments is done for ARM
8 ; RUN: %if --need=target_ARM32 --need=allow_dump \ 6 ; RUN: %if --need=target_ARM32 --need=allow_dump \
9 ; RUN: --command %p2i --filetype=asm --assemble --disassemble \ 7 ; RUN: --command %p2i --filetype=asm --assemble --disassemble \
10 ; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \ 8 ; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \
11 ; RUN: | %if --need=target_ARM32 --need=allow_dump \ 9 ; RUN: | %if --need=target_ARM32 --need=allow_dump \
12 ; RUN: --command FileCheck --check-prefix ARM32 %s 10 ; RUN: --command FileCheck --check-prefix ARM32 %s
13 11
14 define i32 @testSwitch(i32 %a) { 12 define i32 @testSwitch(i32 %a) {
15 entry: 13 entry:
16 switch i32 %a, label %sw.default [ 14 switch i32 %a, label %sw.default [
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 153
156 sw.default: 154 sw.default:
157 ret i32 20 155 ret i32 20
158 } 156 }
159 ; CHECK-LABEL: testSwitchUndef64 157 ; CHECK-LABEL: testSwitchUndef64
160 ; CHECK: mov {{.*}},0x0 158 ; CHECK: mov {{.*}},0x0
161 ; CHECK: mov {{.*}},0x0 159 ; CHECK: mov {{.*}},0x0
162 ; ARM32-LABEL: testSwitchUndef64 160 ; ARM32-LABEL: testSwitchUndef64
163 ; ARM32: movw {{.*}}, #0 161 ; ARM32: movw {{.*}}, #0
164 ; ARM32: movw {{.*}}, #0 162 ; ARM32: movw {{.*}}, #0
OLDNEW
« src/IceTargetLoweringX86BaseImpl.h ('K') | « tests_lit/llvm2ice_tests/adv-switch-opt.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698