mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Port SelectionDAG's ComputeNumSignBits-using code to instcombine,
now that instcombine also has ComputeNumSignBits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -43,3 +43,10 @@ define i64 @voo(i32 %x) {
|
||||
%s = sext i32 %u to i64
|
||||
ret i64 %s
|
||||
}
|
||||
define i32 @woo(i8 %a, i32 %f, i1 %p, i32* %z) {
|
||||
%d = ashr i32 %f, 24
|
||||
%e = select i1 %p, i32 %d, i32 0
|
||||
%s = trunc i32 %e to i16
|
||||
%n = sext i16 %s to i32
|
||||
ret i32 %n
|
||||
}
|
||||
|
Reference in New Issue
Block a user