Skip to content

Commit 17a21fd

Browse files
committed
XCore: Add iprintf to RuntimeLibcalls system library
1 parent 0f391f4 commit 17a21fd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

llvm/include/llvm/IR/RuntimeLibcalls.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3349,6 +3349,7 @@ def XCoreSystemLibrary
33493349
(add DefaultRuntimeLibcallImpls,
33503350
exp10f, exp10, exp10l_f128,
33513351
__memcpy_4,
3352+
iprintf, siprintf, fiprintf,
33523353
LibcallImpls<(add LibmF128Libcalls, LibmF128FiniteLibcalls), isGNUEnvironment>
33533354
)>;
33543355

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
; REQUIRES: webassembly-registered-target
2+
; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=xcore < %s | FileCheck %s
3+
4+
; CHECK: declare void @fiprintf(...)
5+
; CHECK: declare void @iprintf(...)
6+
; CHECK: declare void @siprintf(...)

0 commit comments

Comments
 (0)