@@ -1603,7 +1603,7 @@ impl X64FunctionCode {
1603
1603
) {
1604
1604
assert ! ( memory_sz <= stack_sz) ;
1605
1605
1606
- let compare = m. reserve_temp_gpr ( GPR :: RAX ) ;
1606
+ let compare = m. reserve_unused_temp_gpr ( GPR :: RAX ) ;
1607
1607
let value = if loc == Location :: GPR ( GPR :: R14 ) {
1608
1608
GPR :: R13
1609
1609
} else {
@@ -6775,7 +6775,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
6775
6775
) [ 0 ] ;
6776
6776
self . value_stack . push ( ret) ;
6777
6777
6778
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
6778
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
6779
6779
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
6780
6780
if new == Location :: GPR ( GPR :: R13 ) {
6781
6781
GPR :: R12
@@ -6824,7 +6824,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
6824
6824
) [ 0 ] ;
6825
6825
self . value_stack . push ( ret) ;
6826
6826
6827
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
6827
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
6828
6828
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
6829
6829
if new == Location :: GPR ( GPR :: R13 ) {
6830
6830
GPR :: R12
@@ -6873,7 +6873,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
6873
6873
) [ 0 ] ;
6874
6874
self . value_stack . push ( ret) ;
6875
6875
6876
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
6876
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
6877
6877
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
6878
6878
if new == Location :: GPR ( GPR :: R13 ) {
6879
6879
GPR :: R12
@@ -6922,7 +6922,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
6922
6922
) [ 0 ] ;
6923
6923
self . value_stack . push ( ret) ;
6924
6924
6925
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
6925
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
6926
6926
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
6927
6927
if new == Location :: GPR ( GPR :: R13 ) {
6928
6928
GPR :: R12
@@ -6971,7 +6971,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
6971
6971
) [ 0 ] ;
6972
6972
self . value_stack . push ( ret) ;
6973
6973
6974
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
6974
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
6975
6975
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
6976
6976
if new == Location :: GPR ( GPR :: R13 ) {
6977
6977
GPR :: R12
@@ -7020,7 +7020,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
7020
7020
) [ 0 ] ;
7021
7021
self . value_stack . push ( ret) ;
7022
7022
7023
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
7023
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
7024
7024
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
7025
7025
if new == Location :: GPR ( GPR :: R13 ) {
7026
7026
GPR :: R12
@@ -7069,7 +7069,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
7069
7069
) [ 0 ] ;
7070
7070
self . value_stack . push ( ret) ;
7071
7071
7072
- let compare = self . machine . reserve_temp_gpr ( GPR :: RAX ) ;
7072
+ let compare = self . machine . reserve_unused_temp_gpr ( GPR :: RAX ) ;
7073
7073
let value = if cmp == Location :: GPR ( GPR :: R14 ) {
7074
7074
if new == Location :: GPR ( GPR :: R13 ) {
7075
7075
GPR :: R12
0 commit comments