[llvm] llvm.lround: Update verifier to validate support of vector types. (PR #98950)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 07:42:57 PDT 2024
================
@@ -0,0 +1,29 @@
+; Validate that vector types are accepted for llvm.lround/llvm.llround intrinsic
+; RUN: llvm-as < %s -disable-output 2>&1| FileCheck -allow-empty %s
+
+; CHECK-NOT:assembly parsed, but does not verify as correct
+; CHECK-NOT:Intrinsic does not support vectors
+
+define <2 x i32> @intrinsic_lround_v2i32_v2f32(<2 x float> %arg) {
+entry:
+ %0 = tail call <2 x i32> @llvm.lround.v2i32.v2f32(<2 x float> %arg)
+ ret <2 x i32> %0
----------------
arsenm wrote:
```suggestion
%ret = tail call <2 x i32> @llvm.lround.v2i32.v2f32(<2 x float> %arg)
ret <2 x i32> %ret
```
https://github.com/llvm/llvm-project/pull/98950
More information about the llvm-commits
mailing list