x86: add CVT{,T}PS2PI cases to xmmwords test

Message ID 5D10C6EE020000780023AA05@prv1-mh.provo.novell.com
State New
Headers show
Series
  • x86: add CVT{,T}PS2PI cases to xmmwords test
Related show

Commit Message

Jan Beulich June 24, 2019, 12:49 p.m.
I've (not so) recently noticed this further pair which should be tested
here.

gas/
2019-06-24  Jan Beulich  <jbeulich@suse.com>

	* testsuite/gas/i386/xmmword.s: Add cvtps2pi and cvttps2pi
	tests.
	* testsuite/gas/i386/xmmword.l: Adjust expectations.

Comments

H.J. Lu June 24, 2019, 3:55 p.m. | #1
On Mon, Jun 24, 2019 at 5:49 AM Jan Beulich <JBeulich@suse.com> wrote:
>

> I've (not so) recently noticed this further pair which should be tested

> here.

>

> gas/

> 2019-06-24  Jan Beulich  <jbeulich@suse.com>

>

>         * testsuite/gas/i386/xmmword.s: Add cvtps2pi and cvttps2pi

>         tests.

>         * testsuite/gas/i386/xmmword.l: Adjust expectations.

>

> --- a/gas/testsuite/gas/i386/xmmword.l

> +++ b/gas/testsuite/gas/i386/xmmword.l

> @@ -109,3 +109,5 @@

>  .*:140: Error: .* `movq'

>  .*:141: Error: .* `vmovq'

>  .*:142: Error: .* `vmovq'

> +.*:144: Error: .* `cvtps2pi'

> +.*:146: Error: .* `cvttps2pi'

> --- a/gas/testsuite/gas/i386/xmmword.s

> +++ b/gas/testsuite/gas/i386/xmmword.s

> @@ -140,3 +140,7 @@ xmmword:

>         movq            xmmword ptr [eax], xmm0

>         vmovq           xmmword ptr [eax], xmm0

>         {evex} vmovq    xmmword ptr [eax], xmm0

> +

> +       cvtps2pi        mm0, xmmword ptr [eax]

> +

> +       cvttps2pi       mm0, xmmword ptr [eax]

>

>


OK.

Thanks.

-- 
H.J.

Patch

--- a/gas/testsuite/gas/i386/xmmword.l
+++ b/gas/testsuite/gas/i386/xmmword.l
@@ -109,3 +109,5 @@ 
 .*:140: Error: .* `movq'
 .*:141: Error: .* `vmovq'
 .*:142: Error: .* `vmovq'
+.*:144: Error: .* `cvtps2pi'
+.*:146: Error: .* `cvttps2pi'
--- a/gas/testsuite/gas/i386/xmmword.s
+++ b/gas/testsuite/gas/i386/xmmword.s
@@ -140,3 +140,7 @@  xmmword:
 	movq		xmmword ptr [eax], xmm0
 	vmovq		xmmword ptr [eax], xmm0
 	{evex} vmovq	xmmword ptr [eax], xmm0
+
+	cvtps2pi	mm0, xmmword ptr [eax]
+
+	cvttps2pi	mm0, xmmword ptr [eax]