| 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 4410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4421 if (DestTy == IceType_f32) { | 4421 if (DestTy == IceType_f32) { |
| 4422 _sqrt_s(T, legalizeToReg(Instr->getArg(0))); | 4422 _sqrt_s(T, legalizeToReg(Instr->getArg(0))); |
| 4423 } else { | 4423 } else { |
| 4424 _sqrt_d(T, legalizeToReg(Instr->getArg(0))); | 4424 _sqrt_d(T, legalizeToReg(Instr->getArg(0))); |
| 4425 } | 4425 } |
| 4426 _mov(Dest, T); | 4426 _mov(Dest, T); |
| 4427 } | 4427 } |
| 4428 return; | 4428 return; |
| 4429 } | 4429 } |
| 4430 case Intrinsics::Stacksave: { | 4430 case Intrinsics::Stacksave: { |
| 4431 UnimplementedLoweringError(this, Instr); | 4431 Variable *SP = getPhysicalRegister(RegMIPS32::Reg_SP); |
| 4432 _mov(Dest, SP); |
| 4432 return; | 4433 return; |
| 4433 } | 4434 } |
| 4434 case Intrinsics::Stackrestore: { | 4435 case Intrinsics::Stackrestore: { |
| 4435 UnimplementedLoweringError(this, Instr); | 4436 if (getFlags().getUseSandboxing()) { |
| 4437 UnimplementedLoweringError(this, Instr); |
| 4438 return; |
| 4439 } |
| 4440 Variable *Val = legalizeToReg(Instr->getArg(0)); |
| 4441 Variable *SP = getPhysicalRegister(RegMIPS32::Reg_SP); |
| 4442 _mov_redefined(SP, Val); |
| 4436 return; | 4443 return; |
| 4437 } | 4444 } |
| 4438 case Intrinsics::Trap: { | 4445 case Intrinsics::Trap: { |
| 4439 const uint32_t TrapCodeZero = 0; | 4446 const uint32_t TrapCodeZero = 0; |
| 4440 _teq(getZero(), getZero(), TrapCodeZero); | 4447 _teq(getZero(), getZero(), TrapCodeZero); |
| 4441 return; | 4448 return; |
| 4442 } | 4449 } |
| 4443 case Intrinsics::LoadSubVector: { | 4450 case Intrinsics::LoadSubVector: { |
| 4444 UnimplementedLoweringError(this, Instr); // Not required for PNaCl | 4451 UnimplementedLoweringError(this, Instr); // Not required for PNaCl |
| 4445 return; | 4452 return; |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5332 Str << "\t.set\t" | 5339 Str << "\t.set\t" |
| 5333 << "noat\n"; | 5340 << "noat\n"; |
| 5334 } | 5341 } |
| 5335 | 5342 |
| 5336 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; | 5343 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; |
| 5337 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; | 5344 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; |
| 5338 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; | 5345 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; |
| 5339 | 5346 |
| 5340 } // end of namespace MIPS32 | 5347 } // end of namespace MIPS32 |
| 5341 } // end of namespace Ice | 5348 } // end of namespace Ice |
| OLD | NEW |