diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-10-13 13:14:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-10-13 13:14:59 +0000 |
commit | 42b62f3f81b0c38954dd64b37cbb3c995f84073c (patch) | |
tree | 17b1b0a199aceb8a73fa5d62d81114021d517f0d /test/CodeGen/ARM/fpcmp.ll | |
parent | 339ec4cb15cba923605bafdbd20dcfe30caffc0e (diff) | |
download | external_llvm-42b62f3f81b0c38954dd64b37cbb3c995f84073c.zip external_llvm-42b62f3f81b0c38954dd64b37cbb3c995f84073c.tar.gz external_llvm-42b62f3f81b0c38954dd64b37cbb3c995f84073c.tar.bz2 |
implement unordered floating point compares
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fpcmp.ll')
-rw-r--r-- | test/CodeGen/ARM/fpcmp.ll | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/fpcmp.ll b/test/CodeGen/ARM/fpcmp.ll index 53529bc..5c120ea 100644 --- a/test/CodeGen/ARM/fpcmp.ll +++ b/test/CodeGen/ARM/fpcmp.ll @@ -5,7 +5,9 @@ ; RUN: llvm-as < %s | llc -march=arm | grep movge && ; RUN: llvm-as < %s | llc -march=arm | grep movle && ; RUN: llvm-as < %s | llc -march=arm | grep fcmpes && -; RUN: llvm-as < %s | llc -march=arm | grep fcmped +; RUN: llvm-as < %s | llc -march=arm | grep fcmps && +; RUN: llvm-as < %s | llc -march=arm | grep fcmped && +; RUN: llvm-as < %s | llc -march=arm | grep fcmpd int %f1(float %a) { entry: @@ -42,9 +44,23 @@ entry: ret int %tmp } +int %f6(float %a) { +entry: + %tmp = setne float %a, 1.000000e+00 ; <bool> [#uses=1] + %tmp = cast bool %tmp to int ; <int> [#uses=1] + ret int %tmp +} + int %g1(double %a) { entry: %tmp = setlt double %a, 1.000000e+00 ; <bool> [#uses=1] %tmp = cast bool %tmp to int ; <int> [#uses=1] ret int %tmp } + +int %g2(double %a) { +entry: + %tmp = setne double %a, 1.000000e+00 ; <bool> [#uses=1] + %tmp = cast bool %tmp to int ; <int> [#uses=1] + ret int %tmp +} |