1 ; REQUIRES: x86-registered-target
3 ; Temporary bitcode file
6 ; Don't start without target triple
7 ; RUN: not llvm-opt-fuzzer %t 2>&1 | FileCheck -check-prefix=TRIPLE %s
8 ; TRIPLE: -mtriple must be specified
10 ; Don't start without passes specified
11 ; RUN: not llvm-opt-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 2>&1 | FileCheck -check-prefix=PASSES %s
12 ; PASSES: at least one pass should be specified
14 ; Don't start with incorrect passes specified
15 ; RUN: not llvm-opt-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 -passes no-pass 2>&1 | FileCheck -check-prefix=PIPELINE %s
16 ; PIPELINE: unknown pass name 'no-pass'
18 ; Correct command line
19 ; RUN: llvm-opt-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 -passes instcombine 2>&1 | FileCheck -check-prefix=CORRECT %s