This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[rl78] fix ICE with far operands to and/ior


Committed.

	* config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
	(iorqi3_virt): Likewise.

Index: config/rl78/rl78-virt.md
===================================================================
--- config/rl78/rl78-virt.md	(revision 221505)
+++ config/rl78/rl78-virt.md	(working copy)
@@ -128,23 +128,23 @@
   "rl78_virt_insns_ok () && !TARGET_G10"
   "v.mulu\t%0, %2"
   [(set_attr "valloc" "umul")]
 )
 
 (define_insn "*andqi3_virt"
-  [(set (match_operand:QI         0 "rl78_nonfar_nonimm_operand" "=vm")
-	(and:QI (match_operand:QI 1 "rl78_nonfar_operand" "vim")
+  [(set (match_operand:QI         0 "rl78_nonimmediate_operand" "=vm")
+	(and:QI (match_operand:QI 1 "rl78_general_operand" "vim")
 		(match_operand:QI 2 "rl78_general_operand" "vim")))
    ]
   "rl78_virt_insns_ok ()"
   "v.and\t%0, %1, %2"
 )
 
 (define_insn "*iorqi3_virt"
-  [(set (match_operand:QI         0 "rl78_nonfar_nonimm_operand" "=vm")
-	(ior:QI (match_operand:QI 1 "rl78_nonfar_operand" "vim")
+  [(set (match_operand:QI         0 "rl78_nonimmediate_operand" "=vm")
+	(ior:QI (match_operand:QI 1 "rl78_general_operand" "vim")
 		(match_operand:QI 2 "rl78_general_operand" "vim")))
    ]
   "rl78_virt_insns_ok ()"
   "v.or\t%0, %1, %2"
 )
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]