1 ; This run line verifies that we get the expected constant fold.
2 ; RUN: opt < %s -instcombine -S | FileCheck %s
4 ; This run line verifies that InstructionCombiningPass::runOnFunction reports
5 ; this as a modification of the IR.
6 ; RUN: opt < %s -instcombine -disable-output -debug-pass=Details 2>&1 | FileCheck %s --check-prefix=DETAILS
8 define i32 @foo(i32 %arg) #0 {
11 ; CHECK-NEXT: [[AND:%.*]] = and i32 [[ARG:%.*]], 7
12 ; CHECK-NEXT: ret i32 [[AND]]
16 %and = and i32 %arg, %or
20 ; DETAILS: Made Modification 'Combine redundant instructions' on Function 'foo'