Add x86 vector packing instructions.
BUG=swiftshader:15
Change-Id: I0d40fab6287130143693e8e4752859b7142a503d
Reviewed-on: https://chromium-review.googlesource.com/394007
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
diff --git a/src/IceInstX86BaseImpl.h b/src/IceInstX86BaseImpl.h
index 1bc2a0c..5c6c005 100644
--- a/src/IceInstX86BaseImpl.h
+++ b/src/IceInstX86BaseImpl.h
@@ -2607,7 +2607,8 @@
assert(this->getSrcSize() == 2);
// pextrb and pextrd are SSE4.1 instructions.
Str << "\t" << this->Opcode
- << Traits::TypeAttributes[this->getSrc(0)->getType()].PackString << "\t";
+ << Traits::TypeAttributes[this->getSrc(0)->getType()].IntegralString
+ << "\t";
this->getSrc(1)->emit(Func);
Str << ", ";
this->getSrc(0)->emit(Func);
@@ -2646,7 +2647,8 @@
Ostream &Str = Func->getContext()->getStrEmit();
assert(this->getSrcSize() == 3);
Str << "\t" << this->Opcode
- << Traits::TypeAttributes[this->getDest()->getType()].PackString << "\t";
+ << Traits::TypeAttributes[this->getDest()->getType()].IntegralString
+ << "\t";
this->getSrc(2)->emit(Func);
Str << ", ";
Operand *Src1 = this->getSrc(1);