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:
@@ -2853,7 +2853,7 @@
|
|||||||
|
|
||||||
(rule (lower (get_return_address))
|
(rule (lower (get_return_address))
|
||||||
(x64_load $I64
|
(x64_load $I64
|
||||||
(Amode.ImmReg 8 (preg_rbp) (mem_flags_trusted))
|
(Amode.ImmReg 8 (x64_rbp) (mem_flags_trusted))
|
||||||
(ExtKind.None)))
|
(ExtKind.None)))
|
||||||
|
|
||||||
;; Rules for `jump` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;; Rules for `jump` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ block0:
|
|||||||
; pushq %rbp
|
; pushq %rbp
|
||||||
; movq %rsp, %rbp
|
; movq %rsp, %rbp
|
||||||
; block0:
|
; block0:
|
||||||
; movq 8(%rbp), %rax
|
; movq %rbp, %rdi
|
||||||
|
; movq 8(%rdi), %rax
|
||||||
; movq %rbp, %rsp
|
; movq %rbp, %rsp
|
||||||
; popq %rbp
|
; popq %rbp
|
||||||
; ret
|
; ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user