Skip to content

Commit 944f991

Browse files
authored
Fix int64->float32 cast codegen (#2758)
fix
1 parent e139b7e commit 944f991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/x86_gas.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ let print_instr b = function
138138
| CQO -> i0 b "cqto"
139139
| CVTSS2SI (arg1, arg2) -> i2 b "cvtss2si" arg1 arg2
140140
| CVTSD2SI (arg1, arg2) -> i2 b "cvtsd2si" arg1 arg2
141-
| CVTSI2SS (arg1, arg2) -> i2 b "cvtsi2ss" arg1 arg2
141+
| CVTSI2SS (arg1, arg2) -> i2 b ("cvtsi2ss" ^ suf arg1) arg1 arg2
142142
| CVTSD2SS (arg1, arg2) -> i2 b "cvtsd2ss" arg1 arg2
143143
| CVTSI2SD (arg1, arg2) -> i2 b ("cvtsi2sd" ^ suf arg1) arg1 arg2
144144
| CVTSS2SD (arg1, arg2) -> i2 b "cvtss2sd" arg1 arg2

0 commit comments

Comments
 (0)