diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-07-29 15:49:41 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-07-29 15:49:41 +0000 |
commit | 5bc1ea0736a5785ed596d58beeff2ab23909e33d (patch) | |
tree | 873c527b697e72ea9a3cc6b65f14717777db584a /lib/AsmParser/llvmAsmParser.y.cvs | |
parent | 75cf9cc527c6ef3097dcefab173e93716a5a3e4a (diff) |
Add vector shifts to the IR, patch by Eli Friedman.
CodeGen & Clang work coming next.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y.cvs')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y.cvs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y.cvs b/lib/AsmParser/llvmAsmParser.y.cvs index b9d561633c..69c145980f 100644 --- a/lib/AsmParser/llvmAsmParser.y.cvs +++ b/lib/AsmParser/llvmAsmParser.y.cvs @@ -1945,7 +1945,7 @@ ConstExpr: CastOps '(' ConstVal TO Types ')' { if ($3->getType() != $5->getType()) GEN_ERROR("Logical operator types must match"); if (!$3->getType()->isInteger()) { - if (Instruction::isShift($1) || !isa<VectorType>($3->getType()) || + if (!isa<VectorType>($3->getType()) || !cast<VectorType>($3->getType())->getElementType()->isInteger()) GEN_ERROR("Logical operator requires integral operands"); } @@ -3013,7 +3013,7 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*$2)->getDescription()); if (!(*$2)->isInteger()) { - if (Instruction::isShift($1) || !isa<VectorType>($2->get()) || + if (!isa<VectorType>($2->get()) || !cast<VectorType>($2->get())->getElementType()->isInteger()) GEN_ERROR("Logical operator requires integral operands"); } |