Chromium Code Reviews| 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 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 %llvm2ice -notranslate \ | |
| 10 ; RUN: -verbose=inst -build-on-read \ | |
| 11 ; RUN: -allow-pnacl-reader-error-recovery \ | |
| 12 ; RUN: -allow-local-symbol-tables \ | |
| 13 ; RUN: | %if --need=allow_dump --command FileCheck %s | |
| 14 | |
| 15 ; RUN: %if --need=no_dump --command llvm-as < %s \ | |
| 16 ; RUN: | %if --need=no_dump --command pnacl-freeze \ | |
| 17 ; RUN -allow-local-symbol-tables \ | |
| 18 ; RUN: | %if --need=no_dump --command not %llvm2ice -notranslate \ | |
| 19 ; RUN: -verbose=inst -build-on-read \ | |
| 20 ; RUN: -allow-pnacl-reader-error-recovery \ | |
| 21 ; RUN: -allow-local-symbol-tables \ | |
| 22 ; RUN: | %if --need=no_dump --command FileCheck %s --check-prefix=MIN | |
| 23 | |
| 24 declare i32 @llvm.fake.i32(i32) | |
| 25 | |
| 26 define i32 @testFake(i32 %v) { | |
| 27 %r = call i32 @llvm.fake.i32(i32 %v) | |
| 28 ret i32 %r | |
| 29 } | |
| 30 | |
| 31 ; CHECK: Error: ({{.*}}) Invalid PNaCl intrinsic call to llvm.fake.i32 | |
| 32 ; MIN: Error: ({{.*}}) Invalid function record: <34 0 3 1> | |
| 33 | |
|
Jim Stichnoth
2014/11/19 19:21:00
Git is unhappy with extra blank lines at the end o
Karl
2014/11/20 17:32:09
Done.
| |
| 34 | |
| OLD | NEW |