blob: 3013e5600402471e544e5df648591c01b00e0532 [file] [log] [blame]
Edward O'Callaghan15dd4622009-11-22 11:45:44 +00001; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
Renato Golinb4dd6c52013-03-21 18:47:47 +00002; RUN: llc < %s -march=arm -mcpu=cortex-a8 --enable-unsafe-fp-math | FileCheck %s -check-prefix=NFP1U
Jim Grosbach71fcb4f2010-03-25 23:47:34 +00003; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=NFP1
4; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s -check-prefix=NFP0
David Goodwin3b9c52c2009-08-04 17:53:06 +00005
6define float @test(float %a, float %b) {
7entry:
8 %0 = fsub float %a, %b
9 ret float %0
10}
11
Bob Wilsone8a549c2012-09-29 21:43:49 +000012; VFP2: vsub.f32 s
Renato Golinb4dd6c52013-03-21 18:47:47 +000013; NFP1U: vsub.f32 d
14; NFP1: vsub.f32 s
Bob Wilsone8a549c2012-09-29 21:43:49 +000015; NFP0: vsub.f32 s