diff mbox series

i386: Modify regexp of pr117304-1.c

Message ID 20241107063500.709190-1-lin1.hu@intel.com
State New
Headers show
Series i386: Modify regexp of pr117304-1.c | expand

Commit Message

Hu, Lin1 Nov. 7, 2024, 6:35 a.m. UTC
OK, so just modify the regexp.

Since the test doesn't care if the hint is correct,
modify the regexp of the hint part to avoid future
changes to the hint that would cause the test to fail.

BRs,
Lin

gcc/testsuite/ChangeLog:

	* gcc.target/i386/pr117304-1.c: Modify regexp.
---
 gcc/testsuite/gcc.target/i386/pr117304-1.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

liuhongt Nov. 7, 2024, 6:36 a.m. UTC | #1
> -----Original Message-----
> From: Hu, Lin1 <lin1.hu@intel.com>
> Sent: Thursday, November 7, 2024 2:35 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Liu, Hongtao <hongtao.liu@intel.com>; ubizjak@gmail.com
> Subject: [PATCH] i386: Modify regexp of pr117304-1.c
> 
> OK, so just modify the regexp.
> 
> Since the test doesn't care if the hint is correct, modify the regexp of the hint
> part to avoid future changes to the hint that would cause the test to fail.
Ok.
> 
> BRs,
> Lin
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.target/i386/pr117304-1.c: Modify regexp.
> ---
>  gcc/testsuite/gcc.target/i386/pr117304-1.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/gcc/testsuite/gcc.target/i386/pr117304-1.c
> b/gcc/testsuite/gcc.target/i386/pr117304-1.c
> index fc1c5bfd3e3..ec75f271447 100644
> --- a/gcc/testsuite/gcc.target/i386/pr117304-1.c
> +++ b/gcc/testsuite/gcc.target/i386/pr117304-1.c
> @@ -20,9 +20,9 @@ volatile __v16su ui;
>  void
>  foo()
>  {
> -  hi ^= __builtin_ia32_cvttpd2dq512_mask(df, hi, 0, 4); /* { dg-error "implicit
> declaration of function '__builtin_ia32_cvttpd2dq512_mask'; did you mean
> '__builtin_ia32_cvttpd2dq128_mask'?" } */
> -  hui ^= __builtin_ia32_cvttpd2udq512_mask(df, hui, 0, 4); /* { dg-error
> "implicit declaration of function '__builtin_ia32_cvttpd2udq512_mask'; did
> you mean '__builtin_ia32_cvttpd2udq128_mask'?" } */
> -  ui ^= __builtin_ia32_cvttps2dq512_mask(sf, ui, 0, 4); /* { dg-error "implicit
> declaration of function '__builtin_ia32_cvttps2dq512_mask'; did you mean
> '__builtin_ia32_cvttps2dq128_mask'?" } */
> -  ui ^= __builtin_ia32_cvttps2udq512_mask(sf, ui, 0, 4); /* { dg-error "implicit
> declaration of function '__builtin_ia32_cvttps2udq512_mask'; did you mean
> '__builtin_ia32_cvttps2udq128_mask'?" } */
> -  __builtin_ia32_cvtudq2ps512_mask(ui, sf, 0, 4); /* { dg-error "implicit
> declaration of function '__builtin_ia32_cvtudq2ps512_mask'; did you mean
> '__builtin_ia32_cvtudq2ps128_mask'?" } */
> +  hi ^= __builtin_ia32_cvttpd2dq512_mask(df, hi, 0, 4); /* { dg-error
> + "implicit declaration of function '__builtin_ia32_cvttpd2dq512_mask';
> + did you mean '__builtin_ia32_\[^\n\r]*'?" } */  hui ^=
> + __builtin_ia32_cvttpd2udq512_mask(df, hui, 0, 4); /* { dg-error
> + "implicit declaration of function '__builtin_ia32_cvttpd2udq512_mask';
> + did you mean '__builtin_ia32_\[^\n\r]*'?" } */  ui ^=
> + __builtin_ia32_cvttps2dq512_mask(sf, ui, 0, 4); /* { dg-error
> + "implicit declaration of function '__builtin_ia32_cvttps2dq512_mask';
> + did you mean '__builtin_ia32_\[^\n\r]*'?" } */  ui ^=
> __builtin_ia32_cvttps2udq512_mask(sf, ui, 0, 4); /* { dg-error "implicit
> declaration of function '__builtin_ia32_cvttps2udq512_mask'; did you mean
> '__builtin_ia32_\[^\n\r]*'?" } */  __builtin_ia32_cvtudq2ps512_mask(ui, sf, 0,
> 4); /* { dg-error "implicit declaration of function
> '__builtin_ia32_cvtudq2ps512_mask'; did you mean
> '__builtin_ia32_\[^\n\r]*'?" } */
>  }
> --
> 2.31.1
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/i386/pr117304-1.c b/gcc/testsuite/gcc.target/i386/pr117304-1.c
index fc1c5bfd3e3..ec75f271447 100644
--- a/gcc/testsuite/gcc.target/i386/pr117304-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr117304-1.c
@@ -20,9 +20,9 @@  volatile __v16su ui;
 void
 foo()
 {
-  hi ^= __builtin_ia32_cvttpd2dq512_mask(df, hi, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttpd2dq512_mask'; did you mean '__builtin_ia32_cvttpd2dq128_mask'?" } */
-  hui ^= __builtin_ia32_cvttpd2udq512_mask(df, hui, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttpd2udq512_mask'; did you mean '__builtin_ia32_cvttpd2udq128_mask'?" } */
-  ui ^= __builtin_ia32_cvttps2dq512_mask(sf, ui, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttps2dq512_mask'; did you mean '__builtin_ia32_cvttps2dq128_mask'?" } */
-  ui ^= __builtin_ia32_cvttps2udq512_mask(sf, ui, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttps2udq512_mask'; did you mean '__builtin_ia32_cvttps2udq128_mask'?" } */
-  __builtin_ia32_cvtudq2ps512_mask(ui, sf, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvtudq2ps512_mask'; did you mean '__builtin_ia32_cvtudq2ps128_mask'?" } */
+  hi ^= __builtin_ia32_cvttpd2dq512_mask(df, hi, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttpd2dq512_mask'; did you mean '__builtin_ia32_\[^\n\r]*'?" } */
+  hui ^= __builtin_ia32_cvttpd2udq512_mask(df, hui, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttpd2udq512_mask'; did you mean '__builtin_ia32_\[^\n\r]*'?" } */
+  ui ^= __builtin_ia32_cvttps2dq512_mask(sf, ui, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttps2dq512_mask'; did you mean '__builtin_ia32_\[^\n\r]*'?" } */
+  ui ^= __builtin_ia32_cvttps2udq512_mask(sf, ui, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvttps2udq512_mask'; did you mean '__builtin_ia32_\[^\n\r]*'?" } */
+  __builtin_ia32_cvtudq2ps512_mask(ui, sf, 0, 4); /* { dg-error "implicit declaration of function '__builtin_ia32_cvtudq2ps512_mask'; did you mean '__builtin_ia32_\[^\n\r]*'?" } */
 }