OLD | NEW |
1 // | 1 // |
2 // The Subzero Code Generator | 2 // The Subzero Code Generator |
3 // | 3 // |
4 // This file is distributed under the University of Illinois Open Source | 4 // This file is distributed under the University of Illinois Open Source |
5 // License. See LICENSE.TXT for details. | 5 // License. See LICENSE.TXT for details. |
6 // | 6 // |
7 //===----------------------------------------------------------------------===// | 7 //===----------------------------------------------------------------------===// |
8 /// | 8 /// |
9 /// \file | 9 /// \file |
10 /// \brief Implements the TargetLoweringMIPS32 class, which consists almost | 10 /// \brief Implements the TargetLoweringMIPS32 class, which consists almost |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 case InstCast::Trunc: { | 1113 case InstCast::Trunc: { |
1114 if (Src0Ty == IceType_i64) | 1114 if (Src0Ty == IceType_i64) |
1115 Src0 = loOperand(Src0); | 1115 Src0 = loOperand(Src0); |
1116 Variable *Src0R = legalizeToReg(Src0); | 1116 Variable *Src0R = legalizeToReg(Src0); |
1117 Variable *T = makeReg(DestTy); | 1117 Variable *T = makeReg(DestTy); |
1118 _mov(T, Src0R); | 1118 _mov(T, Src0R); |
1119 _mov(Dest, T); | 1119 _mov(Dest, T); |
1120 break; | 1120 break; |
1121 } | 1121 } |
1122 case InstCast::Fptrunc: | 1122 case InstCast::Fptrunc: |
| 1123 // Use _cvt_d_s |
1123 UnimplementedLoweringError(this, Instr); | 1124 UnimplementedLoweringError(this, Instr); |
1124 break; | 1125 break; |
1125 case InstCast::Fpext: { | 1126 case InstCast::Fpext: { |
| 1127 // Use _cvt_s_d |
1126 UnimplementedLoweringError(this, Instr); | 1128 UnimplementedLoweringError(this, Instr); |
1127 break; | 1129 break; |
1128 } | 1130 } |
1129 case InstCast::Fptosi: | 1131 case InstCast::Fptosi: |
1130 UnimplementedLoweringError(this, Instr); | 1132 UnimplementedLoweringError(this, Instr); |
1131 break; | 1133 break; |
1132 case InstCast::Fptoui: | 1134 case InstCast::Fptoui: |
1133 UnimplementedLoweringError(this, Instr); | 1135 UnimplementedLoweringError(this, Instr); |
1134 break; | 1136 break; |
1135 case InstCast::Sitofp: | 1137 case InstCast::Sitofp: |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 Str << "\t.set\t" | 1701 Str << "\t.set\t" |
1700 << "nomips16\n"; | 1702 << "nomips16\n"; |
1701 } | 1703 } |
1702 | 1704 |
1703 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; | 1705 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; |
1704 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; | 1706 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; |
1705 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; | 1707 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; |
1706 | 1708 |
1707 } // end of namespace MIPS32 | 1709 } // end of namespace MIPS32 |
1708 } // end of namespace Ice | 1710 } // end of namespace Ice |
OLD | NEW |