aboutsummaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2011-05-25 01:33:42 +0000
committerCharles Davis <cdavis@mines.edu>2011-05-25 01:33:42 +0000
commit309213279e5d95826d97b2ab2178db5ddea0ed80 (patch)
tree3fb76719f64040c0d2bbdf86e1da942b92304d69 /test/MC/AsmParser
parent56926a39619bd644c83c4128f0b55189e52707d7 (diff)
Add a test for the .seh_handler directive. Fix problems with the parsing
method exposed by the test. While we're at it, simplify the .seh_proc parsing method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r--test/MC/AsmParser/directive_seh.s10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/MC/AsmParser/directive_seh.s b/test/MC/AsmParser/directive_seh.s
index 5fd2efad39..7111fcc6b2 100644
--- a/test/MC/AsmParser/directive_seh.s
+++ b/test/MC/AsmParser/directive_seh.s
@@ -1,8 +1,9 @@
# RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s
# CHECK: .seh_proc func
-# CHECK: .seh_stackalloc 8
+# CHECK: .seh_stackalloc 24
# CHECK: .seh_endprologue
+# CHECK: .seh_handler __C_specific_handler, @except
# CHECK: .seh_endproc
.text
@@ -10,9 +11,10 @@
.def func; .scl 2; .type 32; .endef
.seh_proc func
func:
- subq $8, %rsp
- .seh_stackalloc 8
+ subq $24, %rsp
+ .seh_stackalloc 24
.seh_endprologue
- addq $8, %rsp
+ .seh_handler __C_specific_handler, @except
+ addq $24, %rsp
ret
.seh_endproc