diff options
author | Dan Gohman <gohman@apple.com> | 2011-11-04 18:39:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-11-04 18:39:16 +0000 |
commit | abe776a7949532ebb5df1099edf2eaab22d8bd2b (patch) | |
tree | 572ba2925f10835cccbe24f2cc77219392acd39e /test | |
parent | 71d050315704c23b235594d3fad5268c12d825e3 (diff) | |
download | external_llvm-abe776a7949532ebb5df1099edf2eaab22d8bd2b.zip external_llvm-abe776a7949532ebb5df1099edf2eaab22d8bd2b.tar.gz external_llvm-abe776a7949532ebb5df1099edf2eaab22d8bd2b.tar.bz2 |
Add tests for existing InstSimplify features.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstSimplify/undef.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/undef.ll b/test/Transforms/InstSimplify/undef.ll index 9f5a1e8..23cd50f 100644 --- a/test/Transforms/InstSimplify/undef.ll +++ b/test/Transforms/InstSimplify/undef.ll @@ -84,6 +84,13 @@ define i64 @test11() { ret i64 %r } +; @test11b +; CHECK: ret i64 undef +define i64 @test11b(i64 %a) { + %r = shl i64 %a, undef + ret i64 %r +} + ; @test12 ; CHECK: ret i64 undef define i64 @test12() { @@ -91,6 +98,13 @@ define i64 @test12() { ret i64 %r } +; @test12b +; CHECK: ret i64 undef +define i64 @test12b(i64 %a) { + %r = ashr i64 %a, undef + ret i64 %r +} + ; @test13 ; CHECK: ret i64 undef define i64 @test13() { @@ -98,6 +112,13 @@ define i64 @test13() { ret i64 %r } +; @test13b +; CHECK: ret i64 undef +define i64 @test13b(i64 %a) { + %r = lshr i64 %a, undef + ret i64 %r +} + ; @test14 ; CHECK: ret i1 undef define i1 @test14() { |