Switch to x64_rbp to avoid the use of a pinned register (#5168)

Avoid a use of preg_rpb in the x64 backend, using x64_rbp instead.
This commit is contained in:
Trevor Elliott
2022-11-01 13:23:33 -07:00
committed by GitHub
parent 0ca3249afa
commit 09d8df6fab
2 changed files with 4 additions and 2 deletions

View File

@@ -2853,7 +2853,7 @@
(rule (lower (get_return_address))
(x64_load $I64
(Amode.ImmReg 8 (preg_rbp) (mem_flags_trusted))
(Amode.ImmReg 8 (x64_rbp) (mem_flags_trusted))
(ExtKind.None)))
;; Rules for `jump` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View File

@@ -39,7 +39,9 @@ block0:
; pushq %rbp
; movq %rsp, %rbp
; block0:
; movq 8(%rbp), %rax
; movq %rbp, %rdi
; movq 8(%rdi), %rax
; movq %rbp, %rsp
; popq %rbp
; ret