diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index 671d0f315f5fb..09e33d7f89e8a 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -3349,6 +3349,7 @@ def XCoreSystemLibrary (add DefaultRuntimeLibcallImpls, exp10f, exp10, exp10l_f128, __memcpy_4, + iprintf, siprintf, fiprintf, LibcallImpls<(add LibmF128Libcalls, LibmF128FiniteLibcalls), isGNUEnvironment> )>; diff --git a/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll new file mode 100644 index 0000000000000..c1326ac980f4b --- /dev/null +++ b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll @@ -0,0 +1,6 @@ +; REQUIRES: webassembly-registered-target +; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=xcore < %s | FileCheck %s + +; CHECK: declare void @fiprintf(...) +; CHECK: declare void @iprintf(...) +; CHECK: declare void @siprintf(...)