From 993ac7c7eff9ad66169977ba7f9e8eed241f107f Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 20 Feb 2008 19:32:14 +0100 Subject: [PATCH] sse.md (_vmmul3): Fix typo in asm template. * config/i386/sse.md (_vmmul3): Fix typo in asm template. (_div3): Ditto. (_vmdiv3): Ditto. (_vmsqrt2): Ditto. (*smax3): Ditto. (sse5_frcz2): Ditto. (sse5_vmfrcz2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND as insn constraint. From-SVN: r132490 --- gcc/ChangeLog | 11 +++++++++++ gcc/config/i386/sse.md | 36 +++++++++++++++++++----------------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 495a4769a5a..b8cc999f8b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2008-02-20 Uros Bizjak + + * config/i386/sse.md (_vmmul3): Fix typo in asm template. + (_div3): Ditto. + (_vmdiv3): Ditto. + (_vmsqrt2): Ditto. + (*smax3): Ditto. + (sse5_frcz2): Ditto. + (sse5_vmfrcz2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND + as insn constraint. + 2008-02-20 Richard Guenther PR middle-end/35265 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 12e8b4207fc..968fff09ec3 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -455,7 +455,7 @@ (const_int 1)))] "SSE_VEC_FLOAT_MODE_P (mode) && ix86_binary_operator_ok (MULT, mode, operands)" - "muls\t{%2, %0|%0, %2}" + "muls\t{%2, %0|%0, %2}" [(set_attr "type" "ssemul") (set_attr "mode" "")]) @@ -490,7 +490,7 @@ (match_operand:SSEMODEF2P 1 "register_operand" "0") (match_operand:SSEMODEF2P 2 "nonimmediate_operand" "xm")))] "SSE_VEC_FLOAT_MODE_P (mode)" - "divp\t{%2, %0|%0, %2}" + "divp\t{%2, %0|%0, %2}" [(set_attr "type" "ssediv") (set_attr "mode" "")]) @@ -503,7 +503,7 @@ (match_dup 1) (const_int 1)))] "SSE_VEC_FLOAT_MODE_P (mode)" - "divs\t{%2, %0|%0, %2}" + "divs\t{%2, %0|%0, %2}" [(set_attr "type" "ssediv") (set_attr "mode" "")]) @@ -566,7 +566,7 @@ (match_operand:SSEMODEF2P 2 "register_operand" "0") (const_int 1)))] "SSE_VEC_FLOAT_MODE_P (mode)" - "sqrts\t{%1, %0|%0, %1}" + "sqrts\t{%1, %0|%0, %1}" [(set_attr "type" "sse") (set_attr "mode" "")]) @@ -680,7 +680,7 @@ (match_operand:SSEMODEF2P 1 "register_operand" "0") (match_operand:SSEMODEF2P 2 "nonimmediate_operand" "xm")))] "SSE_VEC_FLOAT_MODE_P (mode)" - "maxp\t{%2, %0|%0, %2}" + "maxp\t{%2, %0|%0, %2}" [(set_attr "type" "sseadd") (set_attr "mode" "")]) @@ -693,7 +693,7 @@ (match_dup 1) (const_int 1)))] "SSE_VEC_FLOAT_MODE_P (mode)" - "maxs\t{%2, %0|%0, %2}" + "maxs\t{%2, %0|%0, %2}" [(set_attr "type" "sseadd") (set_attr "mode" "")]) @@ -7926,10 +7926,11 @@ ;; SSE5 permute instructions (define_insn "sse5_pperm" [(set (match_operand:V16QI 0 "register_operand" "=x,x,x,x") - (unspec:V16QI [(match_operand:V16QI 1 "nonimmediate_operand" "0,0,x,xm") - (match_operand:V16QI 2 "nonimmediate_operand" "x,xm,xm,x") - (match_operand:V16QI 3 "nonimmediate_operand" "xm,x,0,0")] - UNSPEC_SSE5_PERMUTE))] + (unspec:V16QI + [(match_operand:V16QI 1 "nonimmediate_operand" "0,0,x,xm") + (match_operand:V16QI 2 "nonimmediate_operand" "x,xm,xm,x") + (match_operand:V16QI 3 "nonimmediate_operand" "xm,x,0,0")] + UNSPEC_SSE5_PERMUTE))] "TARGET_SSE5 && ix86_sse5_valid_op_p (operands, insn, 4, true, 1)" "pperm\t{%3, %2, %1, %0|%0, %1, %2, %3}" [(set_attr "type" "sse4arg") @@ -8132,7 +8133,7 @@ [(match_operand:SSEMODEF2P 1 "nonimmediate_operand" "xm")] UNSPEC_FRCZ))] "TARGET_SSE5" - "frcz\t{%1, %0|%0, %1}" + "frcz\t{%1, %0|%0, %1}" [(set_attr "type" "ssecvt1") (set_attr "prefix_extra" "1") (set_attr "mode" "")]) @@ -8146,8 +8147,8 @@ UNSPEC_FRCZ) (match_operand:SSEMODEF2P 1 "register_operand" "0") (const_int 1)))] - "TARGET_ROUND" - "frcz\t{%2, %0|%0, %2}" + "TARGET_SSE5" + "frcz\t{%2, %0|%0, %2}" [(set_attr "type" "ssecvt1") (set_attr "prefix_extra" "1") (set_attr "mode" "")]) @@ -8289,10 +8290,11 @@ ;; being added here to be complete. (define_insn "sse5_pcom_tf3" [(set (match_operand:SSEMODE1248 0 "register_operand" "=x") - (unspec:SSEMODE1248 [(match_operand:SSEMODE1248 1 "register_operand" "x") - (match_operand:SSEMODE1248 2 "nonimmediate_operand" "xm") - (match_operand:SI 3 "const_int_operand" "n")] - UNSPEC_SSE5_TRUEFALSE))] + (unspec:SSEMODE1248 + [(match_operand:SSEMODE1248 1 "register_operand" "x") + (match_operand:SSEMODE1248 2 "nonimmediate_operand" "xm") + (match_operand:SI 3 "const_int_operand" "n")] + UNSPEC_SSE5_TRUEFALSE))] "TARGET_SSE5" { return ((INTVAL (operands[3]) != 0) -- 2.30.2