From ccbc17b3a34ff4b2452fada22cbf69e50ea3c930 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 22 May 2009 17:38:41 +0000 Subject: [PATCH] Only 64-bit targets support TImode libcalls. Disable the TImode shift libcalls for ARM. This fixes rdar://6908807. llvm-svn: 72269 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index e06846559c3d..c0fd9dcd1072 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -137,6 +137,11 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) } } + // These libcalls are not available in 32-bit. + setLibcallName(RTLIB::SHL_I128, 0); + setLibcallName(RTLIB::SRL_I128, 0); + setLibcallName(RTLIB::SRA_I128, 0); + if (Subtarget->isThumb()) addRegisterClass(MVT::i32, ARM::tGPRRegisterClass); else