Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc
authorNate Begeman <natebegeman@mac.com>
Tue, 25 Oct 2005 23:53:21 +0000 (23:53 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 25 Oct 2005 23:53:21 +0000 (23:53 +0000)
backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23995 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/PowerPC/fp_to_uint.ll [new file with mode: 0644]

diff --git a/test/CodeGen/PowerPC/fp_to_uint.ll b/test/CodeGen/PowerPC/fp_to_uint.ll
new file mode 100644 (file)
index 0000000..44d6e90
--- /dev/null
@@ -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
+}