aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/gcc.target/s390/litpool-int.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/s390/litpool-int.c b/gcc/testsuite/gcc.target/s390/litpool-int.c
new file mode 100644
index 0000000..a6bf0c0
--- /dev/null
+++ b/gcc/testsuite/gcc.target/s390/litpool-int.c
@@ -0,0 +1,12 @@
+/* Test that we do not generate useless LAs. */
+
+/* { dg-do compile } */
+/* { dg-options "-march=z10 -O1" } */
+
+int a;
+
+void b()
+{
+ a /= 100;
+ /* { dg-final { scan-assembler-not {(?n)\n\tla\t%r\d+,.+\(%r13\)\n} } } */
+}