aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/basic.ll
blob: ee3a0539bf3009b299cf12d2f107ec27843f6905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s

; Check an already declared function
; CHECK: declare float @logf(float)
declare float @logf(float)

; Check an already defined function
; CHECK: define float @sinf(float %x) {
define float @sinf(float %x) {
  ret float %x
}

; CHECK: declare void @acosf(...)
; CHECK: declare void @__umodti3(...)