mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add tests for .seh_savereg and .seh_savexmm parsing. Once again, fix the
buggy methods that parse these directives. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132045 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user