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 ; 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: %if --need=allow_dump --command \ | 6 ; RUN: llvm-as < %s \ |
jvoung (off chromium)
2014/11/17 22:16:10
Similar comment about error messages, except I gue
Karl
2014/11/19 18:34:10
Moved this to parse-errs directory, and added test
| |
7 ; RUN: llvm-as < %s \ | 7 ; RUN: | pnacl-freeze -allow-local-symbol-tables \ |
8 ; RUN: | %if --need=allow_dump --command \ | 8 ; RUN: | not %llvm2ice -notranslate -verbose=inst -build-on-read \ |
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 \ | 9 ; RUN: -allow-pnacl-reader-error-recovery \ |
13 ; RUN: -allow-local-symbol-tables \ | 10 ; RUN: -allow-local-symbol-tables \ |
14 ; RUN: | %if --need=allow_dump --command \ | 11 ; RUN: | FileCheck %s |
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 | 12 |
27 declare i32 @llvm.fake.i32(i32) | 13 declare i32 @llvm.fake.i32(i32) |
28 | 14 |
29 define i32 @testFake(i32 %v) { | 15 define i32 @testFake(i32 %v) { |
30 %r = call i32 @llvm.fake.i32(i32 %v) | 16 %r = call i32 @llvm.fake.i32(i32 %v) |
31 ret i32 %r | 17 ret i32 %r |
32 } | 18 } |
33 | 19 |
34 ; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32 | 20 ; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32 |
35 ; MIN: Error: ({{.*}}) Invalid input record | |
36 | 21 |
OLD | NEW |