| 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 |  | 
| Xing Xue | fe4f6d5 | 2019-05-14 13:54:33 +0000 | [diff] [blame] | 6 | ; The above also applies if the binary is built with libc++. | 
|  | 7 | ; UNSUPPORTED: libcxx-used | 
|  | 8 |  | 
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 9 | ; RUN: echo > %t.input | 
|  | 10 |  | 
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 11 | ; RUN: cp llvm-isel-fuzzer %t.bin--aarch64 | 
|  | 12 | ; 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] | 13 | ; AARCH64: Injected args: -mtriple=aarch64 | 
|  | 14 |  | 
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 15 | ; RUN: cp llvm-isel-fuzzer %t.bin--aarch64-O1 | 
|  | 16 | ; 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] | 17 | ; OPT-AFTER: Injected args: -mtriple=aarch64 -O1 | 
|  | 18 |  | 
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 19 | ; RUN: cp llvm-isel-fuzzer %t.bin--O3-aarch64 | 
|  | 20 | ; 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] | 21 | ; OPT-BEFORE: Injected args: -O3 -mtriple=aarch64 |