summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/stdcall.s
blob: 7302dc3363ae80d375d842f6871401f20c3c2709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RUN: llvm-mc %s -filetype=obj -o - -triple i686-windows-msvc | llvm-nm - | FileCheck %s
# RUN: llvm-mc %s -filetype=obj -o - -triple i686-windows-gnu | llvm-nm - | FileCheck %s

# CHECK: T _mystdcall@8{{$}}
# CHECK: T foo

.text
.global _mystdcall@8
_mystdcall@8:
	movl 4(%esp), %eax
	addl 8(%esp), %eax
	retl $8

.global foo
foo:
	pushl $1
	pushl $2
	calll _mystdcall@8
	retl
OpenPOWER on IntegriCloud