xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/fast-isel-redefinition.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O0 -verify-machineinstrs -fast-isel-abort=1 -optimize-regalloc -regalloc=basic < %s
2*9880d681SAndroid Build Coastguard Worker; This isn't exactly a useful set of command-line options, but check that it
3*9880d681SAndroid Build Coastguard Worker; doesn't crash.  (It was crashing because a register was getting redefined.)
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7-apple-macosx10.6.7"
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine i32 @f(i32* %x) nounwind ssp {
8*9880d681SAndroid Build Coastguard Worker  %y = getelementptr inbounds i32, i32* %x, i32 5000
9*9880d681SAndroid Build Coastguard Worker  %tmp103 = load i32, i32* %y, align 4
10*9880d681SAndroid Build Coastguard Worker  ret i32 %tmp103
11*9880d681SAndroid Build Coastguard Worker}
12