xref: /llvm-project/llvm/test/tools/llvm-isel-fuzzer/execname-options.ll (revision ba3bc2fd41b8428904fc779e353d3769074d8982)
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.
3; REQUIRES: static-libs
4
5; The above also applies if the binary is built with libc++.
6; UNSUPPORTED: libcxx-used
7
8; RUN: echo > %t.input
9
10; workaround for https://openradar.appspot.com/FB8914243
11; RUN: rm -f %t.bin--gisel
12; RUN: rm -f %t.bin--gisel-O2
13; RUN: rm -f %t.bin--unexist
14
15; RUN: cp llvm-isel-fuzzer %t.bin--gisel
16; RUN: not %t.bin--gisel %t.input 2>&1 | FileCheck -check-prefix=GISEL %s
17; GISEL: Injected args: -global-isel -O0
18; GISEL: -mtriple must be specified
19
20; RUN: cp llvm-isel-fuzzer %t.bin--gisel-O2
21; RUN: not %t.bin--gisel-O2 %t.input 2>&1 | FileCheck -check-prefix=GISEL-O2 %s
22; GISEL-O2: Injected args: -global-isel -O0 -O2
23; GISEL-O2: -mtriple must be specified
24
25; RUN: cp llvm-isel-fuzzer %t.bin--unexist
26; RUN: not %t.bin--unexist %t.input 2>&1 | FileCheck -check-prefix=NO-OPT %s
27; NO-OPT: Unknown option:
28