brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1011 B · c5df2c4 Raw
36 lines · plain
1; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - | FileCheck %s --check-prefix=CHECK-VFP2; RUN: llc -mtriple=thumbv7-eabi -mattr=+vfp2 %s -o - | FileCheck %s --check-prefix=CHECK-VFP3 4declare float @llvm.arm.vcvtr.f32(float)5declare float @llvm.arm.vcvtru.f32(float)6declare float @llvm.arm.vcvtr.f64(double)7declare float @llvm.arm.vcvtru.f64(double)8 9define float @test_vcvtrf0(float %f) {10entry:11; CHECK-VFP:  vcvtr.s32.f32  s0, s012  %vcvtr = tail call float @llvm.arm.vcvtr.f32(float %f)13  ret float %vcvtr14}15 16define float @test_vcvtrf1(float %f) {17entry:18; CHECK-VFP:  vcvtr.u32.f32  s0, s019  %vcvtr = tail call float @llvm.arm.vcvtru.f32(float %f)20  ret float %vcvtr21}22 23define float @test_vcvtrd0(double %d) {24entry:25; CHECK-VFP: vcvtr.s32.f64  s0, d{{.*}}26  %vcvtr = tail call float @llvm.arm.vcvtr.f64(double %d)27  ret float %vcvtr28}29 30define float @test_vcvtrd1(double %d) {31entry:32; CHECK-VFP: vcvtr.u32.f64  s0, d{{.*}}33  %vcvtr = tail call float @llvm.arm.vcvtru.f64(double %d)34  ret float %vcvtr35}36