From: Tim Northover Date: Fri, 31 Aug 2018 19:24:37 +0000 (+0000) Subject: Tests: fix tests encoding specific hash values for 32-bit systems. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bd548f654845c35a3fa9d4644a64db36b2ea36c;p=clang Tests: fix tests encoding specific hash values for 32-bit systems. 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 --- diff --git a/test/CodeGenCXX/catch-undef-behavior.cpp b/test/CodeGenCXX/catch-undef-behavior.cpp index 4513936e49..50a05a06bf 100644 --- a/test/CodeGenCXX/catch-undef-behavior.cpp +++ b/test/CodeGenCXX/catch-undef-behavior.cpp @@ -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