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

Side by Side Diff: tests_lit/reader_tests/nacl-fake-intrinsic.ll

Issue 686913005: Turn off dump/emit routines when building minimal subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 1 month 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 ; Tests that we don't get fooled by a fake NaCl intrinsic. 1 ; Tests that we don't get fooled by a fake NaCl intrinsic.
2 2
3 ; TODO(kschimpf) Find way to run this through p2i. Note: Can't do this 3 ; TODO(kschimpf) Find way to run this through p2i. Note: Can't do this
4 ; currently because run-llvm2ice.py raises exception on error, 4 ; currently because run-llvm2ice.py raises exception on error,
5 ; and output is lost. 5 ; and output is lost.
6 ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ 6 ; RUN: %if --need=allow_dump --command \
7 ; RUN: | not %llvm2ice -notranslate -verbose=inst \ 7 ; RUN: llvm-as < %s \
8 ; RUN: -allow-pnacl-reader-error-recovery \ 8 ; RUN: | %if --need=allow_dump --command \
9 ; RUN: -allow-local-symbol-tables \ 9 ; RUN: pnacl-freeze -allow-local-symbol-tables \
10 ; RUN: | FileCheck %s 10 ; RUN: | %if --need=allow_dump --command \
11 ; RUN: not %llvm2ice -notranslate -verbose=inst -build-on-read \
12 ; RUN: -allow-pnacl-reader-error-recovery \
13 ; RUN: -allow-local-symbol-tables \
14 ; RUN: | %if --need=allow_dump --command \
15 ; RUN: FileCheck %s
16
17 ; RUN: %if --need=no_dump --command \
18 ; RUN: llvm-as < %s \
19 ; RUN: | %if --need=no_dump --command \
20 ; RUN: pnacl-freeze -allow-local-symbol-tables \
21 ; RUN: | %if --need=no_dump --command \
22 ; RUN: not %llvm2ice -notranslate -verbose=inst -build-on-read \
23 ; RUN: -allow-pnacl-reader-error-recovery -allow-local-symbol-tables \
24 ; RUN: | %if --need=no_dump --command \
25 ; RUN: FileCheck --check-prefix=MIN %s
11 26
12 declare i32 @llvm.fake.i32(i32) 27 declare i32 @llvm.fake.i32(i32)
13 28
14 define i32 @testFake(i32 %v) { 29 define i32 @testFake(i32 %v) {
15 %r = call i32 @llvm.fake.i32(i32 %v) 30 %r = call i32 @llvm.fake.i32(i32 %v)
16 ret i32 %r 31 ret i32 %r
17 } 32 }
18 33
19 ; CHECK: Error: (218:6) Invalid PNaCl intrinsic call to llvm.fake.i32 34 ; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32
35 ; MIN: Error: ({{.*}}) Invalid input record
20 36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698