2011-05-24 21:22:53 +00:00
|
|
|
# RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: .seh_proc func
|
2011-05-25 04:08:15 +00:00
|
|
|
# CHECK: .seh_pushframe @code
|
2011-05-25 01:33:42 +00:00
|
|
|
# CHECK: .seh_stackalloc 24
|
2011-05-24 21:22:53 +00:00
|
|
|
# CHECK: .seh_endprologue
|
2011-05-25 01:33:42 +00:00
|
|
|
# CHECK: .seh_handler __C_specific_handler, @except
|
2011-05-24 21:22:53 +00:00
|
|
|
# CHECK: .seh_endproc
|
|
|
|
|
|
|
|
.text
|
|
|
|
.globl func
|
|
|
|
.def func; .scl 2; .type 32; .endef
|
|
|
|
.seh_proc func
|
|
|
|
func:
|
2011-05-25 04:08:15 +00:00
|
|
|
.seh_pushframe @code
|
2011-05-25 01:33:42 +00:00
|
|
|
subq $24, %rsp
|
|
|
|
.seh_stackalloc 24
|
2011-05-24 21:22:53 +00:00
|
|
|
.seh_endprologue
|
2011-05-25 01:33:42 +00:00
|
|
|
.seh_handler __C_specific_handler, @except
|
|
|
|
addq $24, %rsp
|
2011-05-24 21:22:53 +00:00
|
|
|
ret
|
|
|
|
.seh_endproc
|