diff options
author | John van Groningen | 2006-06-13 10:53:52 +0000 |
---|---|---|
committer | John van Groningen | 2006-06-13 10:53:52 +0000 |
commit | a77d1821c0928f7fccb692a205943bd75038195b (patch) | |
tree | 77c30975a976ff5ae6e280dd6e37f91a429eea28 | |
parent | move 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |