diff options
| author | Dan Gohman <gohman@apple.com> | 2007-11-05 23:16:33 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-11-05 23:16:33 +0000 |
| commit | cff550995b2aef56a3c9956520249ac662df5696 (patch) | |
| tree | 8d03823ad57ae58ff7b9dea67eb0a45181715e51 /test/Transforms | |
| parent | f1ba1cad387dc52f3c2c5afc665edf9caad00992 (diff) | |
| download | llvm-cff550995b2aef56a3c9956520249ac662df5696.tar.gz llvm-cff550995b2aef56a3c9956520249ac662df5696.tar.bz2 llvm-cff550995b2aef56a3c9956520249ac662df5696.tar.xz | |
Fix an abort in instcombine when folding creates a vector rem instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
| -rw-r--r-- | test/Transforms/InstCombine/vector-srem.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/vector-srem.ll b/test/Transforms/InstCombine/vector-srem.ll new file mode 100644 index 0000000000..e8766ebc1e --- /dev/null +++ b/test/Transforms/InstCombine/vector-srem.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {srem <4 x i32>} + +define <4 x i32> @foo(<4 x i32> %t, <4 x i32> %u) +{ + %k = sdiv <4 x i32> %t, %u + %l = mul <4 x i32> %k, %u + %m = sub <4 x i32> %t, %l + ret <4 x i32> %m +} |
