OSDN Git Service

Fix sign masks of narrow vectors.
authorNicolas Capens <capn@google.com>
Wed, 26 Jul 2017 17:50:04 +0000 (13:50 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 26 Jul 2017 20:12:10 +0000 (20:12 +0000)
commit0f70a7fa78b484008ac440352979e8bd62e4f0cd
treef4f2334ae3e07ae4d0414ab87b65541b9b1ae117
parent9f737d3718ea156d8a91bcef87022df3a6b7aee6
Fix sign masks of narrow vectors.

The SignMask intrinsic returns the most significant bit of each byte in
a 128-bit vector. For 'emulated' 8-byte vectors we expect the upper
half to be ignored.

Change-Id: I994e35fb9c21710c35a89add42297c3c9bad07a4
Reviewed-on: https://swiftshader-review.googlesource.com/10988
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/Reactor/SubzeroReactor.cpp