From: Steve Ellcey Date: Thu, 22 Feb 2018 17:08:10 +0000 (+0000) Subject: re PR target/83335 ([aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eae52f300e0f1c71ac69b83495bc9a170330e95b;p=gcc.git re PR target/83335 ([aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481) 2018-02-22 Steve Ellcey 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e40a1f78e2..71adf91e09f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2018-02-22 Steve Ellcey + + 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 * gcc.target/arm/multilib.exp: Add tests for Armv8-R multilib mappings. diff --git a/gcc/testsuite/gcc.target/aarch64/asm-2.c b/gcc/testsuite/gcc.target/aarch64/asm-2.c index 3f978f5b234..65b3a84cfa1 100644 --- a/gcc/testsuite/gcc.target/aarch64/asm-2.c +++ b/gcc/testsuite/gcc.target/aarch64/asm-2.c @@ -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 index 00000000000..abe2af5f1d1 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/asm-4.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O0" } */ + +int x; + +void +f (void) +{ + asm volatile ("%a0" :: "X" (__builtin_extend_pointer (&x))); +}