[llvm-commits] [llvm-gcc-4.2] r57530 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pic-1.c

Dale Johannesen dalej at apple.com
Tue Oct 14 15:39:36 PDT 2008


Author: johannes
Date: Tue Oct 14 17:39:36 2008
New Revision: 57530

URL: http://llvm.org/viewvc/llvm-project?rev=57530&view=rev
Log:
llvm doesn't reserve EBX as the pic register, so there's
no reason to consider this code erroneous.


Modified:
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pic-1.c

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pic-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pic-1.c?rev=57530&r1=57529&r2=57530&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pic-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/i386/pic-1.c Tue Oct 14 17:39:36 2008
@@ -7,7 +7,10 @@
 {
   static int a;
 
-  __asm__ __volatile__ (  /* { dg-error "PIC register" } */
+/* LLVM LOCAL begin we don't reserve EBX as the pic register, it's variable,
+/* so there is no reason this code shouldn't work.  dg-error removed. */
+  __asm__ __volatile__ (
+/* LLVM LOCAL end */
     "xorl %%ebx, %%ebx\n"
     "movl %%ebx, %0\n"
     : "=m" (a)





More information about the llvm-commits mailing list