"Strike that, reverse it." -- Mr. Wonka.
authorEric Christopher <echristo@apple.com>
Thu, 9 Sep 2010 20:36:19 +0000 (20:36 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 9 Sep 2010 20:36:19 +0000 (20:36 +0000)
Truncate when truncating, extend when extending.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113536 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index c7673ecc60ba370ac6f881581b8b9014f622b852..54f3dfba79771db52b4351570881ffaffb54f5ac 100644 (file)
@@ -738,7 +738,7 @@ bool ARMFastISel::ARMSelectFPExt(const Instruction *I) {
   unsigned Result = createResultReg(ARM::DPRRegisterClass);
 
   AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
-                          TII.get(ARM::VCVTSD), Result)
+                          TII.get(ARM::VCVTDS), Result)
                   .addReg(Op));
   UpdateValueMap(I, Result);
   return true;
@@ -758,7 +758,7 @@ bool ARMFastISel::ARMSelectFPTrunc(const Instruction *I) {
   unsigned Result = createResultReg(ARM::SPRRegisterClass);
 
   AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
-                          TII.get(ARM::VCVTDS), Result)
+                          TII.get(ARM::VCVTSD), Result)
                   .addReg(Op));
   UpdateValueMap(I, Result);
   return true;