blob: 7cab7668900af5b5e4278b826c41981752fef625 [file] [log] [blame]
Saleem Abdulrasool72587352014-04-03 16:01:44 +00001; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - | FileCheck %s -check-prefix=VFP2
2; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s -check-prefix=NFP0
3; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s -check-prefix=CORTEXA8
4; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a9 %s -o - | FileCheck %s -check-prefix=CORTEXA9
David Goodwin3b9c52c2009-08-04 17:53:06 +00005
6define float @test(float %a, float %b) {
7entry:
8 %0 = fdiv float %a, %b
9 ret float %0
10}
11
Stephen Linf799e3f2013-07-13 20:38:47 +000012; VFP2-LABEL: test:
Jakob Stoklund Olesenac6cfa42013-01-19 00:03:32 +000013; VFP2: vdiv.f32 s{{.}}, s{{.}}, s{{.}}
Edward O'Callaghan21d7e8a2009-11-22 14:23:33 +000014
Stephen Linf799e3f2013-07-13 20:38:47 +000015; NFP1-LABEL: test:
Jakob Stoklund Olesenac6cfa42013-01-19 00:03:32 +000016; NFP1: vdiv.f32 s{{.}}, s{{.}}, s{{.}}
Stephen Linf799e3f2013-07-13 20:38:47 +000017; NFP0-LABEL: test:
Jakob Stoklund Olesenac6cfa42013-01-19 00:03:32 +000018; NFP0: vdiv.f32 s{{.}}, s{{.}}, s{{.}}
Edward O'Callaghan21d7e8a2009-11-22 14:23:33 +000019
Stephen Linf799e3f2013-07-13 20:38:47 +000020; CORTEXA8-LABEL: test:
Jakob Stoklund Olesenac6cfa42013-01-19 00:03:32 +000021; CORTEXA8: vdiv.f32 s{{.}}, s{{.}}, s{{.}}
Stephen Linf799e3f2013-07-13 20:38:47 +000022; CORTEXA9-LABEL: test:
Bob Wilsondf612ba2011-04-19 18:11:45 +000023; CORTEXA9: vdiv.f32 s{{.}}, s{{.}}, s{{.}}