Rearrange the CHECK lines in this test to make failure more obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Kleckner 2014-06-10 20:16:47 +00:00
parent e21498e604
commit 733073df6a

View File

@ -1,36 +1,25 @@
# RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s # RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s
# CHECK: .seh_proc func
# CHECK: .seh_pushframe @code
# CHECK: .seh_stackalloc 24
# CHECK: .seh_savereg 6, 16
# CHECK: .seh_savexmm 8, 0
# CHECK: .seh_pushreg 3
# CHECK: .seh_setframe 3, 0
# CHECK: .seh_endprologue
# CHECK: .seh_handler __C_specific_handler, @except
# CHECK-NOT: .section{{.*}}.xdata
# CHECK: .seh_handlerdata
# CHECK: .text
# CHECK: .seh_startchained
# CHECK: .seh_endprologue
# CHECK: .seh_endchained
# CHECK: .seh_endproc
.text .text
.globl func .globl func
.def func; .scl 2; .type 32; .endef .def func; .scl 2; .type 32; .endef
.seh_proc func .seh_proc func
# CHECK: .seh_proc func
func: func:
.seh_pushframe @code .seh_pushframe @code
# CHECK: .seh_pushframe @code
subq $24, %rsp subq $24, %rsp
.seh_stackalloc 24 .seh_stackalloc 24
# CHECK: .seh_stackalloc 24
movq %rsi, 16(%rsp) movq %rsi, 16(%rsp)
.seh_savereg %rsi, 16 .seh_savereg %rsi, 16
# CHECK: .seh_savereg 6, 16
movups %xmm8, (%rsp) movups %xmm8, (%rsp)
.seh_savexmm %xmm8, 0 .seh_savexmm %xmm8, 0
# CHECK: .seh_savexmm 8, 0
pushq %rbx pushq %rbx
.seh_pushreg 3 .seh_pushreg 3
# CHECK: .seh_pushreg 3
mov %rsp, %rbx mov %rsp, %rbx
.seh_setframe 3, 0 .seh_setframe 3, 0
.seh_endprologue .seh_endprologue
@ -41,8 +30,18 @@ func:
.seh_startchained .seh_startchained
.seh_endprologue .seh_endprologue
.seh_endchained .seh_endchained
# CHECK: .seh_setframe 3, 0
# CHECK: .seh_endprologue
# CHECK: .seh_handler __C_specific_handler, @except
# CHECK-NOT: .section{{.*}}.xdata
# CHECK: .seh_handlerdata
# CHECK: .text
# CHECK: .seh_startchained
# CHECK: .seh_endprologue
# CHECK: .seh_endchained
lea (%rbx), %rsp lea (%rbx), %rsp
pop %rbx pop %rbx
addq $24, %rsp addq $24, %rsp
ret ret
.seh_endproc .seh_endproc
# CHECK: .seh_endproc