diff mbox

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

Message ID 201503190400.t2J40sSd009506@greed.delorie.com
State New
Headers show

Commit Message

DJ Delorie March 19, 2015, 4 a.m. UTC
Committed.

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

Patch

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"
 )