1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

test: make the test clearer (NFC)

Use `llvm-objdump -dwarf=frames` to dump the .eh_frame to validate the
output textually rather than compare the binary output.  This makes it
easier to see what is being checked.  NFC.

llvm-svn: 309524
This commit is contained in:
Saleem Abdulrasool 2017-07-30 21:30:53 +00:00
parent 82521f7a8e
commit bb6a582495

View File

@ -1,5 +1,5 @@
// RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-ASM-ROUNDTRIP
// RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype obj -o - %s | llvm-objdump -s -j .eh_frame - | FileCheck %s -check-prefix CHECK-EH_FRAME
// RUN: llvm-mc -triple i686-unknown-linux-gnu -filetype obj -o - %s | llvm-objdump -dwarf=frames - | FileCheck %s -check-prefix CHECK-EH_FRAME
// REQUIRES: x86-registered-target
.text
@ -25,7 +25,11 @@ g:
// CHECK-ASM-ROUNDTRIP-NEXT: .cfi_return_column 0
// CHECK-ASM-ROUNDTRIP: .cfi_endproc
// CHECK-EH_FRAME: Contents of section .eh_frame:
// CHECK-EH_FRAME: 0000 14000000 00000000 017a5200 017c0001 .........zR..|..
// CHECK-EH_FRAME: 0030 00000000 017a5200 017c4101 1b0c0404 .....zR..|A.....
// CHECK-EH_FRAME: 00000000 00000014 ffffffff CIE
// CHECK-EH_FRAME: Return address column: 0
// CHECK-EH_FRAME: 0000002c 00000014 ffffffff CIE
// CHECK-EH_FRAME: Return address column: 65
// CHECK-EH_FRAME-NOT: ........ 00000014 ffffffff CIE