| 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 | 754a1a8 | 2017-10-12 18:10:22 +0000 | [diff] [blame] | 4 | |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 5 | ; RUN: echo > %t.input |
| 6 | |
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 7 | ; RUN: cp llvm-isel-fuzzer %t.bin--gisel |
| 8 | ; RUN: not %t.bin--gisel %t.input 2>&1 | FileCheck -check-prefix=GISEL %s |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 9 | ; GISEL: Injected args: -global-isel -O0 |
| 10 | ; GISEL: -mtriple must be specified |
| 11 | |
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 12 | ; RUN: cp llvm-isel-fuzzer %t.bin--gisel-O2 |
| 13 | ; RUN: not %t.bin--gisel-O2 %t.input 2>&1 | FileCheck -check-prefix=GISEL-O2 %s |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 14 | ; GISEL-O2: Injected args: -global-isel -O0 -O2 |
| 15 | ; GISEL-O2: -mtriple must be specified |
| 16 | |
| Matt Morehouse | 8bc23ab | 2017-10-13 00:18:32 +0000 | [diff] [blame] | 17 | ; RUN: cp llvm-isel-fuzzer %t.bin--unexist |
| 18 | ; RUN: not %t.bin--unexist %t.input 2>&1 | FileCheck -check-prefix=NO-OPT %s |
| Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame] | 19 | ; NO-OPT: Unknown option: |