mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
0001e56f15
ashr instcombine to help expose this code. And apply the fix to SelectionDAG's copy of this code too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65364 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
174 B
LLVM
9 lines
174 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep ashr
|
|
|
|
define i32 @foo(i32 %x) {
|
|
%o = and i32 %x, 1
|
|
%n = add i32 %o, -1
|
|
%t = ashr i32 %n, 17
|
|
ret i32 %t
|
|
}
|