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).

llvm-svn: 119742
This commit is contained in:
Bob Wilson 2010-11-18 21:43:22 +00:00
parent fc305988b8
commit 4e22a38759
1 changed files with 5 additions and 0 deletions

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';