arch-arm: Fix bug in VQRSHL.

If shiftAmt is 0, bits raise assert, causing core dump.

Change-Id: Ic4285f51a866ffc017645655e98674ca69a15a40
This commit is contained in:
Junshi Wang
2024-11-17 16:53:36 +08:00
committed by Bobby R. Bruce
parent 1e5021c2e3
commit 0a22e63467

View File

@@ -2551,6 +2551,8 @@ let {{
destElem = (srcElem1 >> shiftAmt); destElem = (srcElem1 >> shiftAmt);
} }
destElem += rBit; destElem += rBit;
} else if (shiftAmt == 0) {
destElem = srcElem1;
} else { } else {
if (shiftAmt >= sizeof(Element) * 8) { if (shiftAmt >= sizeof(Element) * 8) {
if (srcElem1 != 0) { if (srcElem1 != 0) {