mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 12:45:06 +08:00
New test.
From-SVN: r46637
This commit is contained in:
parent
3d23824843
commit
9bf85ba535
23
gcc/testsuite/gcc.dg/20011029-2.c
Normal file
23
gcc/testsuite/gcc.dg/20011029-2.c
Normal file
@ -0,0 +1,23 @@
|
||||
/* { dg-do compile { target i?86-*-* } } */
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
int foo (int s)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int a[32];
|
||||
int y, z;
|
||||
__asm__ __volatile__ ("" : "=c" (y), "=D" (z)
|
||||
: "a" (0), "0" (32), "1" (a) : "memory");
|
||||
if (({ register char r;
|
||||
__asm__ __volatile__ ("" : "=q" (r)
|
||||
: "r" (s % 32), "m" (a[s / 32])
|
||||
: "cc"); r; }))
|
||||
continue;
|
||||
else if (({ register char r;
|
||||
__asm__ __volatile__ ("" : "=q" (r)
|
||||
: "r" (0), "m" (a)
|
||||
: "cc"); r; }))
|
||||
continue;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user