topperc wrote: This patch changes the generated code for this test for x86-64 ``` define <4 x i32> @foo(<4 x i32> %x) { %a = and <4 x i32> %x, <i32 255, i32 255, i32 255, i32 255> %b = udiv <4 x i32> %a, <i32 7, i32 7, i32 7, i32 7> ret <4 x i32> %b } ``` https://github.com/llvm/llvm-project/pull/99524