re PR target/83335 ([aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481)
authorSteve Ellcey <sellcey@cavium.com>
Thu, 22 Feb 2018 17:08:10 +0000 (17:08 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 22 Feb 2018 17:08:10 +0000 (17:08 +0000)
2018-02-22  Steve Ellcey  <sellcey@cavium.com>

PR target/83335
* gcc/testsuite/gcc.target/aarch64/asm-2.c: Add dg-error for
ILP32 mode.
* gcc/testsuite/gcc.target/aarch64/asm-4.c: New test.

From-SVN: r257908

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/asm-2.c
gcc/testsuite/gcc.target/aarch64/asm-4.c [new file with mode: 0644]

index 4e40a1f78e27291ef6deede21afe4777974f10d7..71adf91e09f5961185d4346fe4c1e7ce8a6f4268 100644 (file)
@@ -1,3 +1,10 @@
+2018-02-22  Steve Ellcey  <sellcey@cavium.com>
+
+       PR target/83335
+       * gcc/testsuite/gcc.target/aarch64/asm-2.c: Add dg-error for
+       ILP32 mode.
+       * gcc/testsuite/gcc.target/aarch64/asm-4.c: New test.
+
 2018-02-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * gcc.target/arm/multilib.exp: Add tests for Armv8-R multilib mappings.
index 3f978f5b2347405c8637529442af537f409a59bd..65b3a84cfa131d206ea24f58af5490d020c35813 100644 (file)
@@ -6,5 +6,5 @@ int x;
 void
 f (void)
 {
-  asm volatile ("%a0" :: "X" (&x));
+  asm volatile ("%a0" :: "X" (&x)); /* { dg-error "invalid address mode" "" { target ilp32 } } */
 }
diff --git a/gcc/testsuite/gcc.target/aarch64/asm-4.c b/gcc/testsuite/gcc.target/aarch64/asm-4.c
new file mode 100644 (file)
index 0000000..abe2af5
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-O0" } */
+
+int x;
+
+void
+f (void)
+{
+  asm volatile ("%a0" :: "X" (__builtin_extend_pointer (&x)));
+}