[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / stdcall.s
blob7302dc3363ae80d375d842f6871401f20c3c2709
1 # RUN: llvm-mc %s -filetype=obj -o - -triple i686-windows-msvc | llvm-nm - | FileCheck %s
2 # RUN: llvm-mc %s -filetype=obj -o - -triple i686-windows-gnu | llvm-nm - | FileCheck %s
4 # CHECK: T _mystdcall@8{{$}}
5 # CHECK: T foo
7 .text
8 .global _mystdcall@8
9 _mystdcall@8:
10 movl 4(%esp), %eax
11 addl 8(%esp), %eax
12 retl $8
14 .global foo
15 foo:
16 pushl $1
17 pushl $2
18 calll _mystdcall@8
19 retl