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

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

Issue 914263005: Subzero: switch from llvm-objdump to objdump for lit tests (for LLVM merge) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 10 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 --args -O2 --verbose none \ 5 ; RUN: %p2i -i %s --assemble --disassemble --args -O2 --verbose none \
6 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ 6 ; RUN: | FileCheck %s
7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
8 7
9 define i32 @testSwitch(i32 %a) { 8 define i32 @testSwitch(i32 %a) {
10 entry: 9 entry:
11 switch i32 %a, label %sw.default [ 10 switch i32 %a, label %sw.default [
12 i32 1, label %sw.epilog 11 i32 1, label %sw.epilog
13 i32 2, label %sw.epilog 12 i32 2, label %sw.epilog
14 i32 3, label %sw.epilog 13 i32 3, label %sw.epilog
15 i32 7, label %sw.bb1 14 i32 7, label %sw.bb1
16 i32 8, label %sw.bb1 15 i32 8, label %sw.bb1
17 i32 15, label %sw.bb2 16 i32 15, label %sw.bb2
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ] 104 ]
106 105
107 sw.default: 106 sw.default:
108 ret i32 20 107 ret i32 20
109 } 108 }
110 ; CHECK-LABEL: testSwitchImm64 109 ; CHECK-LABEL: testSwitchImm64
111 ; CHECK: cmp {{.*}}, 1 110 ; CHECK: cmp {{.*}}, 1
112 ; CHECK-NEXT: jne 111 ; CHECK-NEXT: jne
113 ; CHECK-NEXT: cmp {{.*}}, 0 112 ; CHECK-NEXT: cmp {{.*}}, 0
114 ; CHECK-NEXT: je 113 ; CHECK-NEXT: je
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698