i386.md (SWI1248_AVX512BWDQ_64): Rename from SWI1248_AVX512BWDQ2_64.
authorUros Bizjak <uros@gcc.gnu.org>
Wed, 19 Dec 2018 20:44:59 +0000 (21:44 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 19 Dec 2018 20:44:59 +0000 (21:44 +0100)
* config/i386/i386.md (SWI1248_AVX512BWDQ_64): Rename from
SWI1248_AVX512BWDQ2_64.  Unconditionally enable HImode.
(*cmp<mode>_ccz_1): Emit kortest instead of ktest insn.
Use SWI1248_AVX512BWDQ_64 mode iterator and enable only for
TARGET_AVX512F.

testsuite/ChangeLog:

* gcc.target/i386/avx512dq-pr82855.c: Update scan-assembler pattern.

From-SVN: r267286

gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512dq-pr82855.c

index 53cdc837a5c960e28fbc8e1b5977b00b3ded5c30..46732eb6d574827b1fda403ba5023a359927a902 100644 (file)
@@ -1,3 +1,11 @@
+2018-12-19  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (SWI1248_AVX512BWDQ_64): Rename from
+       SWI1248_AVX512BWDQ2_64.  Unconditionally enable HImode.
+       (*cmp<mode>_ccz_1): Emit kortest instead of ktest insn.
+       Use SWI1248_AVX512BWDQ_64 mode iterator and enable only for
+       TARGET_AVX512F.
+
 2018-12-19  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
 
        * config/arm/elf.h: Update comment about condition that need to
index 6e29427e30c248f3dd58d006e9646d6bf5d65d3f..c529406cccc40f3235fe4d3f275f47bd10f7acaf 100644 (file)
        (compare:CC (match_operand:SWI48 0 "nonimmediate_operand")
                    (match_operand:SWI48 1 "<general_operand>")))])
 
-(define_mode_iterator SWI1248_AVX512BWDQ2_64
-  [(QI "TARGET_AVX512DQ") (HI "TARGET_AVX512DQ")
+(define_mode_iterator SWI1248_AVX512BWDQ_64
+  [(QI "TARGET_AVX512DQ") HI
    (SI "TARGET_AVX512BW") (DI "TARGET_AVX512BW && TARGET_64BIT")])
 
 (define_insn "*cmp<mode>_ccz_1"
   [(set (reg FLAGS_REG)
-       (compare (match_operand:SWI1248_AVX512BWDQ2_64 0
+       (compare (match_operand:SWI1248_AVX512BWDQ_64 0
                        "nonimmediate_operand" "<r>,?m<r>,$k")
-                (match_operand:SWI1248_AVX512BWDQ2_64 1 "const0_operand")))]
-  "ix86_match_ccmode (insn, CCZmode)"
+                (match_operand:SWI1248_AVX512BWDQ_64 1 "const0_operand")))]
+  "TARGET_AVX512F && ix86_match_ccmode (insn, CCZmode)"
   "@
    test{<imodesuffix>}\t%0, %0
    cmp{<imodesuffix>}\t{%1, %0|%0, %1}
-   ktest<mskmodesuffix>\t%0, %0"
+   kortest<mskmodesuffix>\t%0, %0"
   [(set_attr "type" "test,icmp,msklog")
    (set_attr "length_immediate" "0,1,*")
    (set_attr "prefix" "*,*,vex")
index e199cd09728340a500eca99c39eff115bf8425c7..6a3ed92857e73170f62abc51f61ab94a2aac0be4 100644 (file)
@@ -1,3 +1,7 @@
+2018-12-19  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/avx512dq-pr82855.c: Update scan-assembler pattern.
+
 2018-12-19  Tony Wang  <tony.wang@arm.com>
            Thomas Preud'homme  <thomas.preudhomme@linaro.org>
 
        * gfortran.dg/goacc/nested-parallelism.f90: Likewise.
 
        * gfortran.dg/goacc/loop-2.f95: Split into...
-       * gfortran.dg/goacc/loop-2-kernels-nested.f95: ... this new
-       file...
-       * gfortran.dg/goacc/loop-2-kernels-tile.f95: ..., and this new
-       file...
+       * gfortran.dg/goacc/loop-2-kernels-nested.f95: ... this new file...
+       * gfortran.dg/goacc/loop-2-kernels-tile.f95: ..., and this new file...
        * gfortran.dg/goacc/loop-2-kernels.f95: ..., and this new file...
-       * gfortran.dg/goacc/loop-2-parallel-3.f95: ..., and this new
-       file...
+       * gfortran.dg/goacc/loop-2-parallel-3.f95: ..., and this new file...
        * gfortran.dg/goacc/loop-2-parallel-nested.f95: ..., and this new
        file...
-       * gfortran.dg/goacc/loop-2-parallel-tile.f95: ..., and this new
-       file...
+       * gfortran.dg/goacc/loop-2-parallel-tile.f95: ..., and this new file...
        * gfortran.dg/goacc/loop-2-parallel.f95: ..., and this new file.
 
        PR fortran/88420
 2018-12-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        PR testsuite/88208
-       * gcc.target/sparc/attr-aligned.c (MAXALIGN) [__sparcv9 ||
-       __arch64__]: Define.
+       * gcc.target/sparc/attr-aligned.c (MAXALIGN)
+       [__sparcv9 || __arch64__]: Define.
 
 2018-12-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        gnat.dg/overload2_q.ads: New testcase.
 
 2018-12-03  Fritz Reese  <fritzoreese@gmail.com>
-            Mark Eggleston  <mark.eggleston@codethink.co.uk>
+           Mark Eggleston  <mark.eggleston@codethink.co.uk>
 
        PR fortran/87919
        * gfortran.dg/array_temporaries_5.f90: New test.
        * c-c++-common/builtin-has-attribute-4.c: New test.
        * c-c++-common/builtin-has-attribute.c: New test.
        * gcc.dg/builtin-has-attribute.c: New test.
-       * gcc/testsuite/gcc.target/i386/builtin-has-attribute.c: New test.
+       * gcc.target/i386/builtin-has-attribute.c: New test.
 
 2018-11-20  Jan Hubicka  <hubicka@ucw.cz>
 
 
 2018-11-15  Richard Biener  <rguenther@suse.de>
 
-        PR middle-end/88029
-        * gcc.dg/tree-ssa/pr88029.c: New testcase.
+       PR middle-end/88029
+       * gcc.dg/tree-ssa/pr88029.c: New testcase.
 
 2018-11-15  Richard Biener  <rguenther@suse.de>
 
 
 2018-11-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
 
-       * gcc/testsuite/gcc.target/msp430/special-regs.c: New test.
+       * gcc.target/msp430/special-regs.c: New test.
 
 2018-11-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * gfortran.dg/findloc_6.f90: New test.
 
 2018-10-26  Bill Schmidt  <wschmidt@linux.ibm.com>
-            Jinsong Ji  <jji@us.ibm.com>
-
-        * gcc.target/powerpc/sse-addss-1.c: Call abort under DEBUG also;
-        formatting cleanup.
-        * gcc.target/powerpc/sse-pavgw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-addsd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtdq2pd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtpd2dq-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtpd2ps-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtps2dq-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtps2pd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtsd2si-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtsd2si-2.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtsd2ss-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvtss2sd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvttpd2dq-1.c: Likewise.
-        * gcc.target/powerpc/sse2-cvttsd2si-1.c: Likewise.
-        * gcc.target/powerpc/sse2-divpd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-divsd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-maxsd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-minsd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-movmskpd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-movq-1.c: Likewise.
-        * gcc.target/powerpc/sse2-movsd-3.c: Likewise.
-        * gcc.target/powerpc/sse2-mulpd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-mulsd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-packssdw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-packsswb-1.c: Likewise.
-        * gcc.target/powerpc/sse2-packuswb-1.c: Likewise.
-        * gcc.target/powerpc/sse2-paddsb-1.c: Likewise.
-        * gcc.target/powerpc/sse2-paddsw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-paddusb-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pmovmskb-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pmulhw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pmuludq1.c: Likewise.
-        * gcc.target/powerpc/sse2-psadbw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pshufd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pshufhw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pshuflw-1.c: Likewise.
-        * gcc.target/powerpc/sse2-pslld-2.c: Likewise.
-        * gcc.target/powerpc/sse2-pslldq-1.c: Likewise.
-        * gcc.target/powerpc/sse2-psrld-1.c: Likewise.
-        * gcc.target/powerpc/sse2-psrld-2.c: Likewise.
-        * gcc.target/powerpc/sse2-psrldq-1.c: Likewise.
-        * gcc.target/powerpc/sse2-psubusb-1.c: Likewise.
-        * gcc.target/powerpc/sse2-sqrtpd-1.c: Likewise.
-        * gcc.target/powerpc/sse2-subsd-1.c: Likewise.
+           Jinsong Ji  <jji@us.ibm.com>
+
+       * gcc.target/powerpc/sse-addss-1.c: Call abort under DEBUG also;
+       formatting cleanup.
+       * gcc.target/powerpc/sse-pavgw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-addsd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtdq2pd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtpd2dq-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtpd2ps-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtps2dq-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtps2pd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtsd2si-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtsd2si-2.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtsd2ss-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvtss2sd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvttpd2dq-1.c: Likewise.
+       * gcc.target/powerpc/sse2-cvttsd2si-1.c: Likewise.
+       * gcc.target/powerpc/sse2-divpd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-divsd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-maxsd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-minsd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-movmskpd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-movq-1.c: Likewise.
+       * gcc.target/powerpc/sse2-movsd-3.c: Likewise.
+       * gcc.target/powerpc/sse2-mulpd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-mulsd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-packssdw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-packsswb-1.c: Likewise.
+       * gcc.target/powerpc/sse2-packuswb-1.c: Likewise.
+       * gcc.target/powerpc/sse2-paddsb-1.c: Likewise.
+       * gcc.target/powerpc/sse2-paddsw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-paddusb-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pmovmskb-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pmulhw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pmuludq1.c: Likewise.
+       * gcc.target/powerpc/sse2-psadbw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pshufd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pshufhw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pshuflw-1.c: Likewise.
+       * gcc.target/powerpc/sse2-pslld-2.c: Likewise.
+       * gcc.target/powerpc/sse2-pslldq-1.c: Likewise.
+       * gcc.target/powerpc/sse2-psrld-1.c: Likewise.
+       * gcc.target/powerpc/sse2-psrld-2.c: Likewise.
+       * gcc.target/powerpc/sse2-psrldq-1.c: Likewise.
+       * gcc.target/powerpc/sse2-psubusb-1.c: Likewise.
+       * gcc.target/powerpc/sse2-sqrtpd-1.c: Likewise.
+       * gcc.target/powerpc/sse2-subsd-1.c: Likewise.
 
 2018-10-26  Paul A. Clarke  <pc@us.ibm.com>
 
        (__builtin_ia32_vfnmaddps512_maskz): Likewise.
        (__builtin_ia32_vfnmsubpd512_maskz): Likewise.
        (__builtin_ia32_vfnmsubps512_maskz): Likewise.
-       * testsuite/gcc.target/i386/sse-13.c
+       * gcc.target/i386/sse-13.c
        (__builtin_ia32_vfmsubpd512_mask): Likewise.
        (__builtin_ia32_vfmsubpd512_maskz): Likewise.
        (__builtin_ia32_vfmsubps512_mask): Likewise.
        (__builtin_ia32_vfnmaddps512_maskz): Likewise.
        (__builtin_ia32_vfnmsubpd512_maskz): Likewise.
        (__builtin_ia32_vfnmsubps512_maskz): Likewise.
-       * testsuite/gcc.target/i386/sse-23.c
+       * gcc.target/i386/sse-23.c
        (__builtin_ia32_vfmsubpd512_mask): Likewise.
        (__builtin_ia32_vfmsubpd512_maskz): Likewise.
        (__builtin_ia32_vfmsubps512_mask): Likewise.
        * gcc.dg/stack-check-12.c: ILP32 fixup.
        * gcc.dg/stack-check-5.c: Add AArch64 specific checks.
        * gcc.dg/stack-check-6a.c: Skip on AArch64, we don't support this.
-       * testsuite/lib/target-supports.exp
+       * lib/target-supports.exp
        (check_effective_target_frame_pointer_for_non_leaf): AArch64 does not
        require frame pointer for non-leaf functions.
 
 2018-08-30  Qing Zhao  <qing.zhao@oracle.com>
 
        PR testsuite/86519
-       gcc.dg/strcmpopt_6.c: Remove.
-       gcc.target/aarch64/strcmpopt_6.c: New testcase.
-       gcc.target/i386/strcmpopt_6.c: Likewise.
+       gcc.dg/strcmpopt_6.c: Remove.
+       gcc.target/aarch64/strcmpopt_6.c: New testcase.
+       gcc.target/i386/strcmpopt_6.c: Likewise.
 
 2018-08-30  Richard Biener  <rguenther@suse.de>
 
 
 2018-08-30  Tamar Christina  <tamar.christina@arm.com>
 
-       * gcc.target/aarch64/large_struct_copy_2.c: New.
+       * gcc.target/aarch64/large_struct_copy_2.c: New.
 
 2018-08-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
index 563454c35786bff5a449d5fbfbfdf6bc81daa02a..76a60eaf1ead7f7ad8e9f1d60265c8d2e6428df3 100644 (file)
@@ -1,7 +1,7 @@
 /* PR target/82855 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -mavx512vl -mavx512dq" } */
-/* { dg-final { scan-assembler {\mktestb\M} } } */
+/* { dg-final { scan-assembler {\mkortestb\M} } } */
 
 #include <immintrin.h>