aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2012-09-17 07:59:29 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2012-09-17 07:59:29 +0000
commitc8f35794441c8b4d3be43d220704ec2a910ea9e9 (patch)
tree3a3fe2e16db9ad8d1eea3cabf3e50d13094c719a
parentde7c74be49615ebefd5c9a699d8988903310a105 (diff)
downloadgcc-c8f35794441c8b4d3be43d220704ec2a910ea9e9.zip
gcc-c8f35794441c8b4d3be43d220704ec2a910ea9e9.tar.gz
gcc-c8f35794441c8b4d3be43d220704ec2a910ea9e9.tar.bz2
re PR target/54222 ([avr] Implement fixed-point support)
PR target/54222 * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode. (avr_out_plus_1): Remove log comments from assembler output. From-SVN: r191376
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/avr/avr.c11
2 files changed, 8 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index efd3d79..3ff6a9b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-09-17 Georg-Johann Lay <avr@gjlay.de>
+
+ PR target/54222
+ * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
+ (avr_out_plus_1): Remove log comments from assembler output.
+
2012-09-17 Ruben Buchatskiy <ruben@ispras.ru>
* config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index c46f488..b1bd6d6 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -6268,9 +6268,6 @@ avr_out_plus_1 (rtx *xop, int *plen, enum rtx_code code, int *pcc,
? simplify_gen_subreg (QImode, xop[0], mode, n_bytes-2)
: NULL_RTX;
- if (!plen && flag_print_asm_name)
- avr_fdump (asm_out_file, ";; %C (%C)\n", code_sat, code);
-
bool need_copy = true;
int len_call = 1 + AVR_HAVE_JMP_CALL;
@@ -6281,9 +6278,6 @@ avr_out_plus_1 (rtx *xop, int *plen, enum rtx_code code, int *pcc,
case SS_PLUS:
case SS_MINUS:
- if (!plen && flag_print_asm_name)
- avr_fdump (asm_out_file, ";; %s = %r\n", sign < 0 ? "neg" : "pos",
- xop[2]);
if (out_brvc)
avr_asm_len ("brvc 0f", op, plen, 1);
@@ -6463,7 +6457,6 @@ static const char*
avr_out_plus_symbol (rtx *xop, enum rtx_code code, int *plen, int *pcc)
{
enum machine_mode mode = GET_MODE (xop[0]);
- int n_bytes = GET_MODE_SIZE (mode);
/* Only pointer modes want to add symbols. */
@@ -6476,9 +6469,9 @@ avr_out_plus_symbol (rtx *xop, enum rtx_code code, int *plen, int *pcc)
: "subi %A0,lo8(%2)" CR_TAB "sbci %B0,hi8(%2)",
xop, plen, -2);
- if (3 == n_bytes)
+ if (PSImode == mode)
avr_asm_len (PLUS == code
- ? "sbci %C0,hlo8((-%2))"
+ ? "sbci %C0,hlo8(-(%2))"
: "sbci %C0,hlo8(%2)", xop, plen, 1);
return "";
}