Patchwork patch: honor volatile bitfield types

login
register
mail settings
Submitter DJ Delorie
Date June 22, 2010, 10:19 p.m.
Message ID <201006222219.o5MMJKHi030433@greed.delorie.com>
Download mbox | patch
Permalink /patch/56575/
State New
Headers show

Comments

DJ Delorie - June 22, 2010, 10:19 p.m.
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.

Patch

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" } } */