• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=hexagonv5  < %s | FileCheck %s
2; Optimize fabsf to clrbit in V5.
3
4; CHECK: r{{[0-9]+}} = clrbit(r{{[0-9]+}}, #31)
5
6define float @my_fabsf(float %x) nounwind {
7entry:
8  %x.addr = alloca float, align 4
9  store float %x, float* %x.addr, align 4
10  %0 = load float* %x.addr, align 4
11  %call = call float @fabsf(float %0) readnone
12  ret float %call
13}
14
15declare float @fabsf(float)
16