xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/fold-call-2.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i386-apple-darwin | grep mov | count 1
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@f = external global void ()*		; <void ()**> [#uses=1]
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine i32 @main() nounwind {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker	load void ()*, void ()** @f, align 8		; <void ()*>:0 [#uses=1]
8*9880d681SAndroid Build Coastguard Worker	tail call void %0( ) nounwind
9*9880d681SAndroid Build Coastguard Worker	ret i32 0
10*9880d681SAndroid Build Coastguard Worker}
11