blob: 3a4477d315624a64959eb9fa37aa3a9170891914 [file] [log] [blame]
Owen Anderson713e9532012-05-07 20:51:25 +00001; RUN: llc -march=arm -mcpu=cortex-a9 < %s | FileCheck -check-prefix=SAFE %s
2; RUN: llc -march=arm -mcpu=cortex-a9 -enable-unsafe-fp-math < %s | FileCheck -check-prefix=FAST %s
3
4target triple = "armv7-apple-ios"
5
6; SAFE: test
7; FAST: test
8define float @test(float %x, float %y) {
9entry:
10; SAFE: vmul.f32
11; SAFE: vsub.f32
12; FAST: mov r0, #0
13 %0 = fmul float %x, %y
14 %1 = fsub float %0, %0
15 ret float %1
16}
17
18