mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
I misled Alkis: LLVM should have isnan, not isunordered.
isunordered(X, Y) === isnan(X) | isnan(Y) Remove isunordered, add isnan. Modernize testcase llvm-svn: 14133
This commit is contained in:
parent
b07bf147cd
commit
145f2e2936
@ -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…
Reference in New Issue
Block a user