brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 13d49ba Raw
27 lines · plain
1; Validate that vector types are accepted for llvm.lround/llvm.llround intrinsic2; RUN: llvm-as < %s | llvm-dis |  FileCheck %s3 4define <2 x i32> @intrinsic_lround_v2i32_v2f32(<2 x float> %arg) {5  ;CHECK: %res = tail call <2 x i32> @llvm.lround.v2i32.v2f32(<2 x float> %arg)6  %res = tail call <2 x i32> @llvm.lround.v2i32.v2f32(<2 x float> %arg)7  ret <2 x i32> %res8}9 10define <2 x i32> @intrinsic_llround_v2i32_v2f32(<2 x float> %arg) {11  ;CHECK: %res = tail call <2 x i32> @llvm.llround.v2i32.v2f32(<2 x float> %arg)12  %res = tail call <2 x i32> @llvm.llround.v2i32.v2f32(<2 x float> %arg)13  ret <2 x i32> %res14}15 16define <2 x i64> @intrinsic_lround_v2i64_v2f32(<2 x float> %arg) {17  ;CHECK: %res = tail call <2 x i64> @llvm.lround.v2i64.v2f32(<2 x float> %arg)18  %res = tail call <2 x i64> @llvm.lround.v2i64.v2f32(<2 x float> %arg)19  ret <2 x i64> %res20}21 22define <2 x i64> @intrinsic_llround_v2i64_v2f32(<2 x float> %arg) {23  ;CHECK: %res = tail call <2 x i64> @llvm.llround.v2i64.v2f32(<2 x float> %arg)24  %res = tail call <2 x i64> @llvm.llround.v2i64.v2f32(<2 x float> %arg)25  ret <2 x i64> %res26}27