16 lines · plain
1; This run line verifies that we get the expected constant fold.2; RUN: opt < %s -passes=instcombine -S | FileCheck %s3 4define i32 @foo(i32 %arg) #0 {5; CHECK-LABEL: @foo(6; CHECK-NEXT: entry:7; CHECK-NEXT: [[AND:%.*]] = and i32 [[ARG:%.*]], 78; CHECK-NEXT: ret i32 [[AND]]9;10entry:11 %or = or i32 0, 712 %and = and i32 %arg, %or13 ret i32 %and14}15 16