[llvm] r358065 - Fixup r358063
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 02:31:29 PDT 2019
Author: rovka
Date: Wed Apr 10 02:31:28 2019
New Revision: 358065
URL: http://llvm.org/viewvc/llvm-project?rev=358065&view=rev
Log:
Fixup r358063
Fix warning/error about mixed signedness.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp?rev=358065&r1=358064&r2=358065&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstructionSelector.cpp Wed Apr 10 02:31:28 2019
@@ -814,7 +814,7 @@ void ARMInstructionSelector::renderVFPF3
"Expected G_FCONSTANT");
APFloat FPImmValue = OldInst.getOperand(1).getFPImm()->getValueAPF();
- uint32_t FPImmEncoding = ARM_AM::getFP32Imm(FPImmValue);
+ int FPImmEncoding = ARM_AM::getFP32Imm(FPImmValue);
assert(FPImmEncoding != -1 && "Invalid immediate value");
NewInstBuilder.addImm(FPImmEncoding);
@@ -826,7 +826,7 @@ void ARMInstructionSelector::renderVFPF6
"Expected G_FCONSTANT");
APFloat FPImmValue = OldInst.getOperand(1).getFPImm()->getValueAPF();
- uint64_t FPImmEncoding = ARM_AM::getFP64Imm(FPImmValue);
+ int FPImmEncoding = ARM_AM::getFP64Imm(FPImmValue);
assert(FPImmEncoding != -1 && "Invalid immediate value");
NewInstBuilder.addImm(FPImmEncoding);
More information about the llvm-commits
mailing list