summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/exp2.ll
blob: e9ff0a5574892bddf0db2b638b71d359f2472102 (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.exp2.f64(double)

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

declare float @llvm.exp2.f32(float)

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