| OLD | NEW |
| 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 ; REQUIRES: allow_dump |
| 4 ; currently because run-pnacl-sz.py raises exception on error, | |
| 5 ; and output is lost. | |
| 6 ; RUN: %if --need=allow_dump --command llvm-as < %s \ | |
| 7 ; RUN: | %if --need=allow_dump --command pnacl-freeze \ | |
| 8 ; RUN -allow-local-symbol-tables \ | |
| 9 ; RUN: | %if --need=allow_dump --command not %pnacl_sz -notranslate \ | |
| 10 ; RUN: -verbose=inst -build-on-read \ | |
| 11 ; RUN: -allow-pnacl-reader-error-recovery \ | |
| 12 ; RUN: -allow-local-symbol-tables \ | |
| 13 ; RUN: -filetype=obj -o /dev/null \ | |
| 14 ; RUN: | %if --need=allow_dump --command FileCheck %s | |
| 15 | 4 |
| 16 ; RUN: %if --need=no_dump --command llvm-as < %s \ | 5 ; RUN: %p2i --expect-fail -i %s --insts --args \ |
| 17 ; RUN: | %if --need=no_dump --command pnacl-freeze \ | 6 ; RUN: -verbose=inst -allow-externally-defined-symbols \ |
| 18 ; RUN -allow-local-symbol-tables \ | 7 ; RUN: | FileCheck %s |
| 19 ; RUN: | %if --need=no_dump --command not %pnacl_sz -notranslate \ | |
| 20 ; RUN: -verbose=inst -build-on-read \ | |
| 21 ; RUN: -allow-pnacl-reader-error-recovery \ | |
| 22 ; RUN: -allow-local-symbol-tables \ | |
| 23 ; RUN: -filetype=obj -o /dev/null \ | |
| 24 ; RUN: | %if --need=no_dump --command FileCheck %s --check-prefix=MIN | |
| 25 | 8 |
| 26 declare i32 @llvm.fake.i32(i32) | 9 declare i32 @llvm.fake.i32(i32) |
| 27 | 10 |
| 28 define i32 @testFake(i32 %v) { | 11 ; CHECK: Error({{.*}}): Invalid intrinsic name: llvm.fake.i32 |
| 29 %r = call i32 @llvm.fake.i32(i32 %v) | |
| 30 ret i32 %r | |
| 31 } | |
| 32 | |
| 33 ; CHECK: Error({{.*}}): Invalid PNaCl intrinsic call to llvm.fake.i32 | |
| 34 ; MIN: Error({{.*}}): Invalid function record: <34 0 3 1> | |
| OLD | NEW |