blob: bea8d5f4f30bc3d79007693d3b6bcc9ef92f5ee2 [file] [log] [blame]
Edward O'Callaghan81fff072009-11-22 11:45:44 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
Jim Grosbach7ec7a0e2010-03-25 23:47:34 +00002; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=NFP1
3; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
David Goodwin42a83f22009-08-04 17:53:06 +00004
5define float @test(float %a, float %b) {
6entry:
7 %0 = fsub float %a, %b
8 ret float %0
9}
10
Edward O'Callaghan81fff072009-11-22 11:45:44 +000011; VFP2: vsub.f32 s0, s1, s0
12; NFP1: vsub.f32 d0, d1, d0
13; NFP0: vsub.f32 s0, s1, s0