diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-05-23 04:14:51 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-05-23 04:14:51 +0000 |
commit | 89e87ff1a26f0151ab5989f2c12af7e10d24d776 (patch) | |
tree | c9f4c2171957e8c4cf9cecb43a3aaf6774306dd0 /test | |
parent | 386c013d8ceb4d89dee9a1e1c1b69a16e9815c44 (diff) | |
download | external_llvm-89e87ff1a26f0151ab5989f2c12af7e10d24d776.zip external_llvm-89e87ff1a26f0151ab5989f2c12af7e10d24d776.tar.gz external_llvm-89e87ff1a26f0151ab5989f2c12af7e10d24d776.tar.bz2 |
Implement X + X for vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2008-05-22-FoldAddIVec.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-05-22-FoldAddIVec.ll b/test/Transforms/InstCombine/2008-05-22-FoldAddIVec.ll new file mode 100644 index 0000000..8bdf9bb --- /dev/null +++ b/test/Transforms/InstCombine/2008-05-22-FoldAddIVec.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep mul + +define <3 x i8> @f(<3 x i8> %i) { + %A = add <3 x i8> %i, %i + ret <3 x i8> %A +} |