https://gcc.gnu.org/g:3fee7c00ce4334ad612281e4bd5b0d7133e8b676

commit r16-8450-g3fee7c00ce4334ad612281e4bd5b0d7133e8b676
Author: H.J. Lu <[email protected]>
Date:   Sat Apr 4 04:56:01 2026 +0800

    x86: Add a test for PR target/123210
    
    PR target/123210 was fixed by
    
    commit r16-7563-gb54533a28632482e91d7dfbbc47c75fb6d5e78bb
    Author: H.J. Lu <[email protected]>
    Date:   Tue Feb 17 09:51:58 2026 +0800
    
        x86: Update stack alignment only if stack is used
    
    Add a test to verify the fix.
    
            PR target/123210
            * gcc.target/i386/pr123210.c: New test.
    
    Signed-off-by: H.J. Lu <[email protected]>

Diff:
---
 gcc/testsuite/gcc.target/i386/pr123210.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gcc/testsuite/gcc.target/i386/pr123210.c 
b/gcc/testsuite/gcc.target/i386/pr123210.c
new file mode 100644
index 000000000000..ad66cc09781a
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr123210.c
@@ -0,0 +1,14 @@
+/* { dg-do compile { target { int128 && lp64 } } } */
+/* { dg-require-effective-target pie } */
+/* { dg-options "-Os -fno-omit-frame-pointer -fPIE -fcondition-coverage 
-fstrub=all -mcmodel=large" } */
+
+int a, b, c, d, e;
+
+void
+foo ()
+{
+  c = (__uint128_t) b >> 4;
+  if (__builtin_expect (e, 1))
+    if (c)
+      d -= a;
+}

Reply via email to