From 502f551133e70d0879865eba034328bb6ebcbff4 Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Fri, 9 Aug 2024 12:30:10 -0400 Subject: [PATCH] Use the right memory for I2F and I2D. --- mir-gen-x86_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mir-gen-x86_64.c b/mir-gen-x86_64.c index 84ee645d36..80a9169361 100644 --- a/mir-gen-x86_64.c +++ b/mir-gen-x86_64.c @@ -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 */