llvm-project/lld/test/pecoff/seh64.test

78 lines
2.6 KiB
Plaintext

# RUN: yaml2obj %p/Inputs/unwind.obj.yaml > %t.obj
#
# RUN: lld -flavor link /machine:x64 /out:%t.exe /subsystem:console /force \
# RUN: /nodefaultlib -- %t.obj
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=HEADER %s
# RUN: llvm-objdump -unwind-info %t.exe | FileCheck -check-prefix=UNWIND %s
HEADER: ExceptionTableRVA: 0x1000
UNWIND: Function Table:
UNWIND: Start Address: 0x2000
UNWIND: End Address: 0x2000
UNWIND: Unwind Info Address: 0x3000
UNWIND: Version: 1
UNWIND: Flags: 1 UNW_ExceptionHandler
UNWIND: Size of prolog: 18
UNWIND: Number of Codes: 8
UNWIND: Frame register: RBX
UNWIND: Frame offset: 0
UNWIND: Unwind Codes:
UNWIND: 0x12: UOP_SetFPReg
UNWIND: 0x0f: UOP_PushNonVol RBX
UNWIND: 0x0e: UOP_SaveXMM128 XMM8 [0x0000]
UNWIND: 0x09: UOP_SaveNonVol RSI [0x0010]
UNWIND: 0x04: UOP_AllocSmall 24
UNWIND: 0x00: UOP_PushMachFrame w/o error code
UNWIND: Function Table:
UNWIND: Start Address: 0x2000
UNWIND: End Address: 0x2000
UNWIND: Unwind Info Address: 0x3000
UNWIND: Version: 1
UNWIND: Flags: 1 UNW_ExceptionHandler
UNWIND: Size of prolog: 18
UNWIND: Number of Codes: 8
UNWIND: Frame register: RBX
UNWIND: Frame offset: 0
UNWIND: Unwind Codes:
UNWIND: 0x12: UOP_SetFPReg
UNWIND: 0x0f: UOP_PushNonVol RBX
UNWIND: 0x0e: UOP_SaveXMM128 XMM8 [0x0000]
UNWIND: 0x09: UOP_SaveNonVol RSI [0x0010]
UNWIND: 0x04: UOP_AllocSmall 24
UNWIND: 0x00: UOP_PushMachFrame w/o error code
UNWIND: Function Table:
UNWIND: Start Address: 0x201b
UNWIND: End Address: 0x201b
UNWIND: Unwind Info Address: 0x3000
UNWIND: Version: 1
UNWIND: Flags: 1 UNW_ExceptionHandler
UNWIND: Size of prolog: 18
UNWIND: Number of Codes: 8
UNWIND: Frame register: RBX
UNWIND: Frame offset: 0
UNWIND: Unwind Codes:
UNWIND: 0x12: UOP_SetFPReg
UNWIND: 0x0f: UOP_PushNonVol RBX
UNWIND: 0x0e: UOP_SaveXMM128 XMM8 [0x0000]
UNWIND: 0x09: UOP_SaveNonVol RSI [0x0010]
UNWIND: 0x04: UOP_AllocSmall 24
UNWIND: 0x00: UOP_PushMachFrame w/o error code
UNWIND: Function Table:
UNWIND: Start Address: 0x201c
UNWIND: End Address: 0x201c
UNWIND: Unwind Info Address: 0x3000
UNWIND: Version: 1
UNWIND: Flags: 1 UNW_ExceptionHandler
UNWIND: Size of prolog: 18
UNWIND: Number of Codes: 8
UNWIND: Frame register: RBX
UNWIND: Frame offset: 0
UNWIND: Unwind Codes:
UNWIND: 0x12: UOP_SetFPReg
UNWIND: 0x0f: UOP_PushNonVol RBX
UNWIND: 0x0e: UOP_SaveXMM128 XMM8 [0x0000]
UNWIND: 0x09: UOP_SaveNonVol RSI [0x0010]
UNWIND: 0x04: UOP_AllocSmall 24
UNWIND: 0x00: UOP_PushMachFrame w/o error code