Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: src/IceInstX8632.cpp

Issue 341683002: Add ss/sd suffix to InstX8632Store and legalize FP constants. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: another label Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698