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

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

Issue 735513002: Create local config file for subzero reader tests. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 6 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/reader_tests/unnamed.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 ; Test parsing unreachable instruction. 1 ; Test parsing unreachable instruction.
2 2
3 ; REQUIRES: allow_dump
4
5 ; RUN: %p2i -i %s --insts | FileCheck %s 3 ; RUN: %p2i -i %s --insts | FileCheck %s
6 ; RUN: %if --need=allow_disable_ir_gen --command \ 4 ; RUN: %if --need=allow_disable_ir_gen --command \
7 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \ 5 ; RUN: %p2i -i %s --args -notranslate -timing -no-ir-gen \
8 ; RUN: | %if --need=allow_disable_ir_gen --command \ 6 ; RUN: | %if --need=allow_disable_ir_gen --command \
9 ; RUN: FileCheck --check-prefix=NOIR %s 7 ; RUN: FileCheck --check-prefix=NOIR %s
10 8
11 define internal i32 @divide(i32 %num, i32 %den) { 9 define internal i32 @divide(i32 %num, i32 %den) {
12 entry: 10 entry:
13 %cmp = icmp ne i32 %den, 0 11 %cmp = icmp ne i32 %den, 0
14 br i1 %cmp, label %return, label %abort 12 br i1 %cmp, label %return, label %abort
(...skipping 11 matching lines...) Expand all
26 ; CHECK-NEXT: %cmp = icmp ne i32 %den, 0 24 ; CHECK-NEXT: %cmp = icmp ne i32 %den, 0
27 ; CHECK-NEXT: br i1 %cmp, label %return, label %abort 25 ; CHECK-NEXT: br i1 %cmp, label %return, label %abort
28 ; CHECK-NEXT: abort: 26 ; CHECK-NEXT: abort:
29 ; CHECK-NEXT: unreachable 27 ; CHECK-NEXT: unreachable
30 ; CHECK-NEXT: return: 28 ; CHECK-NEXT: return:
31 ; CHECK-NEXT: %div = sdiv i32 %num, %den 29 ; CHECK-NEXT: %div = sdiv i32 %num, %den
32 ; CHECK-NEXT: ret i32 %div 30 ; CHECK-NEXT: ret i32 %div
33 ; CHECK-NEXT: } 31 ; CHECK-NEXT: }
34 32
35 ; NOIR: Total across all functions 33 ; NOIR: Total across all functions
OLDNEW
« no previous file with comments | « tests_lit/reader_tests/unnamed.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698