diff options
Diffstat (limited to 'test/CodeGen')
| -rw-r--r-- | test/CodeGen/ARM/fpcmp.ll | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/fpcmp.ll b/test/CodeGen/ARM/fpcmp.ll index 6d9012df41..53529bcf04 100644 --- a/test/CodeGen/ARM/fpcmp.ll +++ b/test/CodeGen/ARM/fpcmp.ll @@ -3,7 +3,9 @@ ; RUN: llvm-as < %s | llc -march=arm | grep moveq && ; RUN: llvm-as < %s | llc -march=arm | grep movgt && ; 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 movle && +; RUN: llvm-as < %s | llc -march=arm | grep fcmpes && +; RUN: llvm-as < %s | llc -march=arm | grep fcmped int %f1(float %a) { entry: @@ -39,3 +41,10 @@ entry: %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 +} |
