mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
ee52b11b30
commit
90c959fd0c
|
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2016-08-01 Georg-Johann Lay <avr@gjlay.de>
|
||||||
|
|
||||||
* doc/extend.texi (AVR Built-in Functions): Document
|
* doc/extend.texi (AVR Built-in Functions): Document
|
||||||
|
|
|
||||||
|
|
@ -112,12 +112,12 @@
|
||||||
(define_attr "length" ""
|
(define_attr "length" ""
|
||||||
(cond [(eq_attr "type" "branch")
|
(cond [(eq_attr "type" "branch")
|
||||||
(if_then_else (and (ge (minus (pc) (match_dup 0))
|
(if_then_else (and (ge (minus (pc) (match_dup 0))
|
||||||
(const_int -63))
|
(const_int -62))
|
||||||
(le (minus (pc) (match_dup 0))
|
(le (minus (pc) (match_dup 0))
|
||||||
(const_int 62)))
|
(const_int 62)))
|
||||||
(const_int 1)
|
(const_int 1)
|
||||||
(if_then_else (and (ge (minus (pc) (match_dup 0))
|
(if_then_else (and (ge (minus (pc) (match_dup 0))
|
||||||
(const_int -2045))
|
(const_int -2044))
|
||||||
(le (minus (pc) (match_dup 0))
|
(le (minus (pc) (match_dup 0))
|
||||||
(const_int 2045)))
|
(const_int 2045)))
|
||||||
(const_int 2)
|
(const_int 2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue