https://bugs.kde.org/show_bug.cgi?id=523375

            Bug ID: 523375
           Summary: Fix none/tests/amd64/pcmpxstrx64.c
    Classification: Developer tools
           Product: valgrind
      Version First 3.27 GIT
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The pcmpxstrx64 testcase is broken.  There's a problem in how blockC is
populated within individual subtests of none/tests/amd64/pcmpxstrx64.c where
both argL and argN are 128 bit long, and so with the following code:

 65    UChar* blockC = (UChar*)&block[0];
 66 
 67    /* ---------------- ISTRI_4A ---------------- */
 68    memset(blockC, 0x55, 80);
 69    memcpy(blockC + 0,  &argL,  16);
 70    memcpy(blockC + 16, &argR,  16);
 71    memcpy(blockC + 24, &rdxIN, 8);

the value of rdxIN partially overwrites argR (as discussed in Bug 521413#c2). 
Despite that, the test passes because the expected output was probably
generated with this bug in place.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to