[LoongArch] Make sure that the LoongArchISD::BSTRINS node uses the correct `MSB`...
authorwanglei <wanglei@loongson.cn>
Mon, 11 Mar 2024 00:59:17 +0000 (08:59 +0800)
committerTom Stellard <tstellar@redhat.com>
Wed, 13 Mar 2024 04:55:37 +0000 (21:55 -0700)
commitd77c5c3830d925b3795e2f1535a6568399fe6626
tree926334ec6c11f908cfc86adc9124b1f0aeec3dc5
parent1de8ea75d9b309fd14e9f1be86ea5079d9a53d69
[LoongArch] Make sure that the LoongArchISD::BSTRINS node uses the correct `MSB` value (#84454)

The `MSB` must not be greater than `GRLen`. Without this patch, newly
added test cases will crash with LoongArch32, resulting in a 'cannot
select' error.

(cherry picked from commit edd4c6c6dca4c556de22b2ab73d5bfc02d28e59b)
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/test/CodeGen/LoongArch/bstrins_w.ll