mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 22:55:57 +00:00
13 lines
524 B
LLVM
13 lines
524 B
LLVM
|
; XFAIL: *
|
||
|
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fnmacs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
|
||
|
; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {vmls.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
|
||
|
; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fnmacs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
|
||
|
|
||
|
define float @test(float %acc, float %a, float %b) {
|
||
|
entry:
|
||
|
%0 = fmul float %a, %b
|
||
|
%1 = fsub float %acc, %0
|
||
|
ret float %1
|
||
|
}
|
||
|
|