PPCFastISel.cpp (263508) | PPCFastISel.cpp (266715) |
---|---|
1//===-- PPCFastISel.cpp - PowerPC FastISel implementation -----------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 878 unchanged lines hidden (view full) --- 887 if (!PPCEmitStore(MVT::i64, SrcReg, Addr)) 888 return 0; 889 890 // Load the integer value into an FPR. The kind of load used depends 891 // on a number of conditions. 892 unsigned LoadOpc = PPC::LFD; 893 894 if (SrcVT == MVT::i32) { | 1//===-- PPCFastISel.cpp - PowerPC FastISel implementation -----------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 878 unchanged lines hidden (view full) --- 887 if (!PPCEmitStore(MVT::i64, SrcReg, Addr)) 888 return 0; 889 890 // Load the integer value into an FPR. The kind of load used depends 891 // on a number of conditions. 892 unsigned LoadOpc = PPC::LFD; 893 894 if (SrcVT == MVT::i32) { |
895 Addr.Offset = 4; 896 if (!IsSigned) | 895 if (!IsSigned) { |
897 LoadOpc = PPC::LFIWZX; | 896 LoadOpc = PPC::LFIWZX; |
898 else if (PPCSubTarget.hasLFIWAX()) | 897 Addr.Offset = 4; 898 } else if (PPCSubTarget.hasLFIWAX()) { |
899 LoadOpc = PPC::LFIWAX; | 899 LoadOpc = PPC::LFIWAX; |
900 Addr.Offset = 4; 901 } |
|
900 } 901 902 const TargetRegisterClass *RC = &PPC::F8RCRegClass; 903 unsigned ResultReg = 0; 904 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) 905 return 0; 906 907 return ResultReg; --- 1329 unchanged lines hidden --- | 902 } 903 904 const TargetRegisterClass *RC = &PPC::F8RCRegClass; 905 unsigned ResultReg = 0; 906 if (!PPCEmitLoad(MVT::f64, ResultReg, Addr, RC, !IsSigned, LoadOpc)) 907 return 0; 908 909 return ResultReg; --- 1329 unchanged lines hidden --- |