[llvm-commits] [llvm-gcc-4.2] r111479 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_struct_returning.c

Chris Lattner sabre at nondot.org
Wed Aug 18 16:59:30 PDT 2010

Author: lattner
Date: Wed Aug 18 18:59:30 2010
New Revision: 111479

URL: http://llvm.org/viewvc/llvm-project?rev=111479&view=rev
fix another bogus assumption in the test: when a struct is returned in a mem, 
rax and rdx are not defined to be equal to each other.  With this, clang passes
all abi tests here.


Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_struct_returning.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_struct_returning.c?rev=111479&r1=111478&r2=111479&view=diff
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_struct_returning.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.target/x86_64/abi/test_struct_returning.c Wed Aug 18 18:59:30 2010
@@ -206,7 +206,7 @@
        stack, but noone is forbidding that it could be a static variable
        if there's no threading or proper locking.  Nobody in his right mind
        will not use the stack for that.  */
-    case MEM: assert (*(unsigned char*)struct_addr == 42 && rdi == rax); break;
+    case MEM: assert (*(unsigned char*)struct_addr == 42); break;

More information about the llvm-commits mailing list