Unverified Commit 4a026b50 authored by Peter Rong's avatar Peter Rong Committed by GitHub
Browse files

[AMDGCN] Use ZExt when handling indices in insertment element (#85718)

When i1 true is used as an index, SExt extends it to i32 -1. This would
cause BitVector to overflow.
The language manual have specified that the index shall be treated as an
unsigned number, this patch fixes that.
(https://llvm.org/docs/LangRef.html#insertelement-instruction

)

This patch fixes #85717

---------

Signed-off-by: default avatarPeter Rong <PeterRong96@gmail.com>
parent 3eb9ff30
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment