Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Andrew Burgess <andrew.burgess@embecosm.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 2/2] gdb: Fix testsuite issue in gdb.arch/amd64-disp-step-avx.exp
Date: Thu, 22 Mar 2018 13:44:00 -0000	[thread overview]
Message-ID: <0a12132f-5423-4319-02da-4c61d072f237@redhat.com> (raw)
In-Reply-To: <963bfa7c7483c4c907f4a63e9588b243845c8acd.1521722330.git.andrew.burgess@embecosm.com>

Hi Andrew,

Sounds fine to me in principle.  A couple comments below.

On 03/22/2018 12:57 PM, Andrew Burgess wrote:

> @@ -103,8 +105,10 @@ proc disp_step_func { func } {
>  with_test_prefix "vex2" {
>      # This case writes to the 'xmm0' register.  Confirm the register's
>      # value is what we believe it is before the AVX instruction runs.
> -    gdb_test "p /x \$xmm0.uint128" " = 0x0" \
> -	"xmm0 has expected value before"
> +    for {set i 0 } { $i < 16 } { incr i } {
> +	gdb_test "p /x \$xmm${i}.uint128" " = 0x0" \
> +	    "xmm${i} has expected value before"
> +    }

This leaves a slight disconnect between the comment and the
code.  I.e., someone reading the comment may wonder why
we check more than xmm0?

Also, should we test xmm1-15 are still 0 after, too, for
completeness?

>  
>      disp_step_func "test_rip_vex2"
>  
> 

Thanks,
Pedro Alves


  reply	other threads:[~2018-03-22 13:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22 12:57 [PATCH 0/2] Test fix in gdb.arch/* tests Andrew Burgess
2018-03-22 12:57 ` [PATCH 1/2] gdb: Minor cleanup in some " Andrew Burgess
2018-03-22 13:51   ` Pedro Alves
2018-03-22 22:59     ` Andrew Burgess
2018-03-23 10:13       ` Pedro Alves
2018-03-22 12:57 ` [PATCH 2/2] gdb: Fix testsuite issue in gdb.arch/amd64-disp-step-avx.exp Andrew Burgess
2018-03-22 13:44   ` Pedro Alves [this message]
2018-03-22 23:01     ` Andrew Burgess
2018-03-23 10:13       ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0a12132f-5423-4319-02da-4c61d072f237@redhat.com \
    --to=palves@redhat.com \
    --cc=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox