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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 2351893004: Subzero, MIPS32: Intrinsic call Trap (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 3 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/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 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 return; 2883 return;
2884 } 2884 }
2885 case Intrinsics::Stacksave: { 2885 case Intrinsics::Stacksave: {
2886 UnimplementedLoweringError(this, Instr); 2886 UnimplementedLoweringError(this, Instr);
2887 return; 2887 return;
2888 } 2888 }
2889 case Intrinsics::Stackrestore: { 2889 case Intrinsics::Stackrestore: {
2890 UnimplementedLoweringError(this, Instr); 2890 UnimplementedLoweringError(this, Instr);
2891 return; 2891 return;
2892 } 2892 }
2893 case Intrinsics::Trap: 2893 case Intrinsics::Trap: {
2894 UnimplementedLoweringError(this, Instr); 2894 const uint32_t TrapCodeZero = 0;
2895 _teq(getZero(), getZero(), TrapCodeZero);
2895 return; 2896 return;
2897 }
2896 case Intrinsics::UnknownIntrinsic: 2898 case Intrinsics::UnknownIntrinsic:
2897 Func->setError("Should not be lowering UnknownIntrinsic"); 2899 Func->setError("Should not be lowering UnknownIntrinsic");
2898 return; 2900 return;
2899 } 2901 }
2900 return; 2902 return;
2901 } 2903 }
2902 2904
2903 void TargetMIPS32::lowerLoad(const InstLoad *Instr) { 2905 void TargetMIPS32::lowerLoad(const InstLoad *Instr) {
2904 // A Load instruction can be treated the same as an Assign instruction, after 2906 // A Load instruction can be treated the same as an Assign instruction, after
2905 // the source operand is transformed into an OperandMIPS32Mem operand. 2907 // the source operand is transformed into an OperandMIPS32Mem operand.
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
3714 Str << "\t.set\t" 3716 Str << "\t.set\t"
3715 << "nomips16\n"; 3717 << "nomips16\n";
3716 } 3718 }
3717 3719
3718 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; 3720 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM];
3719 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; 3721 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM];
3720 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; 3722 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM];
3721 3723
3722 } // end of namespace MIPS32 3724 } // end of namespace MIPS32
3723 } // end of namespace Ice 3725 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698