diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2024-04-10 02:59:43 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2024-04-10 03:00:31 -0500 |
commit | 4923ed49b93352bcf9e43cafac38345e4a54c3f8 (patch) | |
tree | d5356108c889bea9463011b8d714cbcb69a90e51 | |
parent | 109f1b28fc94c93096506e3df0c25e331cef19d0 (diff) | |
download | gcc-4923ed49b93352bcf9e43cafac38345e4a54c3f8.zip gcc-4923ed49b93352bcf9e43cafac38345e4a54c3f8.tar.gz gcc-4923ed49b93352bcf9e43cafac38345e4a54c3f8.tar.bz2 |
testsuite: Adjust pr113359-2_*.c with unsigned long long [PR114662]
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.
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/pr113359-2_0.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/pr113359-2_1.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c b/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c index 8b2d5bd..8495667 100644 --- a/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c @@ -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 diff --git a/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c b/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c index 61bc054..8320f34 100644 --- a/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c +++ b/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c @@ -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 |