diff mbox

[committed] Remove condition from PA indirect_jump

Message ID BLU436-SMTP20609AF62252E419FE9093397950@phx.gbl
State New
Headers show

Commit Message

John David Anglin July 4, 2015, 1:55 p.m. UTC
The attached change removes the C condition from the PA indirect jump since it depended
on operands[] and this isn't generally allowed in named patterns.

Tested on hppa-unknown-linux-gnu and hppa2.0w-hp-hpux11.11.  Committed to trunk and active
branches.

Dave
--
John David Anglin	dave.anglin@bell.net
2015-07-04  John David Anglin  <danglin@gcc.gnu.org>

	PR target/66114
	* config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
	of register_operand.  Remove constraint.

Comments

Richard Sandiford July 5, 2015, 8:09 a.m. UTC | #1
John David Anglin <dave.anglin@bell.net> writes:
> The attached change removes the C condition from the PA indirect jump
> since it depended on operands[] and this isn't generally allowed in
> named patterns.
>
> Tested on hppa-unknown-linux-gnu and hppa2.0w-hp-hpux11.11.  Committed
> to trunk and active branches.

Thanks!
diff mbox

Patch

Index: config/pa/pa.md
===================================================================
--- config/pa/pa.md	(revision 225280)
+++ config/pa/pa.md	(working copy)
@@ -6844,8 +6844,8 @@ 
 
 ;;; Hope this is only within a function...
 (define_insn "indirect_jump"
-  [(set (pc) (match_operand 0 "register_operand" "r"))]
-  "GET_MODE (operands[0]) == word_mode"
+  [(set (pc) (match_operand 0 "pmode_register_operand" "r"))]
+  ""
   "bv%* %%r0(%0)"
   [(set_attr "type" "branch")
    (set_attr "length" "4")])