forked from swiftlang/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-readobj] Fix arm64 unwind opcode disassembly printing
Add a missing minus, fix vertical alignment of instructions for one opcode. Differential Revision: https://reviews.llvm.org/D86523
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// REQUIRES: aarch64-registered-target | ||
// RUN: llvm-mc -filetype=obj -triple aarch64-windows %s -o - \ | ||
// RUN: | llvm-readobj --unwind - | FileCheck %s | ||
|
||
// CHECK: Prologue [ | ||
// CHECK-NEXT: 0xdc01 ; str d8, [sp, #8] | ||
// CHECK-NEXT: 0xd400 ; str x19, [sp, #-8]! | ||
// CHECK-NEXT: 0xe4 ; end | ||
// CHECK-NEXT: ] | ||
|
||
.section .pdata,"dr" | ||
.long func@IMGREL | ||
.long "$unwind$func"@IMGREL | ||
|
||
.text | ||
.globl func | ||
func: | ||
str x19, [sp, #-8]! | ||
str d8, [sp, #8] | ||
ret | ||
|
||
.section .xdata,"dr" | ||
"$unwind$func": | ||
.long 0x10000002, 0x00d401dc, 0xe3e3e3e4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters