1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/CodeGen/Generic/intrinsics.ll

32 lines
666 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | llc
2005-04-30 06:41:27 +02:00
;; SQRT
declare float %llvm.sqrt(float)
declare double %llvm.sqrt(double)
double %test_sqrt(float %F) {
%G = call float %llvm.sqrt(float %F)
%H = cast float %G to double
%I = call double %llvm.sqrt(double %H)
ret double %I
}
2005-04-30 06:41:27 +02:00
; SIN
declare float %sinf(float)
declare double %sin(double)
double %test_sin(float %F) {
%G = call float %sinf(float %F)
%H = cast float %G to double
%I = call double %sin(double %H)
ret double %I
}
; COS
declare float %cosf(float)
declare double %cos(double)
double %test_cos(float %F) {
%G = call float %cosf(float %F)
%H = cast float %G to double
%I = call double %cos(double %H)
ret double %I
}