• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -instcombine -S | FileCheck %s
2
3define <8 x i16> @udiv_vec8x16(<8 x i16> %var) {
4entry:
5; CHECK: lshr <8 x i16> %var, <i16 5, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5>
6%0 = udiv <8 x i16> %var, <i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32, i16 32>
7ret <8 x i16> %0
8}
9
10define <4 x i32> @udiv_vec4x32(<4 x i32> %var) {
11entry:
12; CHECK: lshr <4 x i32> %var, <i32 4, i32 4, i32 4, i32 4>
13%0 = udiv <4 x i32> %var, <i32 16, i32 16, i32 16, i32 16>
14ret <4 x i32> %0
15}
16