1 ; RUN: llc < %s -march=avr | FileCheck %s
3 ; Checks that `sin` and `cos` nodes are expanded into calls to
4 ; the `sin` and `cos` runtime library functions.
5 ; On AVR, the only floats supported are 32-bits, and so the
6 ; function names have no `f` or `d` suffix.
8 declare float @llvm.sin.f32(float %x)
9 declare float @llvm.cos.f32(float %x)
11 define float @do_sin(float %a) {
12 ; CHECK-LABEL: do_sin:
14 %result = call float @llvm.sin.f32(float %a)
18 ; CHECK-LABEL: do_cos:
20 define float @do_cos(float %a) {
21 %result = call float @llvm.cos.f32(float %a)