blob: ae98be30789244c7c10fec52da8dcf815128d301 [file] [log] [blame]
Edward O'Callaghan81fff072009-11-22 11:45:44 +00001; 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
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