21 lines · plain
1; REQUIRES: x86-registered-target2 3; Temporary bitcode file4; RUN: opt -o %t %s5 6; Don't start without target triple7; RUN: not llvm-opt-fuzzer %t 2>&1 | FileCheck -check-prefix=TRIPLE %s8; TRIPLE: -mtriple must be specified9 10; Don't start without passes specified11; RUN: not llvm-opt-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 2>&1 | FileCheck -check-prefix=PASSES %s12; PASSES: at least one pass should be specified13 14; Don't start with incorrect passes specified15; RUN: not llvm-opt-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 -passes no-pass 2>&1 | FileCheck -check-prefix=PIPELINE %s16; PIPELINE: unknown pass name 'no-pass'17 18; Correct command line19; RUN: llvm-opt-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 -passes instcombine 2>&1 | FileCheck -check-prefix=CORRECT %s20; CORRECT: Running21