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 | 386c013d8ceb4d89dee9a1e1c1b69a16e9815c44 (patch) | |
tree | c25c2ef8d9070c18854b1cb392e864668e654779 /test | |
parent | 4afc4259d2a6408f4d58be0d54e30e4ed86325c8 (diff) | |
download | external_llvm-386c013d8ceb4d89dee9a1e1c1b69a16e9815c44.zip external_llvm-386c013d8ceb4d89dee9a1e1c1b69a16e9815c44.tar.gz external_llvm-386c013d8ceb4d89dee9a1e1c1b69a16e9815c44.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')
-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 +} |