Commit 64a3a966 by Hongtao Liu Committed by Hongtao Liu

Remove redudant <iptr> when operand already has scalar mode.

gcc/
	* config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
	<sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
	operand is already scalar mode.
	(iptr): Remove SF/DF.

From-SVN: r277481
parent 43a77193
2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
* config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
<sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
operand already has scalar mode.
(iptr): Remove SF/DF.
2019-10-26 Segher Boessenkool <segher@kernel.crashing.org> 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
PR target/91289 PR target/91289
...@@ -850,8 +850,7 @@ ...@@ -850,8 +850,7 @@
(V16QI "b") (V8HI "w") (V4SI "k") (V2DI "q") (V16QI "b") (V8HI "w") (V4SI "k") (V2DI "q")
(V16SF "k") (V8DF "q") (V16SF "k") (V8DF "q")
(V8SF "k") (V4DF "q") (V8SF "k") (V4DF "q")
(V4SF "k") (V2DF "q") (V4SF "k") (V2DF "q")])
(SF "k") (DF "q")])
;; Mapping of vector modes to VPTERNLOG suffix ;; Mapping of vector modes to VPTERNLOG suffix
(define_mode_attr ternlogsuffix (define_mode_attr ternlogsuffix
...@@ -1851,8 +1850,8 @@ ...@@ -1851,8 +1850,8 @@
(const_int 1)))] (const_int 1)))]
"TARGET_SSE" "TARGET_SSE"
"@ "@
<plusminus_mnemonic><ssescalarmodesuffix>\t{%2, %0|%0, %<iptr>2} <plusminus_mnemonic><ssescalarmodesuffix>\t{%2, %0|%0, %2}
v<plusminus_mnemonic><ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %<iptr>2}" v<plusminus_mnemonic><ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %2}"
[(set_attr "isa" "noavx,avx") [(set_attr "isa" "noavx,avx")
(set_attr "type" "sseadd") (set_attr "type" "sseadd")
(set_attr "prefix" "orig,vex") (set_attr "prefix" "orig,vex")
...@@ -1927,8 +1926,8 @@ ...@@ -1927,8 +1926,8 @@
(const_int 1)))] (const_int 1)))]
"TARGET_SSE" "TARGET_SSE"
"@ "@
<multdiv_mnemonic><ssescalarmodesuffix>\t{%2, %0|%0, %<iptr>2} <multdiv_mnemonic><ssescalarmodesuffix>\t{%2, %0|%0, %2}
v<multdiv_mnemonic><ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %<iptr>2}" v<multdiv_mnemonic><ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %2}"
[(set_attr "isa" "noavx,avx") [(set_attr "isa" "noavx,avx")
(set_attr "type" "sse<multdiv_mnemonic>") (set_attr "type" "sse<multdiv_mnemonic>")
(set_attr "prefix" "orig,vex") (set_attr "prefix" "orig,vex")
......
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