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

Side by Side Diff: test/NaCl/Bitcode/pnacl-bcdis/invalid.test

Issue 1283353002: Fix handling errors in switch instruction by PNaCl bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Use unique_ptr for switch instruction. Created 5 years, 4 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 RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/bad-zext-cast.tbc -output - \ 1 RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/bad-zext-cast.tbc -output - \
2 RUN: | not pnacl-bcdis | FileCheck --check-prefix=BAD-ZEXT-CAST %s 2 RUN: | not pnacl-bcdis | FileCheck --check-prefix=BAD-ZEXT-CAST %s
3 3
4 BAD-ZEXT-CAST: %v1 = zext i32 %p0 to i32 (i32); 4 BAD-ZEXT-CAST: %v1 = zext i32 %p0 to i32 (i32);
5 BAD-ZEXT-CAST-NEXT: Invalid cast 'zext'. Not defined on i32 to i32 (i32) 5 BAD-ZEXT-CAST-NEXT: Invalid cast 'zext'. Not defined on i32 to i32 (i32)
6 6
7 RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/too-many-bbs-declared.tbc \ 7 RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/too-many-bbs-declared.tbc \
8 RUN: -output - \ 8 RUN: -output - \
9 RUN: | not pnacl-thaw --verbose-parse-errors -o /dev/null 2>&1 \ 9 RUN: | not pnacl-thaw --verbose-parse-errors -o /dev/null 2>&1 \
10 RUN: | FileCheck -check-prefix=TOO-MANY-BBS-DECLARED %s 10 RUN: | FileCheck -check-prefix=TOO-MANY-BBS-DECLARED %s
11 11
12 TOO-MANY-BBS-DECLARED: Declared 2 basic blocks. Found: 1 12 TOO-MANY-BBS-DECLARED: Declared 2 basic blocks. Found: 1
13
14 RUN: pnacl-bcfuzz -bitcode-as-text %p/Inputs/bad-switch-case.tbc -output - \
15 RUN: | not pnacl-thaw --verbose-parse-errors -o /dev/null 2>&1 \
16 RUN: | FileCheck -check-prefix=BAD-SWITCH-CASE %s
17
18 BAD-SWITCH-CASE: Invalid branch in SWITCH case
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698