xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/subreg-to-reg-2.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin | grep movl
2*9880d681SAndroid Build Coastguard Worker; rdar://6707985
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker	%XXOO = type { %"struct.XXC::XXCC", i8*, %"struct.XXC::XXOO::$_71" }
5*9880d681SAndroid Build Coastguard Worker	%XXValue = type opaque
6*9880d681SAndroid Build Coastguard Worker	%"struct.XXC::ArrayStorage" = type { i32, i32, i32, i8*, i8*, [1 x %XXValue*] }
7*9880d681SAndroid Build Coastguard Worker	%"struct.XXC::XXArray" = type { %XXOO, i32, %"struct.XXC::ArrayStorage"* }
8*9880d681SAndroid Build Coastguard Worker	%"struct.XXC::XXCC" = type { i32 (...)**, i8* }
9*9880d681SAndroid Build Coastguard Worker	%"struct.XXC::XXOO::$_71" = type { [2 x %XXValue*] }
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine internal fastcc %XXValue* @t(i64* %out, %"struct.XXC::ArrayStorage"* %tmp9) nounwind {
12*9880d681SAndroid Build Coastguard Workerprologue:
13*9880d681SAndroid Build Coastguard Worker	%array = load %XXValue*, %XXValue** inttoptr (i64 11111111 to %XXValue**)		; <%XXValue*> [#uses=0]
14*9880d681SAndroid Build Coastguard Worker	%index = load %XXValue*, %XXValue** inttoptr (i64 22222222 to %XXValue**)		; <%XXValue*> [#uses=1]
15*9880d681SAndroid Build Coastguard Worker	%tmp = ptrtoint %XXValue* %index to i64		; <i64> [#uses=2]
16*9880d681SAndroid Build Coastguard Worker	store i64 %tmp, i64* %out
17*9880d681SAndroid Build Coastguard Worker	%tmp6 = trunc i64 %tmp to i32		; <i32> [#uses=1]
18*9880d681SAndroid Build Coastguard Worker	br label %bb5
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Workerbb5:		; preds = %prologue
21*9880d681SAndroid Build Coastguard Worker	%tmp10 = zext i32 %tmp6 to i64		; <i64> [#uses=1]
22*9880d681SAndroid Build Coastguard Worker	%tmp11 = getelementptr %"struct.XXC::ArrayStorage", %"struct.XXC::ArrayStorage"* %tmp9, i64 0, i32 5, i64 %tmp10		; <%XXValue**> [#uses=1]
23*9880d681SAndroid Build Coastguard Worker	%tmp12 = load %XXValue*, %XXValue** %tmp11, align 8		; <%XXValue*> [#uses=1]
24*9880d681SAndroid Build Coastguard Worker	ret %XXValue* %tmp12
25*9880d681SAndroid Build Coastguard Worker}
26