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

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

Issue 1481133002: Subzero. ARM32. Show FP lowering some love. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Handles comments; git pull; fixes lit tests. Created 5 years 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/return_immediates.ll ('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 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 ; For x86 see adv-switch-opt.ll 5 ; For x86 see adv-switch-opt.ll
6 6
7 ; TODO(jvoung): Update to -02 once the phi assignments is done for ARM 7 ; TODO(jvoung): Update to -02 once the phi assignments is done for ARM
8 ; RUN: %if --need=target_ARM32 --need=allow_dump \ 8 ; RUN: %if --need=target_ARM32 --need=allow_dump \
9 ; RUN: --command %p2i --filetype=asm --assemble --disassemble \ 9 ; RUN: --command %p2i --filetype=asm --assemble --disassemble \
10 ; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \ 10 ; RUN: --target arm32 -i %s --args -Om1 --skip-unimplemented \
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 define internal i32 @testSwitchUndef64() { 123 define internal i32 @testSwitchUndef64() {
124 entry: 124 entry:
125 switch i64 undef, label %sw.default [ 125 switch i64 undef, label %sw.default [
126 i64 1, label %sw.default 126 i64 1, label %sw.default
127 ] 127 ]
128 128
129 sw.default: 129 sw.default:
130 ret i32 20 130 ret i32 20
131 } 131 }
132 ; ARM32-LABEL: testSwitchUndef64 132 ; ARM32-LABEL: testSwitchUndef64
133 ; ARM32: movw {{.*}}, #0 133 ; ARM32: mov {{.*}}, #0
134 ; ARM32: movw {{.*}}, #0 134 ; ARM32: mov {{.*}}, #0
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/return_immediates.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698