summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/add-sitofp.ll
blob: 298b9a1917afddad5c573027e66dd2ce3a10084c (plain)
1
2
3
4
5
6
7
8
9
; 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 = fadd double %o, 1.0
  ret double %p
}
OpenPOWER on IntegriCloud