Saleem Abdulrasool | 7258735 | 2014-04-03 16:01:44 +0000 | [diff] [blame] | 1 | ; 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 Goodwin | 3b9c52c | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 15 | |
| 16 | define float @test(float %a, float %b) { |
| 17 | entry: |
| 18 | %0 = fsub float %a, %b |
| 19 | ret float %0 |
| 20 | } |
| 21 | |
Bob Wilson | e8a549c | 2012-09-29 21:43:49 +0000 | [diff] [blame] | 22 | ; VFP2: vsub.f32 s |
Renato Golin | b4dd6c5 | 2013-03-21 18:47:47 +0000 | [diff] [blame] | 23 | ; NFP1U: vsub.f32 d |
| 24 | ; NFP1: vsub.f32 s |
Bob Wilson | e8a549c | 2012-09-29 21:43:49 +0000 | [diff] [blame] | 25 | ; NFP0: vsub.f32 s |