* Fix shift left warning at source
@ 2016-03-02 3:16 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2016-03-02 3:16 UTC (permalink / raw)
To: binutils
Nick's fix to fr30-ibld.c disappears when regenerating cgen files.
cpu/
* fr30.cpu (f-m4): Replace -1 << 4 with -16.
opcodes/
* fr30-ibld.c: Regenerate.
diff --git a/cpu/fr30.cpu b/cpu/fr30.cpu
index 6c8e8ce..0124647 100644
--- a/cpu/fr30.cpu
+++ b/cpu/fr30.cpu
@@ -163,7 +163,7 @@
; ??? On a 64 bit host this doesn't get completely sign extended
; if the value is recorded in a long, as it is during extraction.
; Various fixes exist, pick one.
- ((value pc) (or WI value (sll WI (const -1) (const 4))))
+ ((value pc) (or WI value (const -16)))
)
(dnf f-u8 "8 bit unsigned" () 8 8)
(dnf f-i8 "8 bit unsigned" () 4 8)
diff --git a/opcodes/fr30-ibld.c b/opcodes/fr30-ibld.c
index 1293e73..3ebecf9 100644
--- a/opcodes/fr30-ibld.c
+++ b/opcodes/fr30-ibld.c
@@ -881,7 +881,7 @@ fr30_cgen_extract_operand (CGEN_CPU_DESC cd,
{
long value;
length = extract_normal (cd, ex_info, insn_value, 0, 0, 8, 4, 16, total_length, pc, & value);
- value = ((value) | (((-1UL) << (4))));
+ value = ((value) | (-16));
fields->f_m4 = value;
}
break;
--
2.1.0
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-03-02 3:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-02 3:16 Fix shift left warning at source Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).