Fix an older test
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Dec 1999 10:20:44 +0000 (10:20 +0000)
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Dec 1999 10:20:44 +0000 (10:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30975 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/991214-1.c

index e623b37..8682ef7 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-14  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * gcc.dg/991214-1.c: Use "__asm__", not "asm".
+       Actually make the test fail by using "-O2" for compilation.
+
 1999-12-15  Nathan Sidwell  <nathan@acm.org>
 
        * g++.old-deja/g++.warn/cast-align1.C: New test.
index 2bc7f3f..5b9f56c 100644 (file)
@@ -1,7 +1,10 @@
 /* { dg-do compile { target i?86-*-* } } */
+/* { dg-options "-O2" } */
 
+/* Test against a problem with the combiner substituting explicit hard reg
+   references when it shouldn't.  */
 int foo (int, int) __attribute__ ((regparm (3)));
 int foo (int x, int y)
 {
-  asm volatile("" : : "d" (x), "r" (y));
+  __asm__ __volatile__("" : : "d" (x), "r" (y));
 }