| Saleem Abdulrasool | 7258735 | 2014-04-03 16:01:44 +0000 | [diff] [blame] | 1 | ; 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 Goodwin | 3b9c52c | 2009-08-04 17:53:06 +0000 | [diff] [blame] | 5 | |
| 6 | define float @test(float %a, float %b) { |
| 7 | entry: |
| 8 | %0 = fdiv float %a, %b |
| 9 | ret float %0 |
| 10 | } |
| 11 | |
| Stephen Lin | f799e3f | 2013-07-13 20:38:47 +0000 | [diff] [blame] | 12 | ; VFP2-LABEL: test: |
| Jakob Stoklund Olesen | ac6cfa4 | 2013-01-19 00:03:32 +0000 | [diff] [blame] | 13 | ; VFP2: vdiv.f32 s{{.}}, s{{.}}, s{{.}} |
| Edward O'Callaghan | 21d7e8a | 2009-11-22 14:23:33 +0000 | [diff] [blame] | 14 | |
| Stephen Lin | f799e3f | 2013-07-13 20:38:47 +0000 | [diff] [blame] | 15 | ; NFP1-LABEL: test: |
| Jakob Stoklund Olesen | ac6cfa4 | 2013-01-19 00:03:32 +0000 | [diff] [blame] | 16 | ; NFP1: vdiv.f32 s{{.}}, s{{.}}, s{{.}} |
| Stephen Lin | f799e3f | 2013-07-13 20:38:47 +0000 | [diff] [blame] | 17 | ; NFP0-LABEL: test: |
| Jakob Stoklund Olesen | ac6cfa4 | 2013-01-19 00:03:32 +0000 | [diff] [blame] | 18 | ; NFP0: vdiv.f32 s{{.}}, s{{.}}, s{{.}} |
| Edward O'Callaghan | 21d7e8a | 2009-11-22 14:23:33 +0000 | [diff] [blame] | 19 | |
| Stephen Lin | f799e3f | 2013-07-13 20:38:47 +0000 | [diff] [blame] | 20 | ; CORTEXA8-LABEL: test: |
| Jakob Stoklund Olesen | ac6cfa4 | 2013-01-19 00:03:32 +0000 | [diff] [blame] | 21 | ; CORTEXA8: vdiv.f32 s{{.}}, s{{.}}, s{{.}} |
| Stephen Lin | f799e3f | 2013-07-13 20:38:47 +0000 | [diff] [blame] | 22 | ; CORTEXA9-LABEL: test: |
| Bob Wilson | df612ba | 2011-04-19 18:11:45 +0000 | [diff] [blame] | 23 | ; CORTEXA9: vdiv.f32 s{{.}}, s{{.}}, s{{.}} |