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