diff options
Diffstat (limited to 'test/Transforms/InstCombine/vector-srem.ll')
-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 0000000..acb11c5 --- /dev/null +++ b/test/Transforms/InstCombine/vector-srem.ll @@ -0,0 +1,9 @@ +; RUN: opt < %s -instcombine -S | 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 +} |