Return undef on FP <-> Int conversions that overflow (PR21330).
[oota-llvm.git] / test / Transforms / InstCombine / zext-or-icmp.ll
index 35c7c0a6be6eddc6cbe884b07753d306083149ff..ddc60834f586a802fc2e49ac2831cd94b02d94a3 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep icmp | count 1
+; RUN: opt < %s -instcombine -S | grep icmp | count 1
 
        %struct.FooBar = type <{ i8, i8, [2 x i8], i8, i8, i8, i8, i16, i16, [4 x i8], [8 x %struct.Rock] }>
        %struct.Rock = type { i16, i16 }
 @some_idx = internal constant [4 x i8] c"\0A\0B\0E\0F"         ; <[4 x i8]*> [#uses=1]
 
-define i8 @t(%struct.FooBar* %up, i8 zeroext  %intra_flag, i32 %blk_i) zeroext nounwind  {
+define zeroext  i8 @t(%struct.FooBar* %up, i8 zeroext  %intra_flag, i32 %blk_i) nounwind  {
 entry:
        %tmp2 = lshr i32 %blk_i, 1              ; <i32> [#uses=1]
        %tmp3 = and i32 %tmp2, 2                ; <i32> [#uses=1]