PR target/91408
* config/i386/mmx.md (usadv8qi): Use register_operand instead of
vector_operand.
* gcc.target/i386/pr91408.c: New test.
From-SVN: r274251
+2019-08-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/91408
+ * config/i386/mmx.md (usadv8qi): Use register_operand instead of
+ vector_operand.
+
2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
* reload1.c (finish_spills): Do not check ira_conflicts_p when
(define_expand "usadv8qi"
[(match_operand:V2SI 0 "register_operand")
(match_operand:V8QI 1 "register_operand")
- (match_operand:V8QI 2 "vector_operand")
- (match_operand:V2SI 3 "vector_operand")]
+ (match_operand:V8QI 2 "register_operand")
+ (match_operand:V2SI 3 "register_operand")]
"TARGET_MMX_WITH_SSE"
{
rtx t1 = gen_reg_rtx (V1DImode);
+2019-08-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/91408
+ * gcc.target/i386/pr91408.c: New test.
+
2019-08-09 Segher Boessenkool <segher@kernel.crashing.org>
* gcc.target/powerpc/vec_rotate-1.c: Rename to ...
--- /dev/null
+/* PR target/91408 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-loop-vectorize -fno-tree-forwprop" } */
+
+long long a;
+unsigned char b;
+short *c;
+int d;
+
+void
+foo (long long *x)
+{
+ unsigned char *e = (char *) x;
+ int f, g = 0;
+ for (d = 0; d < 8; d++)
+ {
+ f = b - e[d];
+ if (f < 0)
+ f = -f;
+ g += f;
+ }
+ c[0] = g;
+}
+
+void
+bar (void)
+{
+ foo (&a);
+}