13 lines · plain
1; RUN: opt -passes=instcombine -S < %s | FileCheck %s2; PR125413 4define i32 @foo(i32 %x) {5 %y = xor i32 %x, 36 %z = srem i32 1656690544, %y7 %sext = shl i32 %z, 248 %s = ashr exact i32 %sext, 249 ret i32 %s10; CHECK-NOT: and11; The shifts were wrongly being turned into an and with 11212}13