summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2011-05-25 04:51:25 +0000
committerCharles Davis <cdavis@mines.edu>2011-05-25 04:51:25 +0000
commit828b00c0e1126a27786982f63c941249ce3ab99c (patch)
treed878b4b07a863421c6dcc1183342926b1b95deaa /llvm/test
parenta51604e511d14514cdb2766100989d170ca4e5b5 (diff)
downloadbcm5719-llvm-828b00c0e1126a27786982f63c941249ce3ab99c.tar.gz
bcm5719-llvm-828b00c0e1126a27786982f63c941249ce3ab99c.zip
Add tests for .seh_savereg and .seh_savexmm parsing. Once again, fix the
buggy methods that parse these directives. llvm-svn: 132045
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/AsmParser/directive_seh.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_seh.s b/llvm/test/MC/AsmParser/directive_seh.s
index e14be4367ae..8b27542fb32 100644
--- a/llvm/test/MC/AsmParser/directive_seh.s
+++ b/llvm/test/MC/AsmParser/directive_seh.s
@@ -3,6 +3,8 @@
# CHECK: .seh_proc func
# CHECK: .seh_pushframe @code
# CHECK: .seh_stackalloc 24
+# CHECK: .seh_savereg 6, 16
+# CHECK: .seh_savexmm 8, 0
# CHECK: .seh_endprologue
# CHECK: .seh_handler __C_specific_handler, @except
# CHECK: .seh_endproc
@@ -15,6 +17,10 @@ func:
.seh_pushframe @code
subq $24, %rsp
.seh_stackalloc 24
+ movq %rsi, 16(%rsp)
+ .seh_savereg %rsi, 16
+ movups %xmm8, (%rsp)
+ .seh_savexmm %xmm8, 0
.seh_endprologue
.seh_handler __C_specific_handler, @except
addq $24, %rsp
OpenPOWER on IntegriCloud