summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-06 20:10:52 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-06 20:10:52 +0000
commit8a102c21e313e14f4b5ea26fb63e326bb58686bb (patch)
tree99645818ef39e692866239465993303c0e65c8ff /llvm/lib/Target
parent481d5abf453adb26c28286c72fcbb9cd90df2c9e (diff)
downloadbcm5719-llvm-8a102c21e313e14f4b5ea26fb63e326bb58686bb.tar.gz
bcm5719-llvm-8a102c21e313e14f4b5ea26fb63e326bb58686bb.zip
There is no portable std::abs overload for int64_t, use the llvm::abs64
which exists for this purpose. llvm-svn: 154199
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index c20ee674ce8..a5b0245345f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -8616,9 +8616,9 @@ bool ARMTargetLowering::isLegalAddressingMode(const AddrMode &AM,
bool ARMTargetLowering::isLegalICmpImmediate(int64_t Imm) const {
// Thumb2 and ARM modes can use cmn for negative immediates.
if (!Subtarget->isThumb())
- return ARM_AM::getSOImmVal(std::abs(Imm)) != -1;
+ return ARM_AM::getSOImmVal(llvm::abs64(Imm)) != -1;
if (Subtarget->isThumb2())
- return ARM_AM::getT2SOImmVal(std::abs(Imm)) != -1;
+ return ARM_AM::getT2SOImmVal(llvm::abs64(Imm)) != -1;
// Thumb1 doesn't have cmn, and only 8-bit immediates.
return Imm >= 0 && Imm <= 255;
}
OpenPOWER on IntegriCloud