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-pnacl-sz.py raises exception on error, | 4 ; currently because run-pnacl-sz.py raises exception on error, |
5 ; and output is lost. | 5 ; and output is lost. |
6 ; RUN: %if --need=allow_dump --command llvm-as < %s \ | 6 ; RUN: %if --need=allow_dump --command llvm-as < %s \ |
7 ; RUN: | %if --need=allow_dump --command pnacl-freeze \ | 7 ; RUN: | %if --need=allow_dump --command pnacl-freeze \ |
8 ; RUN -allow-local-symbol-tables \ | 8 ; RUN -allow-local-symbol-tables \ |
9 ; RUN: | %if --need=allow_dump --command not %pnacl_sz -notranslate \ | 9 ; RUN: | %if --need=allow_dump --command not %pnacl_sz -notranslate \ |
10 ; RUN: -verbose=inst -build-on-read \ | 10 ; RUN: -verbose=inst -build-on-read \ |
(...skipping 10 matching lines...) Expand all Loading... |
21 ; RUN: -allow-local-symbol-tables \ | 21 ; RUN: -allow-local-symbol-tables \ |
22 ; RUN: | %if --need=no_dump --command FileCheck %s --check-prefix=MIN | 22 ; RUN: | %if --need=no_dump --command FileCheck %s --check-prefix=MIN |
23 | 23 |
24 declare i32 @llvm.fake.i32(i32) | 24 declare i32 @llvm.fake.i32(i32) |
25 | 25 |
26 define i32 @testFake(i32 %v) { | 26 define i32 @testFake(i32 %v) { |
27 %r = call i32 @llvm.fake.i32(i32 %v) | 27 %r = call i32 @llvm.fake.i32(i32 %v) |
28 ret i32 %r | 28 ret i32 %r |
29 } | 29 } |
30 | 30 |
31 ; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32 | 31 ; CHECK: Error({{.*}}): Invalid PNaCl intrinsic call to llvm.fake.i32 |
32 ; MIN: Error: ({{.*}}) Invalid function record: <34 0 3 1> | 32 ; MIN: Error({{.*}}): Invalid function record: <34 0 3 1> |
OLD | NEW |