[cfe-commits] r166731 - /cfe/trunk/test/CodeGenCXX/catch-undef-behavior.cpp

Richard Smith richard-llvm at metafoo.co.uk
Thu Oct 25 15:27:30 PDT 2012


Author: rsmith
Date: Thu Oct 25 17:27:30 2012
New Revision: 166731

URL: http://llvm.org/viewvc/llvm-project?rev=166731&view=rev
Log:
LLVM's hashing routines produce a size_t, and thus generate different values for 32- and 64-bit host compilers. This really needs to be fixed -- the IR generated should not depend on the host -- but this change will get the bots green again. Proper fix to follow.

Modified:
    cfe/trunk/test/CodeGenCXX/catch-undef-behavior.cpp

Modified: cfe/trunk/test/CodeGenCXX/catch-undef-behavior.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/catch-undef-behavior.cpp?rev=166731&r1=166730&r2=166731&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/catch-undef-behavior.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/catch-undef-behavior.cpp Thu Oct 25 17:27:30 2012
@@ -47,7 +47,11 @@
   // If this number changes, it indicates that either the mangled name of ::S
   // has changed, or that LLVM's hashing function has changed. The latter case
   // is OK if the hashing function is still stable.
-  // CHECK-NEXT: xor i64 -4030275160588942838, %[[VPTR]]
+  //
+  // The two hash values are for 64- and 32-bit Clang binaries, respectively.
+  // FIXME: We should produce a 64-bit value either way.
+  //
+  // CHECK-NEXT: xor i64 {{-4030275160588942838|2562089159}}, %[[VPTR]]
   // CHECK-NEXT: mul i64 {{.*}}, -7070675565921424023
   // CHECK-NEXT: lshr i64 {{.*}}, 47
   // CHECK-NEXT: xor i64





More information about the cfe-commits mailing list