pr81356.c: New test.
authorSteve Ellcey <sellcey@cavium.com>
Fri, 17 Nov 2017 22:46:46 +0000 (22:46 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Fri, 17 Nov 2017 22:46:46 +0000 (22:46 +0000)
2017-11-17  Steve Ellcey  <sellcey@cavium.com>

* gcc.target/aarch64/pr81356.c: New test.

From-SVN: r254903

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr81356.c [new file with mode: 0644]

index c75df82e97dc8f070ff7437acdcc61e7375e09c8..0dbe4731cc15bddde5069dcd224050226363ecec 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-17  Steve Ellcey  <sellcey@cavium.com>
+
+       * gcc.target/aarch64/pr81356.c: New test.
+
 2017-11-17  Jan Hubicka  <hubicka@ucw.cz>
 
        * gcc.target/i386/xop-imul64-vector.c: Disable vectorizer costmodel.
diff --git a/gcc/testsuite/gcc.target/aarch64/pr81356.c b/gcc/testsuite/gcc.target/aarch64/pr81356.c
new file mode 100644 (file)
index 0000000..9fd6baa
--- /dev/null
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+void f(char *a)
+{
+  __builtin_strcpy (a, "");
+}
+
+/* { dg-final { scan-assembler-not "ldrb" } } */