* [rl78] extend set1/clr1 operands
@ 2015-07-20 23:51 DJ Delorie
0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2015-07-20 23:51 UTC (permalink / raw)
To: gcc-patches
Minor tweak to allow more addressing modes. Committed.
* config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
(iorqi3_real): Likewise for set1.
Index: config/rl78/rl78-real.md
===================================================================
--- config/rl78/rl78-real.md (revision 226022)
+++ config/rl78/rl78-real.md (working copy)
@@ -191,13 +191,13 @@
(zero_extend:HI (match_operand:QI 2 "general_operand" "x"))))]
"rl78_real_insns_ok () && !TARGET_G10"
"mulu\t%2"
)
(define_insn "*andqi3_real"
- [(set (match_operand:QI 0 "rl78_nonimmediate_operand" "=Wsf,A,R,vWsa")
+ [(set (match_operand:QI 0 "rl78_nonimmediate_operand" "=WsfWsaWhlWab,A,R,vWsa")
(and:QI (match_operand:QI 1 "rl78_general_operand" "%0,0,0,0")
(match_operand:QI 2 "rl78_general_operand" "IBqi,iRvWabWhbWh1Whl,A,i")))
]
"rl78_real_insns_ok ()"
"@
clr1\t%0.%B2
@@ -205,13 +205,13 @@
and\t%0, %2
and\t%0, %2"
[(set_attr "update_Z" "*,update_Z,update_Z,update_Z")]
)
(define_insn "*iorqi3_real"
- [(set (match_operand:QI 0 "rl78_nonimmediate_operand" "=Wsf,A,R,vWsa")
+ [(set (match_operand:QI 0 "rl78_nonimmediate_operand" "=WsfWsaWhlWab,A,R,vWsa")
(ior:QI (match_operand:QI 1 "rl78_general_operand" "%0,0,0,0")
(match_operand:QI 2 "rl78_general_operand" "Ibqi,iRvWabWhbWh1Whl,A,i")))
]
"rl78_real_insns_ok ()"
"@
set1\t%0.%B2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-20 23:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 23:51 [rl78] extend set1/clr1 operands DJ Delorie
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).