mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +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
|
|
}
|