[llvm-bugs] [Bug 49595] New: [RISCV] warning: Possible incorrect use of EVT::getVectorNumElements() for scalable vector.
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Mar 15 06:58:31 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49595
Bug ID: 49595
Summary: [RISCV] warning: Possible incorrect use of
EVT::getVectorNumElements() for scalable vector.
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: RISC-V
Assignee: unassignedbugs at nondot.org
Reporter: simonas+llvm.org at kazlauskas.me
CC: asb at lowrisc.org, llvm-bugs at lists.llvm.org
When running the following test case
; RUN: llc -mtriple=riscv64 -mattr=+m,+experimental-v
-riscv-v-vector-bits-min=128
define <4 x i1> @test_srem_vec(<4 x i33> %X) nounwind {
%srem = srem <4 x i33> %X, <i33 9, i33 9, i33 -9, i33 -9>
%cmp = icmp ne <4 x i33> %srem, <i33 3, i33 -3, i33 3, i33 -3>
ret <4 x i1> %cmp
}
`llc` outputs the following warning:
warning: Possible incorrect use of EVT::getVectorNumElements() for scalable
vector. Scalable flag may be dropped, use EVT::getVectorElementCount() instead
Unclear if an actual issue or just something that can be ignored, but reporting
to bring your attention to it.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210315/087e9a93/attachment-0001.html>
More information about the llvm-bugs
mailing list