]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust pr113359-2_*.c with unsigned long long [PR114662]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 10 Apr 2024 07:59:43 +0000 (02:59 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 10 Apr 2024 08:00:31 +0000 (03:00 -0500)
pr113359-2_*.c define a struct having unsigned long type
members ay and az which have 4 bytes size at -m32, while
the related constants CL1 and CL2 used for equality check
are always 8 bytes, it makes compiler consider the below

  69   if (a.ay != CL1)
  70     __builtin_abort ();

always to abort and optimize away the following call to
getb, which leads to the expected wpa dumping on
"Semantic equality" missing.

This patch is to modify the types with unsigned long long
accordingly.

PR testsuite/114662

gcc/testsuite/ChangeLog:

* gcc.dg/lto/pr113359-2_0.c: Use unsigned long long instead of
unsigned long.
* gcc.dg/lto/pr113359-2_1.c: Likewise.

gcc/testsuite/gcc.dg/lto/pr113359-2_0.c
gcc/testsuite/gcc.dg/lto/pr113359-2_1.c

index 8b2d5bdfab22ce4f7e088172e62b6e3b6cfdde2b..8495667599d033ab6c8f4bced44eb35ab9b9b9e5 100644 (file)
@@ -8,15 +8,15 @@
 struct SA
 {
   unsigned int ax;
-  unsigned long ay;
-  unsigned long az;
+  unsigned long long ay;
+  unsigned long long az;
 };
 
 struct SB
 {
   unsigned int bx;
-  unsigned long by;
-  unsigned long bz;
+  unsigned long long by;
+  unsigned long long bz;
 };
 
 struct ZA
index 61bc0547981a4a1f87b300adba7e0714975e5364..8320f347efee6c1c2235b157410f7794e7a2dc6e 100644 (file)
@@ -5,15 +5,15 @@
 struct SA
 {
   unsigned int ax;
-  unsigned long ay;
-  unsigned long az;
+  unsigned long long ay;
+  unsigned long long az;
 };
 
 struct SB
 {
   unsigned int bx;
-  unsigned long by;
-  unsigned long bz;
+  unsigned long long by;
+  unsigned long long bz;
 };
 
 struct ZA