mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
I misled Alkis: LLVM should have isnan, not isunordered.
isunordered(X, Y) === isnan(X) | isnan(Y) Remove isunordered, add isnan. Modernize testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
137cc4fc8c
commit
86ee776681
@ -1,12 +1,13 @@
|
||||
declare bool "llvm.isunordered"(float, float)
|
||||
|
||||
declare bool %llvm.isnan(float)
|
||||
declare bool %llvm.isnan(double)
|
||||
|
||||
implementation
|
||||
|
||||
; Test llvm intrinsics
|
||||
;
|
||||
void "void"(int, int)
|
||||
begin
|
||||
%c = call bool %llvm.isunordered(float 0.0, float 1.0)
|
||||
void %libm() {
|
||||
call bool %llvm.isnan(float 0.0)
|
||||
call bool %llvm.isnan(double 10.0)
|
||||
ret void
|
||||
end
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user