llvm-for-llvmta/test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll

12 lines
233 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; 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
}