Documenting the status quo.

        PR target/65181
        gcc/testsuite/
        * gcc.target/nvptx/alloca-2-O1.c: New.
---
 gcc/testsuite/gcc.target/nvptx/alloca-2-O1.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 gcc/testsuite/gcc.target/nvptx/alloca-2-O1.c

diff --git a/gcc/testsuite/gcc.target/nvptx/alloca-2-O1.c 
b/gcc/testsuite/gcc.target/nvptx/alloca-2-O1.c
new file mode 100644
index 000000000000..56cc3f25678b
--- /dev/null
+++ b/gcc/testsuite/gcc.target/nvptx/alloca-2-O1.c
@@ -0,0 +1,19 @@
+/* { dg-do run } */
+/* { dg-options {-O1 -mno-soft-stack} } */
+/* { dg-additional-options -save-temps } */
+/* { dg-final { check-function-bodies {** } {} } } */
+
+int
+main(void)
+{
+  return !(__builtin_alloca(100) != __builtin_alloca(10));
+}
+/*
+** main:
+** \.visible \.func \(\.param\.u32 %value_out\) main \(\.param\.u32 %in_ar0, 
\.param\.u64 %in_ar1\)
+** {
+**     \.reg\.u32 %value;
+**             mov\.u32        %value, 0;
+**     st\.param\.u32  \[%value_out\], %value;
+**     ret;
+*/
-- 
2.34.1

Reply via email to