parent
1c636f1118
commit
7100fcde6c
|
@ -0,0 +1,13 @@
|
|||
; 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
|
||||
}
|
Loading…
Reference in New Issue