aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2016-08-01 12:36:11 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2016-08-01 12:36:11 +0000
commit90c959fd0ca4b9e4a960e2f692ac45596738a453 (patch)
treeef1380c0d5ef576f301c93d79ea8268a9a331a2c /gcc
parentee52b11b30850324bb13b132e78c18e9d3d65e63 (diff)
downloadgcc-90c959fd0ca4b9e4a960e2f692ac45596738a453.zip
gcc-90c959fd0ca4b9e4a960e2f692ac45596738a453.tar.gz
gcc-90c959fd0ca4b9e4a960e2f692ac45596738a453.tar.bz2
re PR target/72767 ([avr] Some branches report too small insn length)
PR target/72767 * config/avr/avr.md (length) [branch]: Correct insn length attribute for forward branches. From-SVN: r238948
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/avr/avr.md4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 96f3259..d5643ce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2016-08-01 Georg-Johann Lay <avr@gjlay.de>
+ PR target/72767
+ * config/avr/avr.md (length) [branch]: Correct insn length
+ attribute for forward branches.
+
+2016-08-01 Georg-Johann Lay <avr@gjlay.de>
+
* doc/extend.texi (AVR Built-in Functions): Document
__builtin_avr_nops.
* config/avr/builtins.def (NOPS): New.
diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md
index 4c9037f..23790b6 100644
--- a/gcc/config/avr/avr.md
+++ b/gcc/config/avr/avr.md
@@ -112,12 +112,12 @@
(define_attr "length" ""
(cond [(eq_attr "type" "branch")
(if_then_else (and (ge (minus (pc) (match_dup 0))
- (const_int -63))
+ (const_int -62))
(le (minus (pc) (match_dup 0))
(const_int 62)))
(const_int 1)
(if_then_else (and (ge (minus (pc) (match_dup 0))
- (const_int -2045))
+ (const_int -2044))
(le (minus (pc) (match_dup 0))
(const_int 2045)))
(const_int 2)