Skip to content

Commit

Permalink
Use the right memory for I2F and I2D.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmakarov committed Aug 9, 2024
1 parent f62a99b commit 502f551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mir-gen-x86_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,9 +1625,9 @@ static struct pattern patterns[] = {
{MIR_UEXT32, "r m2", "Y 8B r0 m1", 0}, /* mov r0,m1 */

{MIR_I2F, "r r", "F3 X 0F 2A r0 R1", 0}, /* cvtsi2ss r0,r1 */
{MIR_I2F, "r mf", "F3 X 0F 2A r0 m1", 0}, /* cvtsi2ss r0,m1 */
{MIR_I2F, "r m3", "F3 X 0F 2A r0 m1", 0}, /* cvtsi2ss r0,m1 */
{MIR_I2D, "r r", "F2 X 0F 2A r0 R1", 0}, /* cvtsi2sd r0,r1 */
{MIR_I2D, "r md", "F2 X 0F 2A r0 m1", 0}, /* cvtsi2sd r0,m1 */
{MIR_I2D, "r m3", "F2 X 0F 2A r0 m1", 0}, /* cvtsi2sd r0,m1 */
{MIR_I2LD, "mld r", "X 89 r1 mt; DF /5 mt; DB /7 m0", 0}, /*mov -16(sp),r1;fild -16(sp);fstp m0 */

{MIR_F2I, "r r", "F3 X 0F 2C r0 R1", 0}, /* cvttss2si r0,r1 */
Expand Down

0 comments on commit 502f551

Please sign in to comment.