mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add the isunordered intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
declare bool %llvm.isnan(float)
|
||||
declare bool %llvm.isnan(double)
|
||||
|
||||
declare bool %llvm.isunordered(float, float)
|
||||
declare bool %llvm.isunordered(double, double)
|
||||
|
||||
implementation
|
||||
|
||||
; Test llvm intrinsics
|
||||
@@ -9,5 +12,7 @@ implementation
|
||||
void %libm() {
|
||||
call bool %llvm.isnan(float 0.0)
|
||||
call bool %llvm.isnan(double 10.0)
|
||||
call bool %llvm.isunordered(float 0.0, float 1.0)
|
||||
call bool %llvm.isunordered(double 0.0, double 1.0)
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user