brintos

brintos / llvm-project-archived public Read only

0
0
Text · 976 B · b30bb2e Raw
28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=thumbv8.1m.main -mattr=+mve.fp -verify-machineinstrs -o - %s | FileCheck %s3 4; The llvm.arm.mve.vrintn should auto-upgrade to llvm.roundeven, which are selected to vrintn.5 6define arm_aapcs_vfpcc <8 x half> @test_vrndnq_f16(<8 x half> %a) {7; CHECK-LABEL: test_vrndnq_f16:8; CHECK:       @ %bb.0: @ %entry9; CHECK-NEXT:    vrintn.f16 q0, q010; CHECK-NEXT:    bx lr11entry:12  %0 = tail call <8 x half> @llvm.arm.mve.vrintn.v8f16(<8 x half> %a)13  ret <8 x half> %014}15 16define arm_aapcs_vfpcc <4 x float> @test_vrndnq_f32(<4 x float> %a) {17; CHECK-LABEL: test_vrndnq_f32:18; CHECK:       @ %bb.0: @ %entry19; CHECK-NEXT:    vrintn.f32 q0, q020; CHECK-NEXT:    bx lr21entry:22  %0 = tail call <4 x float> @llvm.arm.mve.vrintn.v4f32(<4 x float> %a)23  ret <4 x float> %024}25 26declare <8 x half> @llvm.arm.mve.vrintn.v8f16(<8 x half>)27declare <4 x float> @llvm.arm.mve.vrintn.v4f32(<4 x float>)28