From 81292845971e30311b241bf63462f9bf8bfb23ad Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Fri, 16 Nov 2018 15:46:31 +0000 Subject: [PATCH] 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 * config/i386/i386.md: Allow memory operands to ptwrite. From-SVN: r266211 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 07cdcc75bd8..d842ae9fd9a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-11-16 Andi Kleen + + * config/i386/i386.md: Allow memory operands to ptwrite. + 2018-11-16 Michael Matz * system.h (PRsa): New macro. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 44db8ac954c..9c359c0ca04 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -19501,7 +19501,7 @@ (set_attr "prefix_extra" "2")]) (define_insn "ptwrite" - [(unspec_volatile [(match_operand:SWI48 0 "register_operand" "r")] + [(unspec_volatile [(match_operand:SWI48 0 "nonimmediate_operand" "rm")] UNSPECV_PTWRITE)] "TARGET_PTWRITE" "ptwrite\t%0" -- 2.30.2