xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/dag-rauw-cse.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; PR3018
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine i32 @test(i32 %A) nounwind {
5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test:
6*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ret
7*9880d681SAndroid Build Coastguard Worker; CHECK: orl $1
8*9880d681SAndroid Build Coastguard Worker; CHECK: ret
9*9880d681SAndroid Build Coastguard Worker  %B = or i32 %A, 1
10*9880d681SAndroid Build Coastguard Worker  %C = or i32 %B, 1
11*9880d681SAndroid Build Coastguard Worker  %D = and i32 %C, 7057
12*9880d681SAndroid Build Coastguard Worker  ret i32 %D
13*9880d681SAndroid Build Coastguard Worker}
14