[gcc r16-1435] Fix test case for PR117811 which failed for int < 32 bit.
Georg-Johann Lay
gjl@gcc.gnu.org
Thu Jun 12 08:12:57 GMT 2025
https://gcc.gnu.org/g:07f229c2d7ee6b604e5a86092e675d5d36c1ba4e
commit r16-1435-g07f229c2d7ee6b604e5a86092e675d5d36c1ba4e
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Thu Jun 12 10:07:37 2025 +0200
Fix test case for PR117811 which failed for int < 32 bit.
PR middle-end/117811
PR testsuite/52641
gcc/testsuite/
* gcc.dg/torture/pr117811.c: Fix for int < 32 bit.
Diff:
---
gcc/testsuite/gcc.dg/torture/pr117811.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/torture/pr117811.c b/gcc/testsuite/gcc.dg/torture/pr117811.c
index 13d7e1347807..05e8622f25e3 100644
--- a/gcc/testsuite/gcc.dg/torture/pr117811.c
+++ b/gcc/testsuite/gcc.dg/torture/pr117811.c
@@ -18,8 +18,13 @@ void __attribute__((noclone,noinline)) do_shift (v4 *vec, int shift)
int main ()
{
+#if __SIZEOF_INT__ >= 4
v4 vec = {0x1000000, 0x2000, 0x300, 0x40};
v4 vec2 = {0x100000, 0x200, 0x30, 0x4};
+#else
+ v4 vec = {0x4000, 0x2000, 0x300, 0x40};
+ v4 vec2 = {0x400, 0x200, 0x30, 0x4};
+#endif
do_shift (&vec, 4);
if (memcmp (&vec, &vec2, sizeof (v4)) != 0)
__builtin_abort ();
More information about the Gcc-cvs
mailing list