re PR target/83335 ([aarch64,ilp32] gcc.target/aarch64/asm-2.c ICEs since 255481)

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
This commit is contained in:
Steve Ellcey 2018-02-22 17:08:10 +00:00 committed by Steve Ellcey
parent 67c58c8f6b
commit eae52f300e
3 changed files with 18 additions and 1 deletions

View 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.

View 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 } } */
}

View file

@ -0,0 +1,10 @@
/* { dg-do compile } */
/* { dg-options "-O0" } */
int x;
void
f (void)
{
asm volatile ("%a0" :: "X" (__builtin_extend_pointer (&x)));
}