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

Side by Side Diff: test/NaCl/PNaClABI/abi-i1-operations.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-flattened-globals.ll ('k') | test/NaCl/PNaClABI/abi-metadata.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 ; Most arithmetic operations are not very useful on i1, so use of i1 3 ; Most arithmetic operations are not very useful on i1, so use of i1
4 ; is restricted to a subset of operations. 4 ; is restricted to a subset of operations.
5 5
6 6
7 ; i1 is allowed on these bitwise operations because: 7 ; i1 is allowed on these bitwise operations because:
8 ; * These operations never overflow. 8 ; * These operations never overflow.
9 ; * They do get generated in practice for combining conditions. 9 ; * They do get generated in practice for combining conditions.
10 define internal void @allowed_cases() { 10 define internal void @allowed_cases() {
11 %and = and i1 0, 0 11 %and = and i1 0, 0
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ; CHECK-NEXT: disallowed: alloca array size is not i32 57 ; CHECK-NEXT: disallowed: alloca array size is not i32
58 58
59 ; Switch on i1 is not useful. "br" should be used instead. 59 ; Switch on i1 is not useful. "br" should be used instead.
60 switch i1 0, label %next [i1 0, label %next] 60 switch i1 0, label %next [i1 0, label %next]
61 ; CHECK-NEXT: disallowed: switch on i1 61 ; CHECK-NEXT: disallowed: switch on i1
62 next: 62 next:
63 63
64 ret void 64 ret void
65 } 65 }
66 ; CHECK-NOT: disallowed 66 ; CHECK-NOT: disallowed
OLDNEW
« no previous file with comments | « test/NaCl/PNaClABI/abi-flattened-globals.ll ('k') | test/NaCl/PNaClABI/abi-metadata.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698