OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |