Add tablegen support for vdup_lane

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman 2010-08-06 01:24:11 +00:00
parent e6a4a36096
commit 59d70cbc29

View File

@ -145,6 +145,9 @@ static char ModType(const char mod, char type, bool &quad, bool &poly,
type = 'f';
usgn = false;
break;
case 'g':
quad = false;
break;
case 'w':
type = Widen(type);
quad = true;
@ -686,7 +689,7 @@ static unsigned GetNeonEnum(const std::string &proto, StringRef typestr) {
bool cnst = false;
bool pntr = false;
// base type to get the type string for.
// Base type to get the type string for.
char type = ClassifyType(typestr, quad, poly, usgn);
// Based on the modifying character, change the type and width if necessary.
@ -694,7 +697,7 @@ static unsigned GetNeonEnum(const std::string &proto, StringRef typestr) {
if (usgn)
ret |= 0x08;
if (quad)
if (quad && proto[1] != 'g')
ret |= 0x10;
switch (type) {