Commit 8d8ae265 by Christophe Lyon Committed by Christophe Lyon

[testsuite][arm] Fix asm-flag-[45].c tests

In asm-flag-4.c, we need to use dg-message instead of dg-error because
we have to match "sorry, unimplemented:" rather than "error:".  In
asm-flag-5.c, fix the dg-error syntax.

2019-11-20  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/arm/asm-flag-4.c: Replace dg-error with dg-message.
	* gcc.target/arm/asm-flag-5.c: Add quotes around dg-error
	messages.

From-SVN: r278487
parent 267d7432
2019-11-20 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/arm/asm-flag-4.c: Replace dg-error with dg-message.
* gcc.target/arm/asm-flag-5.c: Add quotes around dg-error
messages.
2019-11-20 Jakub Jelinek <jakub@redhat.com> 2019-11-20 Jakub Jelinek <jakub@redhat.com>
PR c++/90767 PR c++/90767
......
...@@ -9,5 +9,5 @@ void __attribute__((target("arm"))) f(char *out) ...@@ -9,5 +9,5 @@ void __attribute__((target("arm"))) f(char *out)
void __attribute__((target("thumb"))) g(char *out) void __attribute__((target("thumb"))) g(char *out)
{ {
asm("" : "=@ccne"(out[0])); /* { dg-error asm flags not supported } */ asm("" : "=@ccne"(out[0])); /* { dg-message "asm flags not supported" } */
} }
...@@ -13,13 +13,13 @@ void f_ll(void) { long long x; asm("" : "=@cccc"(x)); } ...@@ -13,13 +13,13 @@ void f_ll(void) { long long x; asm("" : "=@cccc"(x)); }
void f_f(void) void f_f(void)
{ {
float x; float x;
asm("" : "=@cccc"(x)); /* { dg-error invalid type } */ asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */
} }
void f_d(void) void f_d(void)
{ {
double x; double x;
asm("" : "=@cccc"(x)); /* { dg-error invalid type } */ asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */
} }
struct S { int x[3]; }; struct S { int x[3]; };
...@@ -27,5 +27,5 @@ struct S { int x[3]; }; ...@@ -27,5 +27,5 @@ struct S { int x[3]; };
void f_S(void) void f_S(void)
{ {
struct S x; struct S x;
asm("" : "=@cccc"(x)); /* { dg-error invalid type } */ asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */
} }
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