patch: honor volatile bitfield types
DJ Delorie
dj@redhat.com
Wed Jun 23 00:51:00 GMT 2010
Can't use [] in dg-* as it looks like a TCL command :-P
This passes i686- and i586-pc-linux. Ok?
* gcc.target/i386/volatile-bitfields-1.c: Fix regex to match more
correct opcodes.
Index: gcc.target/i386/volatile-bitfields-1.c
===================================================================
--- gcc.target/i386/volatile-bitfields-1.c (revision 161225)
+++ gcc.target/i386/volatile-bitfields-1.c (working copy)
@@ -11,7 +11,7 @@ volatile BitStruct bits;
int foo ()
{
return bits.b;
}
-/* { dg-final { scan-assembler "movzbl.*bits" } } */
+/* { dg-final { scan-assembler "(movsbl|movzbl|movb).*bits" } } */
More information about the Gcc-patches
mailing list