xref: /aosp_15_r20/external/llvm/test/CodeGen/AArch64/arm64-2011-04-21-CPSRBug.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm64-apple-iOS5.0
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CPSR is not allocatable so fast allocatable wouldn't mark them killed.
4*9880d681SAndroid Build Coastguard Worker; rdar://9313272
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine hidden void @t() nounwind {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  %cmp = icmp eq i32* null, undef
9*9880d681SAndroid Build Coastguard Worker  %frombool = zext i1 %cmp to i8
10*9880d681SAndroid Build Coastguard Worker  store i8 %frombool, i8* undef, align 1
11*9880d681SAndroid Build Coastguard Worker  %tmp4 = load i8, i8* undef, align 1
12*9880d681SAndroid Build Coastguard Worker  %tobool = trunc i8 %tmp4 to i1
13*9880d681SAndroid Build Coastguard Worker  br i1 %tobool, label %land.lhs.true, label %if.end
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerland.lhs.true:                                    ; preds = %entry
16*9880d681SAndroid Build Coastguard Worker  unreachable
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerif.end:                                           ; preds = %entry
19*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %land.lhs.true14, label %if.end33
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerland.lhs.true14:                                  ; preds = %if.end
22*9880d681SAndroid Build Coastguard Worker  unreachable
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workerif.end33:                                         ; preds = %if.end
25*9880d681SAndroid Build Coastguard Worker  unreachable
26*9880d681SAndroid Build Coastguard Worker}
27