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

Side by Side Diff: src/IceInstMIPS32.cpp

Issue 2122043002: Subzero, MIPS32: Extend InstMIPS32Mov to support different data types (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Change as suggested by Simon Dardis Created 4 years, 5 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 | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('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/IceInstMips32.cpp - Mips32 instruction implementation --===// 1 //===- subzero/src/IceInstMips32.cpp - Mips32 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 /// \file 10 /// \file
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 ActualOpcode = "mov.s"; 592 ActualOpcode = "mov.s";
593 break; 593 break;
594 case IceType_f64: 594 case IceType_f64:
595 ActualOpcode = "mov.d"; 595 ActualOpcode = "mov.d";
596 break; 596 break;
597 case IceType_i1: 597 case IceType_i1:
598 case IceType_i8: 598 case IceType_i8:
599 case IceType_i16: 599 case IceType_i16:
600 case IceType_i32: 600 case IceType_i32:
601 Str << "\t" 601 Str << "\t"
602 "add" 602 "or"
603 "\t"; 603 "\t";
604 getDest()->emit(Func); 604 getDest()->emit(Func);
605 Str << ", $zero, "; 605 Str << ", $zero, ";
606 getSrc(0)->emit(Func); 606 getSrc(0)->emit(Func);
607 return; 607 return;
608 default: 608 default:
609 UnimplementedError(getFlags()); 609 UnimplementedError(getFlags());
610 return; 610 return;
611 } 611 }
612 612
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 getSrc(0)->emit(Func); 673 getSrc(0)->emit(Func);
674 return; 674 return;
675 } 675 }
676 676
677 // stack to stack 677 // stack to stack
678 llvm::report_fatal_error("mov cant copy stack to stack."); 678 llvm::report_fatal_error("mov cant copy stack to stack.");
679 } 679 }
680 680
681 } // end of namespace MIPS32 681 } // end of namespace MIPS32
682 } // end of namespace Ice 682 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698