Change the 'x' type modifier for Neon intrinsics to force a signed integer.

This makes it symmetric with the 'u' modifier that forces an unsigned type.
This is needed for unsigned vector shifts, where the shift amount still needs
to be signed.  PR8482 (Radar 8603521).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson 2010-11-18 21:43:22 +00:00
parent d0c3817669
commit 181b76d503

View File

@ -134,7 +134,12 @@ static char ModType(const char mod, char type, bool &quad, bool &poly,
break;
case 'u':
usgn = true;
poly = false;
if (type == 'f')
type = 'i';
break;
case 'x':
usgn = false;
poly = false;
if (type == 'f')
type = 'i';