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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 2455933002: Subzero, MIPS32: Stacksave/Stackrestore implementation (Closed)
Patch Set: Enabled tests in nacl-other-intrinsics.ll Created 4 years, 1 month 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 | « src/IceTargetLoweringMIPS32.h ('k') | tests_lit/llvm2ice_tests/nacl-other-intrinsics.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 // 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
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
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
OLDNEW
« no previous file with comments | « src/IceTargetLoweringMIPS32.h ('k') | tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698