diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-01-19 15:56:12 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-01-19 15:56:12 +0000 |
commit | 73f565e7546f63900738cd31a2f956444e7bb544 (patch) | |
tree | a4f4b7bd91cabded85ad8c881055fb7195f80d28 /test | |
parent | ec91d52a77abfe3cf56413a11f47b3ee8e67e41e (diff) | |
download | external_llvm-73f565e7546f63900738cd31a2f956444e7bb544.zip external_llvm-73f565e7546f63900738cd31a2f956444e7bb544.tar.gz external_llvm-73f565e7546f63900738cd31a2f956444e7bb544.tar.bz2 |
Add a missing SCEV simplification sext(zext x) --> zext x.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/ScalarEvolution/fold.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Analysis/ScalarEvolution/fold.ll b/test/Analysis/ScalarEvolution/fold.ll new file mode 100644 index 0000000..202ddd4 --- /dev/null +++ b/test/Analysis/ScalarEvolution/fold.ll @@ -0,0 +1,8 @@ +; RUN: opt -analyze -scalar-evolution %s -S | FileCheck %s + +define i16 @test(i8 %x) { + %A = zext i8 %x to i12 + %B = sext i12 %A to i16 +; CHECK: zext i8 %x to i16 + ret i16 %B +} |