+2001-01-01 Bernd Schmidt <bernds@redhat.co.uk>
+
+ 2000-12-27 Geoffrey Keating <geoffk@redhat.com>
+ * config/rs6000/rs6000.md (define_attr "length"): Correct
+ calculation.
+
2001-01-01 Philipp Thomas <pthomas@suse.de>
* configure.in: Make the help for --enable-nls make it
(const_string "integer"))
;; Length (in bytes).
+; '(pc)' in the following doesn't include the instruction itself; it is
+; calculated as if the instruction had zero size.
(define_attr "length" ""
(if_then_else (eq_attr "type" "branch")
- (if_then_else (and (ge (minus (pc) (match_dup 0))
+ (if_then_else (and (ge (minus (match_dup 0) (pc))
(const_int -32768))
- (lt (minus (pc) (match_dup 0))
- (const_int 32767)))
+ (lt (minus (match_dup 0) (pc))
+ (const_int 32764)))
(const_int 8)
(const_int 12))
(const_int 4)))