testsuite: Add another bitint testcase [PR113691]
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-arm |
success
|
Testing passed
|
Commit Message
Hi!
This is fixed by the PR113692 patch.
Will commit as obvious if that patch makes it in.
2024-02-02 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/113691
* gcc.dg/bitint-83.c: New test.
Jakub
@@ -0,0 +1,23 @@
+/* PR tree-optimization/113691 */
+/* { dg-do compile { target bitint } } */
+/* { dg-options "-O2 -std=gnu11 -w" } */
+
+#if __BITINT_MAXWIDTH__ >= 944
+_BitInt (944) i;
+#else
+_BitInt (63) i;
+#endif
+
+void foo ();
+
+void
+bar ()
+{
+ foo (i);
+}
+
+void
+foo (int *p)
+{
+ *p = 0;
+}