summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2006-06-13 10:53:52 +0000
committerJohn van Groningen2006-06-13 10:53:52 +0000
commita77d1821c0928f7fccb692a205943bd75038195b (patch)
tree77c30975a976ff5ae6e280dd6e37f91a429eea28
parentmove test for NO_STRING_ADDRESS_IN_DESCRIPTOR after include of cgport.h (diff)
fix cvtsd2si (source and destination register numbers were swapped)
-rw-r--r--cgaas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgaas.c b/cgaas.c
index ef37e6a..80ebf01 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -3805,10 +3805,10 @@ static void as_fmovel_instruction (struct instruction *instruction)
/* cvtsd2si */
store_c (0xf2);
- store_c (0x48 | ((s_freg & 8)>>1) | ((reg1_n & 8)>>3));
+ store_c (0x48 | ((reg1_n & 8)>>1) | ((s_freg & 8)>>3));
store_c (0x0f);
store_c (0x2d);
- store_c (0xc0 | ((s_freg & 7)<<3) | (reg1_n & 7));
+ store_c (0xc0 | ((reg1_n & 7)<<3) | (s_freg & 7));
} else
internal_error_in_function ("as_fmovel_instruction");
} else {