diff options
-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 +} |