diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-05-23 03:26:47 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-05-23 03:26:47 +0000 |
commit | 39ac3b57bca013e31733a81f8c257fa7ea34c103 (patch) | |
tree | c25c2ef8d9070c18854b1cb392e864668e654779 /test/Transforms/InstCombine/2008-05-22-IDivVector.ll | |
parent | a332f17c8c80bb457617052fb35a3f2cecd05493 (diff) | |
download | external_llvm-39ac3b57bca013e31733a81f8c257fa7ea34c103.zip external_llvm-39ac3b57bca013e31733a81f8c257fa7ea34c103.tar.gz external_llvm-39ac3b57bca013e31733a81f8c257fa7ea34c103.tar.bz2 |
Fix a recently added optimization to not crash on vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2008-05-22-IDivVector.ll')
-rw-r--r-- | test/Transforms/InstCombine/2008-05-22-IDivVector.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-05-22-IDivVector.ll b/test/Transforms/InstCombine/2008-05-22-IDivVector.ll new file mode 100644 index 0000000..ad70b65 --- /dev/null +++ b/test/Transforms/InstCombine/2008-05-22-IDivVector.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | opt -instcombine -disable-output + +define <3 x i8> @f(<3 x i8> %i) { + %A = sdiv <3 x i8> %i, %i + ret <3 x i8> %A +} |