You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
285 B
13 lines
285 B
4 months ago
|
; RUN: opt -instcombine -S < %s | FileCheck %s
|
||
|
; PR12541
|
||
|
|
||
|
define i32 @foo(i32 %x) {
|
||
|
%y = xor i32 %x, 3
|
||
|
%z = srem i32 1656690544, %y
|
||
|
%sext = shl i32 %z, 24
|
||
|
%s = ashr exact i32 %sext, 24
|
||
|
ret i32 %s
|
||
|
; CHECK-NOT: and
|
||
|
; The shifts were wrongly being turned into an and with 112
|
||
|
}
|