1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s -check-prefix=VFP2
2 ; RUN: llc < %s -march=arm -mattr=+neon,+neonfp | FileCheck %s -check-prefix=NEON
3 ; RUN: llc < %s -march=arm -mattr=+neon,-neonfp | FileCheck %s -check-prefix=VFP2
4 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=NEON
5 ; RUN: llc < %s -march=arm -mcpu=cortex-a9 | FileCheck %s -check-prefix=VFP2
7 define i32 @test1(float %a, float %b) {
11 ; NEON: vcvt.s32.f32 d0, d0
13 %0 = fadd float %a, %b
14 %1 = fptosi float %0 to i32
18 define i32 @test2(float %a, float %b) {
20 ; VFP2: ftouizs s0, s0
22 ; NEON: vcvt.u32.f32 d0, d0
24 %0 = fadd float %a, %b
25 %1 = fptoui float %0 to i32
29 define float @test3(i32 %a, i32 %b) {
33 ; NEON: vcvt.f32.u32 d0, d0
36 %1 = uitofp i32 %0 to float
40 define float @test4(i32 %a, i32 %b) {
44 ; NEON: vcvt.f32.s32 d0, d0
47 %1 = sitofp i32 %0 to float