blob: acb11c52adb39c5d88d636c1c1aa5968a155a526 [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -S | grep {srem <4 x i32>}
Dan Gohman4decbc52007-11-05 23:16:33 +00002
3define <4 x i32> @foo(<4 x i32> %t, <4 x i32> %u)
4{
5 %k = sdiv <4 x i32> %t, %u
6 %l = mul <4 x i32> %k, %u
7 %m = sub <4 x i32> %t, %l
8 ret <4 x i32> %m
9}