blob: f039e74c8ee6c7caa135198cc6ea607090631686 [file] [log] [blame]
Edward O'Callaghan15dd4622009-11-22 11:45:44 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
Jim Grosbach71fcb4f2010-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 Goodwin3b9c52c2009-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
Bob Wilsone8a549c2012-09-29 21:43:49 +000011; VFP2: vsub.f32 s
12; NFP1: vsub.f32 d
13; NFP0: vsub.f32 s