1 ; RUN: opt -disable-verify -passes=instcombine < %s -opt-bisect-limit=0 -opt-bisect-print-ir-path=%t -disable-output
2 ; RUN: FileCheck %s --check-prefix=LIMIT0 --input-file %t
3 ; RUN: opt -disable-verify -passes=instcombine < %s -opt-bisect-limit=1 -opt-bisect-print-ir-path=%t -disable-output
4 ; RUN: FileCheck %s --check-prefix=LIMIT1 --input-file %t
5 ; RUN: opt -disable-verify -passes=instcombine < %s -opt-bisect-limit=2 -opt-bisect-print-ir-path=%t -disable-output
6 ; FIXME: print IR if limit is higher than number of opt-bisect invocations
8 ; Check that we only print the module once
9 ; RUN: opt -disable-verify -passes=instcombine < %s -opt-bisect-limit=1 -opt-bisect-print-ir-path=- -disable-output 2>&1 | FileCheck %s