| 1 |
; REQUIRES: x86-registered-target |
| 2 |
|
| 3 |
; Temporary bitcode file |
| 4 |
; RUN: opt -o %t %s |
| 5 |
|
| 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 |
| 9 |
|
| 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 |
| 13 |
|
| 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' |
| 17 |
|
| 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 |
| 20 |
; CORRECT: Running |