Edward O'Callaghan | 11cc4fa | 2009-11-22 14:23:33 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2 |
| 2 | ; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=1 | FileCheck %s -check-prefix=NFP1 |
| 3 | ; RUN: llc < %s -march=arm -mattr=+neon -arm-use-neon-fp=0 | FileCheck %s -check-prefix=NFP0 |
| 4 | ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=CORTEXA8 |
| 5 | ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s -check-prefix=CORTEXA9 |
David Goodwin | 42a83f2 | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 6 | |
| 7 | define float @test(float %a, float %b) { |
| 8 | entry: |
| 9 | %0 = fadd float %a, %b |
| 10 | ret float %0 |
| 11 | } |
| 12 | |
Edward O'Callaghan | 11cc4fa | 2009-11-22 14:23:33 +0000 | [diff] [blame^] | 13 | ; VFP2: test: |
| 14 | ; VFP2: vadd.f32 s0, s1, s0 |
| 15 | |
| 16 | ; NFP1: test: |
| 17 | ; NFP1: vadd.f32 d0, d1, d0 |
| 18 | ; NFP0: test: |
| 19 | ; NFP0: vadd.f32 s0, s1, s0 |
| 20 | |
| 21 | ; CORTEXA8: test: |
| 22 | ; CORTEXA8: vadd.f32 d0, d1, d0 |
| 23 | ; CORTEXA9: test: |
| 24 | ; CORTEXA9: vadd.f32 s0, s1, s0 |