This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Re: ALIAS instructions are messed up?
Quoting Doug Evans <dje@sebabeach.org>:
Let's fix this. Do you have an example readily available?
The port where I have most recently encountered this is under NDA,
so I just made up a relevant macro insn for the frv:
Index: frv.cpu
===================================================================
RCS file: /cvs/src/src/cpu/frv.cpu,v
retrieving revision 1.25
diff -u -r1.25 frv.cpu
--- frv.cpu 7 Jan 2009 01:09:24 -0000 1.25
+++ frv.cpu 5 Oct 2009 21:36:15 -0000
@@ -5786,6 +5786,12 @@
(register-transfer-spr movgs OP_03 OPE1_06 GRj spr u-gr2spr
"transfer gr->spr")
(register-transfer-spr movsg OP_03 OPE1_07 spr GRj u-spr2gr
"transfer spr->gr")
+(dnmi movgs_pcsr ""
+ ()
+ ("movgs_pcsr$pack $GRj")
+ (emit movgs pack GRj (spr 1))
+)
+
; Integer Branch Conditions
(define-pmacro (Inev cc) (const BI 0))
(define-pmacro (Ira cc) (const BI 1))
[bld-frv]$ cat tst.S
movgs sp,pcsr
movgs sp,hsr49
movgs_pcsr sp
[bld-frv]$ gas/as-new -ahld tst.S
FRV GAS tst.S page 1
1 0000 800C1181 movgs sp,pcsr
2 0004 820C1181 movgs sp,hsr49
3 0008 820C1181 movgs_pcsr sp