OSDN Git Service

Fix insert/extract element vector operations to check that literal
authorKarl Schimpf <kschimpf@google.com>
Wed, 29 Oct 2014 21:32:07 +0000 (14:32 -0700)
committerKarl Schimpf <kschimpf@google.com>
Wed, 29 Oct 2014 21:32:07 +0000 (14:32 -0700)
commitaff9fa2c45e39301b6f8ffb27ba8e0d0c588032e
treedbaf620fb125a9c72620d0b8c07a394959e8d769
parentb262c5e0b110e63ec706213adf0af202274c442e
Fix insert/extract element vector operations to check that literal
indices are used.

Also introduces a "error" instruction method for inserting an instruction
placeholder when an instruction is erroneous, and the type of generated
value is known.

BUG=
R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/686913003
src/PNaClTranslator.cpp
tests_lit/reader_tests/insertextract-err.ll [new file with mode: 0644]
tests_lit/reader_tests/insertextract.ll