summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.target/microblaze/others/string_cst1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/microblaze/others/string_cst1.c')
-rw-r--r--gcc/testsuite/gcc.target/microblaze/others/string_cst1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/microblaze/others/string_cst1.c b/gcc/testsuite/gcc.target/microblaze/others/string_cst1.c
new file mode 100644
index 00000000000..2a74f4ce721
--- /dev/null
+++ b/gcc/testsuite/gcc.target/microblaze/others/string_cst1.c
@@ -0,0 +1,12 @@
+#include <string.h>
+
+/* { dg-final { scan-assembler "\.rodata*" } } */
+/* { dg-final { scan-assembler "\.data*" } } */
+
+char *string1 = "string1";
+
+int testfunc (char *cptr)
+{
+/* { dg-final { scan-assembler-not "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r13" } } */
+ strcpy (string1, cptr);
+}
OpenPOWER on IntegriCloud