llvm.org GIT mirror llvm / 4391bb7
Simplify definition of FP move instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141476 91177308-0d34-0410-b5e6-96231b3b80d8 Akira Hatanaka 8 years ago
2 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
162162 [(set FGR32:$fs, (bitconvert CPURegs:$rt))]>;
163163 }
164164
165 def FMOV_S32 : FFR<0x11, 0b000110, 0x0, (outs FGR32:$fd), (ins FGR32:$fs),
166 "mov.s\t$fd, $fs", []>;
167 def FMOV_D32 : FFR<0x11, 0b000110, 0x1, (outs AFGR64:$fd), (ins AFGR64:$fs),
168 "mov.d\t$fd, $fs", []>;
165 def FMOV_S : FFR1<0x6, 16, "mov", "s", FGR32, FGR32>;
166 def FMOV_D32 : FFR1<0x6, 17, "mov", "d", AFGR64, AFGR64>,
167 Requires<[NotFP64bit]>;
168 def FMOV_D64 : FFR1<0x6, 17, "mov", "d", FGR64, FGR64>,
169 Requires<[IsFP64bit]>;
169170
170171 /// Floating Point Memory Instructions
171172 let Predicates = [IsNotSingleFloat] in {
118118 Opc = Mips::MTLO, DestReg = 0;
119119 }
120120 else if (Mips::FGR32RegClass.contains(DestReg, SrcReg))
121 Opc = Mips::FMOV_S32;
121 Opc = Mips::FMOV_S;
122122 else if (Mips::AFGR64RegClass.contains(DestReg, SrcReg))
123123 Opc = Mips::FMOV_D32;
124124 else if (Mips::CCRRegClass.contains(DestReg, SrcReg))