diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-11-20 09:31:10 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2019-11-20 10:31:10 +0100 |
commit | 8d8ae265dcabd1c864bdab7139558cc131a980d9 (patch) | |
tree | 9e5aeafb3c83f312a3921143fc31bdd0c938b195 /gcc | |
parent | 267d74329b28dbc442a88fdbd5109bb28af244d8 (diff) | |
download | gcc-8d8ae265dcabd1c864bdab7139558cc131a980d9.zip gcc-8d8ae265dcabd1c864bdab7139558cc131a980d9.tar.gz gcc-8d8ae265dcabd1c864bdab7139558cc131a980d9.tar.bz2 |
[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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/asm-flag-4.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/asm-flag-5.c | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a6086a4..b9d26f1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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> PR c++/90767 diff --git a/gcc/testsuite/gcc.target/arm/asm-flag-4.c b/gcc/testsuite/gcc.target/arm/asm-flag-4.c index 3791cadd..8b3eac1 100644 --- a/gcc/testsuite/gcc.target/arm/asm-flag-4.c +++ b/gcc/testsuite/gcc.target/arm/asm-flag-4.c @@ -9,5 +9,5 @@ void __attribute__((target("arm"))) f(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" } */ } diff --git a/gcc/testsuite/gcc.target/arm/asm-flag-5.c b/gcc/testsuite/gcc.target/arm/asm-flag-5.c index 9a8ff58..304b80a 100644 --- a/gcc/testsuite/gcc.target/arm/asm-flag-5.c +++ b/gcc/testsuite/gcc.target/arm/asm-flag-5.c @@ -13,13 +13,13 @@ void f_ll(void) { long long x; asm("" : "=@cccc"(x)); } void f_f(void) { float x; - asm("" : "=@cccc"(x)); /* { dg-error invalid type } */ + asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */ } void f_d(void) { double x; - asm("" : "=@cccc"(x)); /* { dg-error invalid type } */ + asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */ } struct S { int x[3]; }; @@ -27,5 +27,5 @@ struct S { int x[3]; }; void f_S(void) { struct S x; - asm("" : "=@cccc"(x)); /* { dg-error invalid type } */ + asm("" : "=@cccc"(x)); /* { dg-error "invalid type" } */ } |