aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll
blob: a2578a8bf8bee15b5c9dec695f572d6a4128c33a (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: opt %s -instcombine -S | not grep mul

define <2 x i8> @f(<2 x i8> %x) {
  %A = mul <2 x i8> %x, <i8 1, i8 1>
  ret <2 x i8> %A
}

define <2 x i8> @g(<2 x i8> %x) {
  %A = mul <2 x i8> %x, <i8 -1, i8 -1>
  ret <2 x i8> %A
}