diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-11 02:29:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-11 02:29:57 +0000 |
commit | 86ee77668167c985c240a098772b44c9376a89d9 (patch) | |
tree | f2e8e82fce189f1d3af61336a095159d5820db4f /test/Feature/intrinsics.ll | |
parent | 137cc4fc8c549c805e817095e2d82776a2af8095 (diff) | |
download | llvm-86ee77668167c985c240a098772b44c9376a89d9.tar.gz llvm-86ee77668167c985c240a098772b44c9376a89d9.tar.bz2 llvm-86ee77668167c985c240a098772b44c9376a89d9.tar.xz |
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
Diffstat (limited to 'test/Feature/intrinsics.ll')
-rw-r--r-- | test/Feature/intrinsics.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/Feature/intrinsics.ll b/test/Feature/intrinsics.ll index 17b935ebc9..53a78b5417 100644 --- a/test/Feature/intrinsics.ll +++ b/test/Feature/intrinsics.ll @@ -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 - +} |