[COMITTED] x86: Add a test for PR target/123210
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gcc_check--master-arm |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 |
success
|
Test passed
|
Commit Message
PR target/123210 was fixed by
commit r16-7563-gb54533a28632482e91d7dfbbc47c75fb6d5e78bb
Author: H.J. Lu <hjl.tools@gmail.com>
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.
From ba3f90774b7a8808c0de8c18a4dd3206669fc795 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Sat, 4 Apr 2026 04:56:01 +0800
Subject: [PATCH] x86: Add a test for PR target/123210
PR target/123210 was fixed by
commit r16-7563-gb54533a28632482e91d7dfbbc47c75fb6d5e78bb
Author: H.J. Lu <hjl.tools@gmail.com>
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 <hjl.tools@gmail.com>
---
gcc/testsuite/gcc.target/i386/pr123210.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 gcc/testsuite/gcc.target/i386/pr123210.c
new file mode 100644
@@ -0,0 +1,13 @@
+/* { dg-do compile { target { int128 && lp64 } } } */
+/* { 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;
+}
--
2.53.0