commit 8395fa7c79eecf102b276ffee37436e75a522978
Author: Philipp Tomsich <[email protected]>
Date:   Wed Jul 1 12:19:30 2026 +0200

    tree-optimization/124545 - VN: add inverse widening lookup for PLUS/MINUS

added gcc.dg/pr124545-2.c which fails on ILP32 targets where unsigned long
is 32-bit, not 64-bit.   Replace unsigned long with unsigned long long to
fix it.

PR tree-optimization/124545
* gcc.dg/pr124545-2.c (uns_carry): Replace unsigned long with
unsigned long long.

-- 
H.J.
From bbaa8415f5394e788afcc4a9af6ef30796e0ac37 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <[email protected]>
Date: Tue, 7 Jul 2026 05:23:04 +0800
Subject: [PATCH] pr124545-2.c: Replace unsigned long with unsigned long long

commit 8395fa7c79eecf102b276ffee37436e75a522978
Author: Philipp Tomsich <[email protected]>
Date:   Wed Jul 1 12:19:30 2026 +0200

    tree-optimization/124545 - VN: add inverse widening lookup for PLUS/MINUS

added gcc.dg/pr124545-2.c which fails on ILP32 targets where unsigned long
is 32-bit, not 64-bit.   Replace unsigned long with unsigned long long to
fix it.

	PR tree-optimization/124545
	* gcc.dg/pr124545-2.c (uns_carry): Replace unsigned long with
	unsigned long long.

Signed-off-by: H.J. Lu <[email protected]>
---
 gcc/testsuite/gcc.dg/pr124545-2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/pr124545-2.c b/gcc/testsuite/gcc.dg/pr124545-2.c
index b4806567acc..f9471e7dd98 100644
--- a/gcc/testsuite/gcc.dg/pr124545-2.c
+++ b/gcc/testsuite/gcc.dg/pr124545-2.c
@@ -28,7 +28,7 @@ __attribute__((noipa)) int
 uns_carry (unsigned int a)
 {
   unsigned int t = a + 100u;
-  unsigned long w = (unsigned long) a + 100;
+  unsigned long long w = (unsigned long long) a + 100;
   return w == (unsigned long) t;
 }
 
-- 
2.55.0

Reply via email to