* gcc.dg/i386-rotate-1.c: New test.

From-SVN: r89755
This commit is contained in:
Jakub Jelinek 2004-10-28 15:07:00 +02:00 committed by Jakub Jelinek
parent 53a8d0f021
commit 83ff1f252f
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-10-28 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/i386-rotate-1.c: New test.
2004-10-27 Mark Mitchell <mark@codesourcery.com>
* g++.dg/init/ref12.C: Add "run" marker.

View File

@ -0,0 +1,16 @@
/* Verify that rolb instruction is emitted on IA-32/x86-64. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
void foo (unsigned char *);
int
main (void)
{
unsigned char c = 0;
foo (&c);
c = c >> 1 | c << 7;
return c;
}
/* { dg-final { scan-assembler "rolb" { target i?86-*-* x86_64-*-* } } } */