mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 22:20:43 +00:00
02e5fb0f58
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144046 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
495 B
LLVM
16 lines
495 B
LLVM
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
define <8 x i16> @udiv_vec8x16(<8 x i16> %var) {
|
|
entry:
|
|
; CHECK: lshr <8 x i16> %var, <i16 5, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5>
|
|
%0 = udiv <8 x i16> %var, <i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32>
|
|
ret <8 x i16> %0
|
|
}
|
|
|
|
define <4 x i32> @udiv_vec4x32(<4 x i32> %var) {
|
|
entry:
|
|
; CHECK: lshr <4 x i32> %var, <i32 4, i32 4, i32 4, i32 4>
|
|
%0 = udiv <4 x i32> %var, <i32 16, i32 16, i32 16, i32 16>
|
|
ret <4 x i32> %0
|
|
}
|