PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr22362.c
blob04d6b27069cc5f9e78a4fa40ca1859674fadbd55
1 /* PR target/22362 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-require-effective-target ia32 } */
6 register unsigned int reg0 __asm__ ("esi");
7 register unsigned int reg1 __asm__ ("edi");
8 register unsigned int reg2 __asm__ ("ebx");
10 static unsigned int
11 __attribute__((noinline))
12 foo (unsigned long *x, void *y, void *z)
14 int i;
16 for (i = 5; i > 0; i--)
17 x[i] = (unsigned long) foo ((unsigned long *) x[i], y, z);
18 return 0;
21 unsigned int
22 bar (void)
24 return foo (0, 0, 0);