| Justin Bogner | 754a1a8 | 2017-10-12 18:10:22 +0000 | [diff] [blame] | 1 | ; If the binary looks up libraries using an rpath, we can't test this |
| 2 | ; without copying the whole lib dir or polluting the build dir. |
| Justin Bogner | 9c03fd5 | 2017-10-13 00:17:54 +0000 | [diff] [blame] | 3 | ; REQUIRES: static-libs |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 4 | ; REQUIRES: aarch64-registered-target |
| 5 | |
| 6 | ; RUN: echo > %t.input |
| 7 | |
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 8 | ; RUN: cp llvm-isel-fuzzer %t.bin--aarch64 |
| 9 | ; RUN: %t.bin--aarch64 %t.input 2>&1 | FileCheck -check-prefix=AARCH64 %s |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 10 | ; AARCH64: Injected args: -mtriple=aarch64 |
| 11 | |
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 12 | ; RUN: cp llvm-isel-fuzzer %t.bin--aarch64-O1 |
| 13 | ; RUN: %t.bin--aarch64-O1 %t.input 2>&1 | FileCheck -check-prefix=OPT-AFTER %s |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 14 | ; OPT-AFTER: Injected args: -mtriple=aarch64 -O1 |
| 15 | |
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 16 | ; RUN: cp llvm-isel-fuzzer %t.bin--O3-aarch64 |
| 17 | ; RUN: %t.bin--O3-aarch64 %t.input 2>&1 | FileCheck -check-prefix=OPT-BEFORE %s |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 18 | ; OPT-BEFORE: Injected args: -O3 -mtriple=aarch64 |