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

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

Issue 955003002: Subzero: Clean up function header emission. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the tests that were broken as a result Created 5 years, 9 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
« no previous file with comments | « tests_lit/llvm2ice_tests/undef.ll ('k') | tests_lit/llvm2ice_tests/vector-arg.ll » ('j') | 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 the basic structure of the Unreachable instruction. 1 ; This tests the basic structure of the Unreachable instruction.
2 2
3 ; RUN: %p2i -i %s --assemble --disassemble -a -O2 --verbose none \ 3 ; RUN: %p2i -i %s --filetype=obj --disassemble -a -O2 | FileCheck %s
4 ; RUN: | FileCheck %s 4 ; RUN: %p2i -i %s --filetype=obj --disassemble -a -Om1 | FileCheck %s
5 ; RUN: %p2i -i %s --assemble --disassemble -a -Om1 --verbose none \
6 ; RUN: | FileCheck %s
7 5
8 define internal i32 @divide(i32 %num, i32 %den) { 6 define internal i32 @divide(i32 %num, i32 %den) {
9 entry: 7 entry:
10 %cmp = icmp ne i32 %den, 0 8 %cmp = icmp ne i32 %den, 0
11 br i1 %cmp, label %return, label %abort 9 br i1 %cmp, label %return, label %abort
12 10
13 abort: ; preds = %entry 11 abort: ; preds = %entry
14 unreachable 12 unreachable
15 13
16 return: ; preds = %entry 14 return: ; preds = %entry
17 %div = sdiv i32 %num, %den 15 %div = sdiv i32 %num, %den
18 ret i32 %div 16 ret i32 %div
19 } 17 }
20 18
21 ; CHECK-LABEL: divide 19 ; CHECK-LABEL: divide
22 ; CHECK: cmp 20 ; CHECK: cmp
23 ; CHECK: ud2 21 ; CHECK: ud2
24 ; CHECK: cdq 22 ; CHECK: cdq
25 ; CHECK: idiv 23 ; CHECK: idiv
26 ; CHECK: ret 24 ; CHECK: ret
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/undef.ll ('k') | tests_lit/llvm2ice_tests/vector-arg.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698