Commit aec530ac by Steve Ellcey Committed by Steve Ellcey

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
parent fc29dfc9
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> 2018-06-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/cmse/cmse-1c99.c: New test. * gcc.target/arm/cmse/cmse-1c99.c: New test.
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
typedef int int32x2_t __attribute__ ((__vector_size__ ((8)))); 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 the use of vector types" "" {target "aarch64*-*-*"} .+1 } */
/* { dg-error "'-mgeneral-regs-only' is incompatible with vector argument" "" {target "aarch64*-*-*"} .+1 } */
int32x2_t test (int32x2_t a, int32x2_t b) int32x2_t test (int32x2_t a, int32x2_t b)
{ {
return a + b; return a + b;
......
...@@ -10,6 +10,6 @@ test (int i, ...) ...@@ -10,6 +10,6 @@ test (int i, ...)
va_list argp; va_list argp;
va_start (argp, i); va_start (argp, i);
int32x2_t x = (int32x2_t) {0, 1}; 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]; return x[0] + x[1];
} }
...@@ -5,7 +5,7 @@ extern void abort (void); ...@@ -5,7 +5,7 @@ extern void abort (void);
int int
test (int i, ...) 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 (); if (f != f) abort ();
return 2; return 2;
} }
...@@ -15,5 +15,5 @@ main (int argc, char **argv) ...@@ -15,5 +15,5 @@ main (int argc, char **argv)
{ {
int32x2_t a = (int32x2_t) {0, 1}; int32x2_t a = (int32x2_t) {0, 1};
int32x2_t b = (int32x2_t) {2, 3}; 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" } */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment