mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add tests for isnan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14149 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01cdb1b367
commit
7ba02f1115
@ -4,6 +4,7 @@ declare double %cos(double)
|
||||
declare double %sin(double)
|
||||
declare double %tan(double)
|
||||
declare double %sqrt(double)
|
||||
declare bool %llvm.isnan(double)
|
||||
|
||||
double %T() {
|
||||
%A = call double %cos(double 0.0)
|
||||
@ -15,3 +16,10 @@ double %T() {
|
||||
%c = add double %b, %D
|
||||
ret double %c
|
||||
}
|
||||
|
||||
bool %TNAN() {
|
||||
%A = call bool %llvm.isnan(double 0x7FF8000000000000) ;; it's a nan!
|
||||
%B = call bool %llvm.isnan(double 123.0)
|
||||
%C = or bool %A, %B
|
||||
ret bool %C
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user