brintos

brintos / llvm-project-archived public Read only

0
0
Text · 292 B · b885f58 Raw
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