From 2f95461ee2edf896ef4a45dff40b9f20bcb31de3 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72269 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMISelLowering.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index e06846559c3..c0fd9dcd107 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/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 -- 2.34.1