xref: /aosp_15_r20/external/llvm/test/ExecutionEngine/MCJIT/2003-08-15-AllocaAssertion.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: %lli %s > /dev/null
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; This testcase failed to work because two variable sized allocas confused the
4*9880d681SAndroid Build Coastguard Worker; local register allocator.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @main(i32 %X) {
7*9880d681SAndroid Build Coastguard Worker	%A = alloca i32, i32 %X		; <i32*> [#uses=0]
8*9880d681SAndroid Build Coastguard Worker	%B = alloca float, i32 %X		; <float*> [#uses=0]
9*9880d681SAndroid Build Coastguard Worker	ret i32 0
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12