| ; 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 @_Unwind_Resume(...) |
| |
| ; CHECK: declare void @__umodti3(...) |
| |
| ; CHECK: declare void @acosf(...) |
| |
| ; CHECK: declare nofpclass(ninf nsub nnorm) double @sqrt(double) [[SQRT_ATTRS:#[0-9]+]] |
| |
| ; CHECK: declare nofpclass(ninf nsub nnorm) float @sqrtf(float) [[SQRT_ATTRS:#[0-9]+]] |
| |
| ; CHECK: declare void @truncl(...) |
| |