mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
67e1a58e22
and/or to handle more cases (such as this add-sitofp.ll testcase), and port it to selectiondag's ComputeNumSignBits. llvm-svn: 51469
10 lines
232 B
LLVM
10 lines
232 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {add i32}
|
|
|
|
define double @x(i32 %a, i32 %b) nounwind {
|
|
%m = lshr i32 %a, 24
|
|
%n = and i32 %m, %b
|
|
%o = sitofp i32 %n to double
|
|
%p = add double %o, 1.0
|
|
ret double %p
|
|
}
|