mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 01:54:50 +00:00
14 lines
251 B
LLVM
14 lines
251 B
LLVM
|
; RUN: llvm-as < %s | llc
|
||
|
|
||
|
|
||
|
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
|
||
|
}
|