x86: Use unsigned short to compute pextrw result
Use unsigned short to compute the zero-extended pextrw result. PR target/98495 * gcc.target/i386/sse2-mmx-pextrw.c (compute_correct_result): Use unsigned short to compute pextrw result.
This commit is contained in:
parent
e2e2f3f2c9
commit
f6dd35cf93
@ -32,7 +32,7 @@ test_pextrw (__m64 *i, unsigned int imm, int *r)
|
||||
static void
|
||||
compute_correct_result (__m64 *src_p, unsigned int imm, int *res_p)
|
||||
{
|
||||
short *src = (short *) src_p;
|
||||
unsigned short *src = (unsigned short *) src_p;
|
||||
if (imm < 4)
|
||||
*res_p = src[imm];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user