x86: Add AVX2 tests for PR middle-end/90773
PR middle-end/90773 * gcc.target/i386/pr90773-20.c: New test. * gcc.target/i386/pr90773-21.c: Likewise. * gcc.target/i386/pr90773-22.c: Likewise. * gcc.target/i386/pr90773-23.c: Likewise. * gcc.target/i386/pr90773-26.c: Likewise.
This commit is contained in:
parent
29f0e955c9
commit
bf159e5e12
13
gcc/testsuite/gcc.target/i386/pr90773-20.c
Normal file
13
gcc/testsuite/gcc.target/i386/pr90773-20.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -march=skylake" } */
|
||||
|
||||
extern char *dst;
|
||||
|
||||
void
|
||||
foo (int c)
|
||||
{
|
||||
__builtin_memset (dst, c, 33);
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "vmovdqu\[\\t \]%ymm\[0-9\]+, \\(%\[\^,\]+\\)" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "movb\[\\t \]+.+, 32\\(%\[\^,\]+\\)" 1 } } */
|
13
gcc/testsuite/gcc.target/i386/pr90773-21.c
Normal file
13
gcc/testsuite/gcc.target/i386/pr90773-21.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -march=skylake" } */
|
||||
|
||||
extern char *dst;
|
||||
|
||||
void
|
||||
foo (int c)
|
||||
{
|
||||
__builtin_memset (dst, c, 34);
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "vmovdqu\[\\t \]%ymm\[0-9\]+, \\(%\[\^,\]+\\)" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "movw\[\\t \]%.*, 32\\(%\[\^,\]+\\)" 1 } } */
|
13
gcc/testsuite/gcc.target/i386/pr90773-22.c
Normal file
13
gcc/testsuite/gcc.target/i386/pr90773-22.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -march=skylake" } */
|
||||
|
||||
extern char *dst;
|
||||
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
__builtin_memset (dst, 0, 33);
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "vmovdqu\[\\t \]%ymm\[0-9\]+, \\(%\[\^,\]+\\)" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "movb\[\\t \]+.+, 32\\(%\[\^,\]+\\)" 1 } } */
|
13
gcc/testsuite/gcc.target/i386/pr90773-23.c
Normal file
13
gcc/testsuite/gcc.target/i386/pr90773-23.c
Normal file
@ -0,0 +1,13 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -march=skylake" } */
|
||||
|
||||
extern char *dst;
|
||||
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
__builtin_memset (dst, 0, 34);
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "vmovdqu\[\\t \]%ymm\[0-9\]+, \\(%\[\^,\]+\\)" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "movw\[\\t \]+.+, 32\\(%\[\^,\]+\\)" 1 } } */
|
21
gcc/testsuite/gcc.target/i386/pr90773-26.c
Normal file
21
gcc/testsuite/gcc.target/i386/pr90773-26.c
Normal file
@ -0,0 +1,21 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -march=skylake" } */
|
||||
|
||||
struct S
|
||||
{
|
||||
long long s1 __attribute__ ((aligned (8)));
|
||||
unsigned s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14;
|
||||
};
|
||||
|
||||
const struct S array[] = {
|
||||
{ 0, 60, 640, 2112543726, 39682, 48, 16, 33, 10, 96, 2, 0, 0, 4 }
|
||||
};
|
||||
|
||||
void
|
||||
foo (struct S *x)
|
||||
{
|
||||
x[0] = array[0];
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "vmovdqu\[\\t \]%ymm\[0-9\]+, \\(%\[\^,\]+\\)" 1 } } */
|
||||
/* { dg-final { scan-assembler-times "vmovdqu\[\\t \]%ymm\[0-9\]+, 32\\(%\[\^,\]+\\)" 1 } } */
|
Loading…
x
Reference in New Issue
Block a user