aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/unsafe-fsub.ll
blob: 3a4477d315624a64959eb9fa37aa3a9170891914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; 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
}