You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
441 B
16 lines
441 B
; RUN: llc -mtriple=hexagon-unknown-elf -mcpu=hexagonv5 -hexagon-bit=0 < %s | FileCheck %s
|
|
; Optimize fabsf to clrbit in V5.
|
|
|
|
; CHECK: r{{[0-9]+}} = clrbit(r{{[0-9]+}}, #31)
|
|
|
|
define float @my_fabsf(float %x) nounwind {
|
|
entry:
|
|
%x.addr = alloca float, align 4
|
|
store float %x, float* %x.addr, align 4
|
|
%0 = load float, float* %x.addr, align 4
|
|
%call = call float @fabsf(float %0) readnone
|
|
ret float %call
|
|
}
|
|
|
|
declare float @fabsf(float)
|