OLD | NEW |
| (Empty) |
1 ; Tests that we don't get fooled by a fake NaCl intrinsic. | |
2 | |
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, | |
5 ; and output is lost. | |
6 ; RUN: %if --need=allow_dump --command \ | |
7 ; RUN: llvm-as < %s \ | |
8 ; RUN: | %if --need=allow_dump --command \ | |
9 ; RUN: pnacl-freeze -allow-local-symbol-tables \ | |
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 | |
26 | |
27 declare i32 @llvm.fake.i32(i32) | |
28 | |
29 define i32 @testFake(i32 %v) { | |
30 %r = call i32 @llvm.fake.i32(i32 %v) | |
31 ret i32 %r | |
32 } | |
33 | |
34 ; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32 | |
35 ; MIN: Error: ({{.*}}) Invalid input record | |
36 | |
OLD | NEW |