xref: /aosp_15_r20/external/llvm/test/CodeGen/AArch64/large_shift.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=aarch64 -o - %s
2*9880d681SAndroid Build Coastguard Workertarget triple = "arm64-unknown-unknown"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; Make sure we don't run into an assert in the aarch64 code selection when
5*9880d681SAndroid Build Coastguard Worker; DAGCombining fails.
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdeclare void @t()
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
10*9880d681SAndroid Build Coastguard Worker  %c = bitcast i64 270458 to i64
11*9880d681SAndroid Build Coastguard Worker  %t0 = lshr i64 %c, 422383
12*9880d681SAndroid Build Coastguard Worker  %t1 = trunc i64 %t0 to i1
13*9880d681SAndroid Build Coastguard Worker  br i1 %t1, label %BB1, label %BB0
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard WorkerBB0:
16*9880d681SAndroid Build Coastguard Worker  call void @t()
17*9880d681SAndroid Build Coastguard Worker  br label %BB1
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard WorkerBB1:
20*9880d681SAndroid Build Coastguard Worker  ret void
21*9880d681SAndroid Build Coastguard Worker}
22