Chromium Code Reviews| Index: src/IceInstX8632.cpp |
| diff --git a/src/IceInstX8632.cpp b/src/IceInstX8632.cpp |
| index 1454778f39907fa6f3a4de86ccb53c1b24d6db46..961f2fca9bac8939f062a4cba3677aa730f15c62 100644 |
| --- a/src/IceInstX8632.cpp |
| +++ b/src/IceInstX8632.cpp |
| @@ -593,7 +593,8 @@ template <> void InstX8632Pblendvb::emit(const Cfg *Func) const { |
| template <> void InstX8632Imul::emit(const Cfg *Func) const { |
| Ostream &Str = Func->getContext()->getStrEmit(); |
| assert(getSrcSize() == 2); |
| - if (getDest()->getType() == IceType_i8) { |
| + if (getDest()->getType() == IceType_i1 || |
|
jvoung (off chromium)
2014/09/05 23:07:15
I don't think arithmetic is allowed on i1, only an
Jim Stichnoth
2014/09/05 23:46:48
Interesting, I didn't realize we were simplifying
|
| + getDest()->getType() == IceType_i8) { |
| // The 8-bit version of imul only allows the form "imul r/m8". |
| Variable *Src0 = llvm::dyn_cast<Variable>(getSrc(0)); |
| (void)Src0; |