]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add test for spill failure
authordragan.mladjenovic <dragan.mladjenovic@rt-rk.com>
Sun, 17 Aug 2025 14:51:25 +0000 (08:51 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 17 Aug 2025 14:52:36 +0000 (08:52 -0600)
Adding the float-agnostic reproducer as test-case.

gcc/testsuite/

* gcc.target/mips/tls-1.c: New file.

gcc/testsuite/gcc.target/mips/tls-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/mips/tls-1.c b/gcc/testsuite/gcc.target/mips/tls-1.c
new file mode 100644 (file)
index 0000000..38f6a5e
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-options "-mgp32" } */
+
+extern __thread int x __attribute__ ((tls_model ("initial-exec")));
+
+long long
+foo (long long y)
+{
+  x = 0;
+  return y;
+}