summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorKai Nacke <kai.nacke@redstar.de>2013-08-27 04:16:16 +0000
committerKai Nacke <kai.nacke@redstar.de>2013-08-27 04:16:16 +0000
commit1b7e4866f41c360b85cfe74d419084550166ec7b (patch)
treeb038bd06b5e195b5a551e27e562aba01ea1e98ad /llvm/test
parentbc839fcd3e7830616ca4e9c687459aab886eb91e (diff)
downloadbcm5719-llvm-1b7e4866f41c360b85cfe74d419084550166ec7b.tar.gz
bcm5719-llvm-1b7e4866f41c360b85cfe74d419084550166ec7b.zip
Fix wrong code offset for unwind code SET_FPREG.
The code offset for unwind code SET_FPREG is wrong because it is set to constant 0. The fix is to do the same as for the other unwind codes: emit a label and later the absolute difference between the label and the begin of the prologue. Also enables the failing test case MC/COFF/seh.s Reviewed by Jim Grosbach, Charles Davis and Nico Rieck. llvm-svn: 189309
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/COFF/seh.s2
-rw-r--r--llvm/test/tools/llvm-objdump/win64-unwind-data.s2
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/test/MC/COFF/seh.s b/llvm/test/MC/COFF/seh.s
index bef425efb43..b1e61a97739 100644
--- a/llvm/test/MC/COFF/seh.s
+++ b/llvm/test/MC/COFF/seh.s
@@ -1,7 +1,5 @@
// This test checks that the SEH directives emit the correct unwind data.
-// TODO: Expected fail because SET_FPREG has a wrong offset.
-// XFAIL: *
// RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-readobj -s -u | FileCheck %s
// CHECK: Sections [
diff --git a/llvm/test/tools/llvm-objdump/win64-unwind-data.s b/llvm/test/tools/llvm-objdump/win64-unwind-data.s
index 1e4c7428ce3..a172bfca6b3 100644
--- a/llvm/test/tools/llvm-objdump/win64-unwind-data.s
+++ b/llvm/test/tools/llvm-objdump/win64-unwind-data.s
@@ -13,7 +13,7 @@
// CHECK-NEXT: Frame register: RBX
// CHECK-NEXT: Frame offset: 0
// CHECK-NEXT: Unwind Codes:
-// CHECK-NEXT: 0x00: UOP_SetFPReg
+// CHECK-NEXT: 0x12: UOP_SetFPReg
// CHECK-NEXT: 0x0f: UOP_PushNonVol RBX
// CHECK-NEXT: 0x0e: UOP_SaveXMM128 XMM8 [0x0000]
// CHECK-NEXT: 0x09: UOP_SaveNonVol RSI [0x0010]
OpenPOWER on IntegriCloud