f32dbaf0b2
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
12 lines
233 B
LLVM
12 lines
233 B
LLVM
; RUN: opt < %s -instcombine -S | 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
|
|
}
|