aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:14:08 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-03 13:14:08 +0000
commitc31642f7af64bfaed36064b52a5cb2366fd01064 (patch)
tree98f78f5b01c39c51b5444aac87dcc012bf20bf99 /lib/CodeGen/SelectionDAG
parent2f25c2c63fdc46c3b5b093b5cbdc6729f12a413a (diff)
downloadexternal_llvm-c31642f7af64bfaed36064b52a5cb2366fd01064.zip
external_llvm-c31642f7af64bfaed36064b52a5cb2366fd01064.tar.gz
external_llvm-c31642f7af64bfaed36064b52a5cb2366fd01064.tar.bz2
Proper name 16 bit libcalls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 0e5e0c0..9592747 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -51,19 +51,19 @@ TLSModel::Model getTLSModel(const GlobalValue *GV, Reloc::Model reloc) {
/// InitLibcallNames - Set default libcall names.
///
static void InitLibcallNames(const char **Names) {
- Names[RTLIB::SHL_I16] = "__ashli16";
+ Names[RTLIB::SHL_I16] = "__ashlhi3";
Names[RTLIB::SHL_I32] = "__ashlsi3";
Names[RTLIB::SHL_I64] = "__ashldi3";
Names[RTLIB::SHL_I128] = "__ashlti3";
- Names[RTLIB::SRL_I16] = "__lshri16";
+ Names[RTLIB::SRL_I16] = "__lshrhi3";
Names[RTLIB::SRL_I32] = "__lshrsi3";
Names[RTLIB::SRL_I64] = "__lshrdi3";
Names[RTLIB::SRL_I128] = "__lshrti3";
- Names[RTLIB::SRA_I16] = "__ashri16";
+ Names[RTLIB::SRA_I16] = "__ashrhi3";
Names[RTLIB::SRA_I32] = "__ashrsi3";
Names[RTLIB::SRA_I64] = "__ashrdi3";
Names[RTLIB::SRA_I128] = "__ashrti3";
- Names[RTLIB::MUL_I16] = "__muli16";
+ Names[RTLIB::MUL_I16] = "__mulhi3";
Names[RTLIB::MUL_I32] = "__mulsi3";
Names[RTLIB::MUL_I64] = "__muldi3";
Names[RTLIB::MUL_I128] = "__multi3";