Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It seems the CI failed with some tests TIMEOUT. Maybe we need to adjust the test timeout for the CI.
LoongArch ISA reference manual has not specified the behavior of bstrins/bstrpick with msb < lsb. Should the manual be updated too?
Comment Actions
Right, the manual doesn’t specify it explicitly. But I think it’s an obvious implication by the instruction explanation. For example:
BSTRINS.W:
bstr32[31:msbw+1] = GR[rd][31: msbw+1] bstr32[msbw:lsbw] = GR[rj][msbw-lsbw:0] bstr32[lsbw-1:0] = GR[rd][lsbw-1:0] GR[rd] = SignExtend(bstr32[31:0], GRLEN)
And this check is also done by GNU as.
Yes, I think it’s better to document it in somewhere.
Comment Actions
A polite ping. Thanks.
@xry111 About the ISA document, I will recommend and push the right person to update. But that may not be too fast.
Comment Actions
Good to me, but as I've only contributed an one-line change to LLVM let's to wait for someone else :).
Perhaps pick a different set as 1 < 2 has been covered by the previous instruction.