Add correct NEON encodings for the "multiple single elements" form of vld.
[oota-llvm.git] / test / Transforms / InstCombine / fpcast.ll
index dedcd13f9bc6f134eedb257c8a7840dc6a30c017..bc6aa0a6891f658817b5d50bb5c7f7d983a1e3f3 100644 (file)
@@ -1,14 +1,15 @@
 ; Test some floating point casting cases
-; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | notcast
-; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
-; RUN:   grep 'ret [us]byte \(-1\)\|\(255\)'
+; RUN: opt < %s -instcombine -S | FileCheck %s
 
-sbyte %test() {
-    %x = fptoui float 255.0 to sbyte 
-    ret sbyte %x
+define i8 @test1() {
+        %x = fptoui float 2.550000e+02 to i8            ; <i8> [#uses=1]
+        ret i8 %x
+; CHECK: ret i8 -1
 }
 
-ubyte %test() {
-    %x = fptosi float -1.0 to ubyte
-    ret ubyte %x
+define i8 @test2() {
+        %x = fptosi float -1.000000e+00 to i8           ; <i8> [#uses=1]
+        ret i8 %x
+; CHECK: ret i8 -1
 }
+