summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/log.ll
blob: e954ab28b28bcbcbc7bbccaee7b5a24939263111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llc < %s -march=xcore | FileCheck %s
declare double @llvm.log.f64(double)

define double @test(double %F) {
; CHECK: test:
; CHECK: bl log
        %result = call double @llvm.log.f64(double %F)
	ret double %result
}

declare float @llvm.log.f32(float)

define float @testf(float %F) {
; CHECK: testf:
; CHECK: bl logf
        %result = call float @llvm.log.f32(float %F)
	ret float %result
}