re PR target/79924 (aarch64: untranslated diagnostics in aarch64_err_no_fpadvsimd)

2018-06-05  Steve Ellcey  <sellcey@cavium.com>

	PR target/79924
	* gcc.target/aarch64/mgeneral-regs_1.c: Update error message.
	* gcc.target/aarch64/mgeneral-regs_2.c: Ditto.
	* gcc.target/aarch64/mgeneral-regs_3.c: Ditto.
	* gcc.target/aarch64/nofp_1.c: Ditto.

From-SVN: r261218
This commit is contained in:
Steve Ellcey 2018-06-05 22:21:36 +00:00 committed by Steve Ellcey
parent fc29dfc9e4
commit aec530ac44
5 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,11 @@
2018-06-05 Steve Ellcey <sellcey@cavium.com>
PR target/79924
* gcc.target/aarch64/mgeneral-regs_1.c: Update error message.
* gcc.target/aarch64/mgeneral-regs_2.c: Ditto.
* gcc.target/aarch64/mgeneral-regs_3.c: Ditto.
* gcc.target/aarch64/nofp_1.c: Ditto.
2018-06-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/cmse/cmse-1c99.c: New test.

View file

@ -2,8 +2,7 @@
typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
/* { dg-error "'-mgeneral-regs-only' is incompatible with vector return type" "" {target "aarch64*-*-*"} .+2 } */
/* { dg-error "'-mgeneral-regs-only' is incompatible with vector argument" "" {target "aarch64*-*-*"} .+1 } */
/* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" "" {target "aarch64*-*-*"} .+1 } */
int32x2_t test (int32x2_t a, int32x2_t b)
{
return a + b;

View file

@ -10,6 +10,6 @@ test (int i, ...)
va_list argp;
va_start (argp, i);
int32x2_t x = (int32x2_t) {0, 1};
x += va_arg (argp, int32x2_t); /* { dg-error "'-mgeneral-regs-only' is incompatible with vector varargs" } */
x += va_arg (argp, int32x2_t); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" } */
return x[0] + x[1];
}

View file

@ -5,7 +5,7 @@ extern void abort (void);
int
test (int i, ...)
{
float f = (float) i; /* { dg-error "'-mgeneral-regs-only' is incompatible with floating-point code" } */
float f = (float) i; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
if (f != f) abort ();
return 2;
}

View file

@ -15,5 +15,5 @@ main (int argc, char **argv)
{
int32x2_t a = (int32x2_t) {0, 1};
int32x2_t b = (int32x2_t) {2, 3};
return test (2, a, b); /* { dg-error "'\\+nofp' feature modifier is incompatible with vector argument" } */
return test (2, a, b); /* { dg-error "'\\+nofp' feature modifier is incompatible with the use of vector types" } */
}