mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 13:09:52 +00:00
Add a test for llvm.sqrt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eed37bad01
commit
459ced2657
13
test/CodeGen/Generic/intrinsics.ll
Normal file
13
test/CodeGen/Generic/intrinsics.ll
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user