[Hexagon] Fixing load instruction parsing and reenabling tests.
[oota-llvm.git] / test / CodeGen / PowerPC / fp_to_uint.ll
index 83468a42b868de78a9395d1071fe100408efdd8e..187d2d6ee1e98e657cf481fb3b37265bf962d03d 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep fctiwz | wc -l | grep 1
+; RUN: llc < %s -mattr=-vsx -march=ppc32 | grep fctiwz | count 1
 
-implementation
 
-ushort %foo(float %a) {
+define i16 @foo(float %a) {
 entry:
-        %tmp.1 = cast float %a to ushort
-        ret ushort %tmp.1
+        %tmp.1 = fptoui float %a to i16         ; <i16> [#uses=1]
+        ret i16 %tmp.1
 }
+