blob: baff34ab31fcf8056dfc567c8efbf83b538dd373 [file] [log] [blame]
Saleem Abdulrasool72587352014-04-03 16:01:44 +00001; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - \
2; RUN: | FileCheck %s -check-prefix=VFP2
3
4; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - \
5; RUN: | FileCheck %s -check-prefix=NFP1
6
7; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 --enable-unsafe-fp-math %s -o - \
8; RUN: | FileCheck %s -check-prefix=NFP1U
9
10; RUN: llc -mtriple=arm-darwin -mcpu=cortex-a8 %s -o - \
11; RUN: | FileCheck %s -check-prefix=NFP1U
12
13; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - \
14; RUN: | FileCheck %s -check-prefix=NFP0
David Goodwin3b9c52c2009-08-04 17:53:06 +000015
16define float @test(float %a, float %b) {
17entry:
18 %0 = fsub float %a, %b
19 ret float %0
20}
21
Bob Wilsone8a549c2012-09-29 21:43:49 +000022; VFP2: vsub.f32 s
Renato Golinb4dd6c52013-03-21 18:47:47 +000023; NFP1U: vsub.f32 d
24; NFP1: vsub.f32 s
Bob Wilsone8a549c2012-09-29 21:43:49 +000025; NFP0: vsub.f32 s