aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2025-02-19 19:48:07 +0800
committerH.J. Lu <hjl.tools@gmail.com>2025-02-20 15:25:22 +0800
commit83bc61c9fd6581d0a4c4ee16bdfdaeedcdd6ebcd (patch)
treeb42c8327d09ec52f8b791a2d25010f7aa28d9db5
parent6921c93d205203b239bf36cecc2258d202419ac6 (diff)
downloadgcc-83bc61c9fd6581d0a4c4ee16bdfdaeedcdd6ebcd.zip
gcc-83bc61c9fd6581d0a4c4ee16bdfdaeedcdd6ebcd.tar.gz
gcc-83bc61c9fd6581d0a4c4ee16bdfdaeedcdd6ebcd.tar.bz2
x86: Add a test for PR target/118936
Add a test for PR target/118936 which was fixed by reverting: 565d4e75549 i386: Simplify PARALLEL RTX scan in ix86_find_all_reg_use 11902be7a57 x86: Properly find the maximum stack slot alignment PR target/118936 * gcc.target/i386/pr118936.c: New test. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r--gcc/testsuite/gcc.target/i386/pr118936.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr118936.c b/gcc/testsuite/gcc.target/i386/pr118936.c
new file mode 100644
index 0000000..a3de8cb
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr118936.c
@@ -0,0 +1,22 @@
+/* { dg-do compile } */
+/* { dg-options "-O3 -fno-omit-frame-pointer -fno-toplevel-reorder" } */
+
+struct S1
+{
+ int f1 : 17;
+ int f2 : 23;
+ int f3 : 11;
+ int f4 : 31;
+ int f6;
+};
+volatile struct S1 **g_1680;
+volatile struct S1 ***g_1679[8][8];
+void
+func_40 (struct S1 p_41, short *l_2436)
+{
+ char __trans_tmp_3;
+ __trans_tmp_3 = p_41.f6;
+ *l_2436 ^= __trans_tmp_3;
+ for (int i = 0; i < 8; i+= 1)
+ g_1679[1][i] = &g_1680;
+}