Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |