forked from OSchip/llvm-project
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:
parent
fc305988b8
commit
4e22a38759
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue