mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
795e3db7ce
can safely use the NSW bit on the Add. llvm-svn: 85164
10 lines
219 B
LLVM
10 lines
219 B
LLVM
; RUN: opt < %s -instcombine -S | grep {add nsw 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 = fadd double %o, 1.0
|
|
ret double %p
|
|
}
|