1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/Transforms/InstCombine/2008-11-27-IDivVector.ll
Nick Lewycky 882443585d Add a couple of missed optimizations on integer vectors. Multiply and divide
by 1, as well as multiply by -1.

llvm-svn: 60182
2008-11-27 20:21:08 +00:00

12 lines
251 B
LLVM

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div
define <2 x i8> @f(<2 x i8> %x) {
%A = udiv <2 x i8> %x, <i8 1, i8 1>
ret <2 x i8> %A
}
define <2 x i8> @g(<2 x i8> %x) {
%A = sdiv <2 x i8> %x, <i8 1, i8 1>
ret <2 x i8> %A
}