Skip to content

Commit a032796

Browse files
committed
Fix reinterpret cast float<->float32
1 parent 79e62ed commit a032796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/arm64/emit.mlp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,12 +1031,12 @@ let emit_reinterpret_cast (cast : Cmm.reinterpret_cast) i =
10311031
if distinct then (
10321032
DSL.check_reg Float src;
10331033
DSL.check_reg Float32 dst;
1034-
DSL.ins I.FCVT [| DSL.emit_reg dst; DSL.emit_reg src |])
1034+
DSL.ins I.MOV [| DSL.emit_reg_d dst; DSL.emit_reg_d src |])
10351035
| Float_of_float32 ->
10361036
if distinct then (
10371037
DSL.check_reg Float32 src;
10381038
DSL.check_reg Float dst;
1039-
DSL.ins I.FCVT [| DSL.emit_reg dst; DSL.emit_reg src |])
1039+
DSL.ins I.MOV [| DSL.emit_reg_d dst; DSL.emit_reg_d src |])
10401040
| V128_of_v128 ->
10411041
if distinct then (
10421042
DSL.check_reg Vec128 src;

0 commit comments

Comments
 (0)