From eae52f300e0f1c71ac69b83495bc9a170330e95b Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 22 Feb 2018 17:08:10 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/aarch64/asm-2.c | 2 +- gcc/testsuite/gcc.target/aarch64/asm-4.c | 10 ++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.target/aarch64/asm-4.c 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))); +} -- 2.30.2