mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
713e953118
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156324 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
409 B
LLVM
19 lines
409 B
LLVM
; RUN: llc -march=arm -mcpu=cortex-a9 < %s | FileCheck -check-prefix=SAFE %s
|
|
; RUN: llc -march=arm -mcpu=cortex-a9 -enable-unsafe-fp-math < %s | FileCheck -check-prefix=FAST %s
|
|
|
|
target triple = "armv7-apple-ios"
|
|
|
|
; SAFE: test
|
|
; FAST: test
|
|
define float @test(float %x, float %y) {
|
|
entry:
|
|
; SAFE: vmul.f32
|
|
; SAFE: vsub.f32
|
|
; FAST: mov r0, #0
|
|
%0 = fmul float %x, %y
|
|
%1 = fsub float %0, %0
|
|
ret float %1
|
|
}
|
|
|
|
|