]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] PR target/70809: Delete aarch64_vmls<mode> pattern
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 20 May 2016 09:12:59 +0000 (09:12 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 20 May 2016 09:12:59 +0000 (09:12 +0000)
Backport from mainline
2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/70809
* config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.

* gcc.target/aarch64/pr70809_1.c: New test.

From-SVN: r236500

gcc/ChangeLog
gcc/config/aarch64/aarch64-simd.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr70809_1.c [new file with mode: 0644]

index c6d4300d4849c9aab706a5bf2a3cf9ff18d587ac..202f3269cf1bb13bddd988ea11dc4e4d2af36367 100644 (file)
@@ -1,3 +1,11 @@
+2016-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       Backport from mainline
+       2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR target/70809
+       * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
+
 2016-05-19  Martin Jambor  <mjambor@suse.cz>
 
        PR ipa/70646
index 7626ed31fd688102ca81cd13a88e02891c971c99..9776816bfa7c7a174184bf8ddf90d73c88e40d2f 100644 (file)
   }
 )
 
-(define_insn "aarch64_vmls<mode>"
-  [(set (match_operand:VDQF 0 "register_operand" "=w")
-       (minus:VDQF (match_operand:VDQF 1 "register_operand" "0")
-                  (mult:VDQF (match_operand:VDQF 2 "register_operand" "w")
-                             (match_operand:VDQF 3 "register_operand" "w"))))]
-  "TARGET_SIMD"
- "fmls\\t%0.<Vtype>, %2.<Vtype>, %3.<Vtype>"
-  [(set_attr "type" "neon_fp_mla_<Vetype>_scalar<q>")]
-)
-
 ;; FP Max/Min
 ;; Max/Min are introduced by idiom recognition by GCC's mid-end.  An
 ;; expression like:
index 2d2207aee2213482f8595e462d9a330eac50526e..30c17894a8f350075d3c3ae3c4696b0a60e8b654 100644 (file)
@@ -1,3 +1,11 @@
+2016-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       Backport from mainline
+       2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR target/70809
+       * gcc.target/aarch64/pr70809_1.c: New test.
+
 2016-05-19  Martin Jambor  <mjambor@suse.cz>
 
        PR ipa/70646
diff --git a/gcc/testsuite/gcc.target/aarch64/pr70809_1.c b/gcc/testsuite/gcc.target/aarch64/pr70809_1.c
new file mode 100644 (file)
index 0000000..2e1bbf4
--- /dev/null
@@ -0,0 +1,18 @@
+/* PR target/70809.  */
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize -ffp-contract=off -mtune=generic" } */
+
+/* Check that vector FMLS is not generated when contraction is disabled.  */
+
+void
+foo (float *__restrict__ __attribute__ ((aligned (16))) a,
+     float *__restrict__ __attribute__ ((aligned (16))) x,
+     float *__restrict__ __attribute__ ((aligned (16))) y,
+     float *__restrict__ __attribute__ ((aligned (16))) z)
+{
+  unsigned i = 0;
+  for (i = 0; i < 256; i++)
+    a[i] = x[i] - (y[i] * z[i]);
+}
+
+/* { dg-final { scan-assembler-not "fmls\tv.*" } } */