mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 14:01:04 +08:00
i386.md (multdiv): New.
* config/i386/i386.md (multdiv): New. (multdiv_mnemonic): Ditto. * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to... (<sse>_vm<multdiv_mnemonic><mode>3): This. (<sse>_vmdiv<mode>3): Removed. Co-Authored-By: Andrey Turetskiy <andrey.turetskiy@intel.com> Co-Authored-By: Anna Tikhonova <anna.tikhonova@intel.com> Co-Authored-By: Ilya Tocar <ilya.tocar@intel.com> Co-Authored-By: Ilya Verbin <ilya.verbin@intel.com> Co-Authored-By: Kirill Yukhin <kirill.yukhin@intel.com> Co-Authored-By: Maxim Kuznetsov <maxim.kuznetsov@intel.com> Co-Authored-By: Michael Zolotukhin <michael.v.zolotukhin@intel.com> Co-Authored-By: Sergey Lega <sergey.s.lega@intel.com> From-SVN: r203432
This commit is contained in:
parent
ec5e777c3e
commit
67f783cbc3
@ -1,3 +1,19 @@
|
||||
2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
|
||||
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
|
||||
Sergey Lega <sergey.s.lega@intel.com>
|
||||
Anna Tikhonova <anna.tikhonova@intel.com>
|
||||
Ilya Tocar <ilya.tocar@intel.com>
|
||||
Andrey Turetskiy <andrey.turetskiy@intel.com>
|
||||
Ilya Verbin <ilya.verbin@intel.com>
|
||||
Kirill Yukhin <kirill.yukhin@intel.com>
|
||||
Michael Zolotukhin <michael.v.zolotukhin@intel.com>
|
||||
|
||||
* config/i386/i386.md (multdiv): New.
|
||||
(multdiv_mnemonic): Ditto.
|
||||
* config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
|
||||
(<sse>_vm<multdiv_mnemonic><mode>3): This.
|
||||
(<sse>_vmdiv<mode>3): Removed.
|
||||
|
||||
2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
|
||||
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
|
||||
Sergey Lega <sergey.s.lega@intel.com>
|
||||
|
@ -746,6 +746,8 @@
|
||||
|
||||
(define_code_iterator sat_plusminus [ss_plus us_plus ss_minus us_minus])
|
||||
|
||||
(define_code_iterator multdiv [mult div])
|
||||
|
||||
;; Base name for define_insn
|
||||
(define_code_attr plusminus_insn
|
||||
[(plus "add") (ss_plus "ssadd") (us_plus "usadd")
|
||||
@ -757,6 +759,8 @@
|
||||
(minus "sub") (ss_minus "subs") (us_minus "subus")])
|
||||
(define_code_attr plusminus_carry_mnemonic
|
||||
[(plus "adc") (minus "sbb")])
|
||||
(define_code_attr multdiv_mnemonic
|
||||
[(mult "mul") (div "div")])
|
||||
|
||||
;; Mark commutative operators as such in constraints.
|
||||
(define_code_attr comm [(plus "%") (ss_plus "%") (us_plus "%")
|
||||
|
@ -1061,21 +1061,22 @@
|
||||
(set_attr "btver2_decode" "direct,double")
|
||||
(set_attr "mode" "<MODE>")])
|
||||
|
||||
(define_insn "<sse>_vmmul<mode>3"
|
||||
(define_insn "<sse>_vm<multdiv_mnemonic><mode>3"
|
||||
[(set (match_operand:VF_128 0 "register_operand" "=x,v")
|
||||
(vec_merge:VF_128
|
||||
(mult:VF_128
|
||||
(multdiv:VF_128
|
||||
(match_operand:VF_128 1 "register_operand" "0,v")
|
||||
(match_operand:VF_128 2 "nonimmediate_operand" "xm,vm"))
|
||||
(match_dup 1)
|
||||
(const_int 1)))]
|
||||
"TARGET_SSE"
|
||||
"@
|
||||
mul<ssescalarmodesuffix>\t{%2, %0|%0, %<iptr>2}
|
||||
vmul<ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %<iptr>2}"
|
||||
<multdiv_mnemonic><ssescalarmodesuffix>\t{%2, %0|%0, %<iptr>2}
|
||||
v<multdiv_mnemonic><ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %<iptr>2}"
|
||||
[(set_attr "isa" "noavx,avx")
|
||||
(set_attr "type" "ssemul")
|
||||
(set_attr "prefix" "orig,vex")
|
||||
(set_attr "type" "sse<multdiv_mnemonic>")
|
||||
(set_attr "prefix" "orig,maybe_evex")
|
||||
(set_attr "btver2_decode" "direct,double")
|
||||
(set_attr "mode" "<ssescalarmode>")])
|
||||
|
||||
(define_expand "div<mode>3"
|
||||
@ -1118,24 +1119,6 @@
|
||||
(set_attr "prefix" "orig,vex")
|
||||
(set_attr "mode" "<MODE>")])
|
||||
|
||||
(define_insn "<sse>_vmdiv<mode>3"
|
||||
[(set (match_operand:VF_128 0 "register_operand" "=x,v")
|
||||
(vec_merge:VF_128
|
||||
(div:VF_128
|
||||
(match_operand:VF_128 1 "register_operand" "0,v")
|
||||
(match_operand:VF_128 2 "nonimmediate_operand" "xm,vm"))
|
||||
(match_dup 1)
|
||||
(const_int 1)))]
|
||||
"TARGET_SSE"
|
||||
"@
|
||||
div<ssescalarmodesuffix>\t{%2, %0|%0, %<iptr>2}
|
||||
vdiv<ssescalarmodesuffix>\t{%2, %1, %0|%0, %1, %<iptr>2}"
|
||||
[(set_attr "isa" "noavx,avx")
|
||||
(set_attr "type" "ssediv")
|
||||
(set_attr "prefix" "orig,vex")
|
||||
(set_attr "btver2_decode" "direct,double")
|
||||
(set_attr "mode" "<ssescalarmode>")])
|
||||
|
||||
(define_insn "<sse>_rcp<mode>2"
|
||||
[(set (match_operand:VF1_128_256 0 "register_operand" "=x")
|
||||
(unspec:VF1_128_256
|
||||
|
Loading…
x
Reference in New Issue
Block a user