1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Transforms/InstCombine/2012-04-30-SRem.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

13 lines
285 B
LLVM

; 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
}