mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +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…
Reference in New Issue
Block a user