llvm-6502/test/Transforms/InstCombine/2008-11-27-IDivVector.ll

12 lines
251 B
LLVM
Raw Normal View History

; 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
}