diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine/zext.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/zext.ll | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/zext.ll b/llvm/test/Transforms/InstCombine/zext.ll index 9aacd3a281e..420cb4a1ff7 100644 --- a/llvm/test/Transforms/InstCombine/zext.ll +++ b/llvm/test/Transforms/InstCombine/zext.ll @@ -1,11 +1,13 @@ ; Tests to make sure elimination of casts is working correctly -; RUN: opt < %s -instcombine -S | \ -; RUN: notcast {} {%c1.*} +; RUN: opt < %s -instcombine -S | FileCheck %s define i64 @test_sext_zext(i16 %A) { %c1 = zext i16 %A to i32 ; <i32> [#uses=1] %c2 = sext i32 %c1 to i64 ; <i64> [#uses=1] ret i64 %c2 +CHECK-NOT: %c1 +CHECK: %c2 = zext i16 %A to i64 +CHECK: ret i64 %c2 } ; PR3599 @@ -29,5 +31,6 @@ entry: %tmp16 = or i32 %tmp15, %tmp6 ; <i32> [#uses=1] %tmp17 = or i32 %tmp16, %tmp3 ; <i32> [#uses=1] ret i32 %tmp17 +CHECK: ret i1 true } |

