2009-11-09 08:11:35 +08:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+vfp2 | grep -E {vmla.f32\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
|
2009-11-01 06:57:36 +08:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | grep -E {vmul.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
|
2009-11-09 08:11:35 +08:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | grep -E {vmla.f32\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
|
2009-11-01 06:57:36 +08:00
|
|
|
; RUN: llc < %s -march=arm -mcpu=cortex-a8 | grep -E {vmul.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
|
2009-11-09 08:11:35 +08:00
|
|
|
; RUN: llc < %s -march=arm -mcpu=cortex-a9 | grep -E {vmla.f32\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
|
2009-08-05 01:53:06 +08:00
|
|
|
|
|
|
|
define float @test(float %acc, float %a, float %b) {
|
|
|
|
entry:
|
|
|
|
%0 = fmul float %a, %b
|
|
|
|
%1 = fadd float %acc, %0
|
|
|
|
ret float %1
|
|
|
|
}
|
|
|
|
|