Add a test for llvm.sqrt

llvm-svn: 21628
This commit is contained in:
Chris Lattner 2005-04-30 04:07:15 +00:00
parent 1c636f1118
commit 7100fcde6c
1 changed files with 13 additions and 0 deletions

View File

@ -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
}