xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/stdcall.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple="i386-pc-mingw32" < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; PR5851
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker%0 = type { void (...)* }
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine internal x86_stdcallcc void @MyFunc() nounwind {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker; CHECK: MyFunc@0:
9*9880d681SAndroid Build Coastguard Worker; CHECK: retl
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; PR14410
14*9880d681SAndroid Build Coastguard Workerdefine x86_stdcallcc i32 @"\01DoNotMangle"(i32 %a) {
15*9880d681SAndroid Build Coastguard Worker; CHECK: DoNotMangle:
16*9880d681SAndroid Build Coastguard Worker; CHECK: retl $4
17*9880d681SAndroid Build Coastguard Workerentry:
18*9880d681SAndroid Build Coastguard Worker  ret i32 %a
19*9880d681SAndroid Build Coastguard Worker}
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker@B = global %0 { void (...)* bitcast (void ()* @MyFunc to void (...)*) }, align 4
22*9880d681SAndroid Build Coastguard Worker; CHECK: _B:
23*9880d681SAndroid Build Coastguard Worker; CHECK: .long _MyFunc@0
24*9880d681SAndroid Build Coastguard Worker
25