blob: 61fbab3897e42a54386767e064248eab1c07afff [file] [log] [blame]
Justin Bogner9ea7fbd2017-10-12 04:35:32 +00001; 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: