x86: Use unsigned short to compute pextrw result
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Jan 2021 18:57:20 +0000 (10:57 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Jan 2021 19:03:38 +0000 (11:03 -0800)
commitf6dd35cf9300ae482038c26655b3cee3e72cefb1
tree18399735a4575ba2e63261e1a6fb0c1c840c1e93
parente2e2f3f2c9400f4ce0dad941bb6c5aa4b799465b
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.
gcc/testsuite/gcc.target/i386/sse2-mmx-pextrw.c