* utils-gen.scm (-gen-extract-word): Correct computation of the length
of the field being extracted.
+2001-11-14 Dave Brolley <brolley@redhat.com>
+
+ * utils-gen.scm (-gen-extract-word): Correct computation of the length
+ of the field being extracted.
+
2001-10-29 Johan Rydberg <johan@rydberg.com>
* doc/rtl.texi (Expressions): Document the (error ..), (sqrt ..),
unsigned? lsb0?)
; ??? lsb0?
(let ((word-end (+ word-start word-length))
- (end (+ start length)))
+ (end (+ start length))
+ (base (if (< start word-start) word-start start)))
(string-append "("
"EXTRACT_"
(if (current-arch-insn-lsb0?) "LSB0" "MSB0")
(- start word-start)))
", "
(number->string (if (< end word-end)
- (- word-end end)
- word-length))
+ (- end base)
+ (- word-end base)))
") << "
(number->string (if (> end word-end)
(- end word-end)