diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-10-25 23:53:21 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-10-25 23:53:21 +0000 |
commit | 92d6bb35d79be5ab6fa3963ca537b53d8bb74b4a (patch) | |
tree | 48f2ba3b85c4131faa3573e17d39f41341a0344e | |
parent | 5cd61ce1bea4a1886624825607bfed150ec6b4eb (diff) |
Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc
backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23995 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/PowerPC/fp_to_uint.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/fp_to_uint.ll b/test/CodeGen/PowerPC/fp_to_uint.ll new file mode 100644 index 0000000000..44d6e9092b --- /dev/null +++ b/test/CodeGen/PowerPC/fp_to_uint.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | grep fctiwz | wc -l | grep 1 + +implementation + +ushort %foo(float %a) { +entry: + %tmp.1 = cast float %a to ushort + ret ushort %tmp.1 +} |