From 9570b6e9e552f3bfc84a8595ab1ef7caed9b8007 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Tue, 25 Oct 2005 23:53:21 +0000 Subject: [PATCH] Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc backend. llvm-svn: 23995 --- test/Regression/CodeGen/PowerPC/fp_to_uint.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Regression/CodeGen/PowerPC/fp_to_uint.ll diff --git a/test/Regression/CodeGen/PowerPC/fp_to_uint.ll b/test/Regression/CodeGen/PowerPC/fp_to_uint.ll new file mode 100644 index 00000000000..44d6e9092b3 --- /dev/null +++ b/test/Regression/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 +}