mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-20 08:54:08 +00:00
70ad3951e4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143457 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
399 B
LLVM
19 lines
399 B
LLVM
; 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
|
|
}
|