summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-09-09 20:36:19 +0000
committerEric Christopher <echristo@apple.com>2010-09-09 20:36:19 +0000
commitef2fdd21418e0cdc5df963a063b0f940964fa208 (patch)
tree5a1f9abf8c7152e8935e7d918a90d82180e05523 /lib
parentf9a26b89f8815651048ed5518d99b484ac7c2ba0 (diff)
downloadllvm-ef2fdd21418e0cdc5df963a063b0f940964fa208.tar.gz
llvm-ef2fdd21418e0cdc5df963a063b0f940964fa208.tar.bz2
llvm-ef2fdd21418e0cdc5df963a063b0f940964fa208.tar.xz
"Strike that, reverse it." -- Mr. Wonka.
Truncate when truncating, extend when extending. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index c7673ecc60..54f3dfba79 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -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;