[LLParser] Parse vector GEP constant expression correctly
authorMichael Kuperstein <mkuper@google.com>
Wed, 21 Dec 2016 18:29:47 +0000 (18:29 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 21 Dec 2016 18:29:47 +0000 (18:29 +0000)
commit88f15eedbbf49c88f4386e0400936b8874fd5717
tree11d9754154f8ebe160c60bc3a38022c611c0ec16
parentdd92c78669da0c3e0c285b0723ee5ecba12ca1df
[LLParser] Parse vector GEP constant expression correctly

The constantexpr parsing was too constrained and rejected legal vector GEPs.
This relaxes it to be similar to the ones for instruction parsing.

This fixes PR30816.

Differential Revision: https://reviews.llvm.org/D28013

llvm-svn: 290261
llvm/lib/AsmParser/LLParser.cpp
llvm/test/Assembler/getelementptr_vec_ce.ll [new file with mode: 0644]
llvm/test/Assembler/getelementptr_vec_ce2.ll [new file with mode: 0644]