Justin Bogner | 9ea7fbd | 2017-10-12 04:35:32 +0000 | [diff] [blame^] | 1 | ; RUN: echo > %t.input |
| 2 | |
| 3 | ; RUN: cp llvm-isel-fuzzer %t.bin=gisel |
| 4 | ; RUN: not %t.bin=gisel %t.input 2>&1 | FileCheck -check-prefix=GISEL %s |
| 5 | ; GISEL: Injected args: -global-isel -O0 |
| 6 | ; GISEL: -mtriple must be specified |
| 7 | |
| 8 | ; RUN: cp llvm-isel-fuzzer %t.bin=gisel-O2 |
| 9 | ; RUN: not %t.bin=gisel-O2 %t.input 2>&1 | FileCheck -check-prefix=GISEL-O2 %s |
| 10 | ; GISEL-O2: Injected args: -global-isel -O0 -O2 |
| 11 | ; GISEL-O2: -mtriple must be specified |
| 12 | |
| 13 | ; RUN: cp llvm-isel-fuzzer %t.bin=unexist |
| 14 | ; RUN: not %t.bin=unexist %t.input 2>&1 | FileCheck -check-prefix=NO-OPT %s |
| 15 | ; NO-OPT: Unknown option: |