| OLD | NEW |
| 1 //===- subzero/src/IceInstX8632.cpp - X86-32 instruction implementation ---===// | 1 //===- subzero/src/IceInstX8632.cpp - X86-32 instruction implementation ---===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file implements the InstX8632 and OperandX8632 classes, | 10 // This file implements the InstX8632 and OperandX8632 classes, |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 | 537 |
| 538 void InstX8632Test::dump(const Cfg *Func) const { | 538 void InstX8632Test::dump(const Cfg *Func) const { |
| 539 Ostream &Str = Func->getContext()->getStrDump(); | 539 Ostream &Str = Func->getContext()->getStrDump(); |
| 540 Str << "test." << getSrc(0)->getType() << " "; | 540 Str << "test." << getSrc(0)->getType() << " "; |
| 541 dumpSources(Func); | 541 dumpSources(Func); |
| 542 } | 542 } |
| 543 | 543 |
| 544 void InstX8632Store::emit(const Cfg *Func) const { | 544 void InstX8632Store::emit(const Cfg *Func) const { |
| 545 Ostream &Str = Func->getContext()->getStrEmit(); | 545 Ostream &Str = Func->getContext()->getStrEmit(); |
| 546 assert(getSrcSize() == 2); | 546 assert(getSrcSize() == 2); |
| 547 Str << "\tmov\t"; | 547 Str << "\tmov" << TypeX8632Attributes[getSrc(0)->getType()].SdSsString |
| 548 << "\t"; |
| 548 getSrc(1)->emit(Func); | 549 getSrc(1)->emit(Func); |
| 549 Str << ", "; | 550 Str << ", "; |
| 550 getSrc(0)->emit(Func); | 551 getSrc(0)->emit(Func); |
| 551 Str << "\n"; | 552 Str << "\n"; |
| 552 } | 553 } |
| 553 | 554 |
| 554 void InstX8632Store::dump(const Cfg *Func) const { | 555 void InstX8632Store::dump(const Cfg *Func) const { |
| 555 Ostream &Str = Func->getContext()->getStrDump(); | 556 Ostream &Str = Func->getContext()->getStrDump(); |
| 556 Str << "mov." << getSrc(0)->getType() << " "; | 557 Str << "mov." << getSrc(0)->getType() << " "; |
| 557 getSrc(1)->dump(Func); | 558 getSrc(1)->dump(Func); |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 default: | 860 default: |
| 860 Str << "???"; | 861 Str << "???"; |
| 861 break; | 862 break; |
| 862 } | 863 } |
| 863 Str << "("; | 864 Str << "("; |
| 864 Var->dump(Func); | 865 Var->dump(Func); |
| 865 Str << ")"; | 866 Str << ")"; |
| 866 } | 867 } |
| 867 | 868 |
| 868 } // end of namespace Ice | 869 } // end of namespace Ice |
| OLD | NEW |