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

Side by Side Diff: test/NaCl/PNaClABI/abi-switch.ll

Issue 132693004: PNaCl: Add "not" to various test commands, to pass under LLVM 3.4 (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 6 years, 11 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 | « test/NaCl/PNaClABI/abi-stripped-pointers.ll ('k') | test/NaCl/PNaClABI/abi-varargs.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 ; RUN: pnacl-abicheck < %s | FileCheck %s 1 ; RUN: not pnacl-abicheck < %s | FileCheck %s
2 2
3 @var = internal global [4 x i8] c"xxxx" 3 @var = internal global [4 x i8] c"xxxx"
4 4
5 5
6 ; CHECK-NOT: disallowed 6 ; CHECK-NOT: disallowed
7 7
8 define internal void @bad_cases() { 8 define internal void @bad_cases() {
9 ; ConstantExprs should be rejected here. 9 ; ConstantExprs should be rejected here.
10 switch i32 ptrtoint ([4 x i8]* @var to i32), label %next [i32 0, label %next] 10 switch i32 ptrtoint ([4 x i8]* @var to i32), label %next [i32 0, label %next]
11 ; CHECK: disallowed: bad switch condition 11 ; CHECK: disallowed: bad switch condition
(...skipping 10 matching lines...) Expand all
22 22
23 ; Note that the reader only allows ConstantInts in the label list. 23 ; Note that the reader only allows ConstantInts in the label list.
24 ; We don't need to check the following, because the reader rejects 24 ; We don't need to check the following, because the reader rejects
25 ; it: 25 ; it:
26 ; switch i32 0, label %next [i32 ptrtoint (i32* @ptr to i32), label %next] 26 ; switch i32 0, label %next [i32 ptrtoint (i32* @ptr to i32), label %next]
27 27
28 ret void 28 ret void
29 } 29 }
30 30
31 ; CHECK-NOT: disallowed 31 ; CHECK-NOT: disallowed
OLDNEW
« no previous file with comments | « test/NaCl/PNaClABI/abi-stripped-pointers.ll ('k') | test/NaCl/PNaClABI/abi-varargs.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698