]> granicus.if.org Git - clang/commitdiff
Tests: fix tests encoding specific hash values for 32-bit systems.
authorTim Northover <tnorthover@apple.com>
Fri, 31 Aug 2018 19:24:37 +0000 (19:24 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 31 Aug 2018 19:24:37 +0000 (19:24 +0000)
I changed the seed slightly, but forgot to run the tests on a 32-bit system, so
tests which hard-code a specific hash value started breaking.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341240 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/catch-undef-behavior.cpp

index 4513936e49a30edd3c93b73a2f2afde7d6b1a047..50a05a06bf6665e049f32ad22566a84d8e1e9b37 100644 (file)
@@ -72,7 +72,7 @@ void member_access(S *p) {
   // 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: xor i64 {{-4030275160588942838|1107558922}}, %[[VPTR]]
   // CHECK-NEXT: mul i64 {{.*}}, -7070675565921424023
   // CHECK-NEXT: lshr i64 {{.*}}, 47
   // CHECK-NEXT: xor i64
@@ -121,7 +121,7 @@ void member_access(S *p) {
   // (3b) Check that 'p' actually points to an 'S'
 
   // CHECK: load i64, i64*
-  // CHECK-NEXT: xor i64 {{-4030275160588942838|2562089159}},
+  // CHECK-NEXT: xor i64 {{-4030275160588942838|1107558922}},
   // [...]
   // CHECK: getelementptr inbounds [128 x i64], [128 x i64]* @__ubsan_vptr_type_cache, i32 0, i64 %
   // CHECK: br i1