Commit 81292845 by Andi Kleen Committed by Andi Kleen

Allow memory operands for PTWRITE

The earlier PTWRITE builtin definition was unnecessarily restrictive,
only allowing register input to PTWRITE. The instruction actually
supports memory operands too, so allow that too.

gcc/:

2018-11-16  Andi Kleen  <ak@linux.intel.com>

	* config/i386/i386.md: Allow memory operands to ptwrite.

From-SVN: r266211
parent b1fe8605
2018-11-16 Andi Kleen <ak@linux.intel.com>
* config/i386/i386.md: Allow memory operands to ptwrite.
2018-11-16 Michael Matz <matz@suse.de> 2018-11-16 Michael Matz <matz@suse.de>
* system.h (PRsa): New macro. * system.h (PRsa): New macro.
...@@ -19501,7 +19501,7 @@ ...@@ -19501,7 +19501,7 @@
(set_attr "prefix_extra" "2")]) (set_attr "prefix_extra" "2")])
(define_insn "ptwrite<mode>" (define_insn "ptwrite<mode>"
[(unspec_volatile [(match_operand:SWI48 0 "register_operand" "r")] [(unspec_volatile [(match_operand:SWI48 0 "nonimmediate_operand" "rm")]
UNSPECV_PTWRITE)] UNSPECV_PTWRITE)]
"TARGET_PTWRITE" "TARGET_PTWRITE"
"ptwrite\t%0" "ptwrite\t%0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment