ubsan: loongarch : signed integer shift overflow.
authorliuzhensong <liuzhensong@loongson.cn>
Tue, 16 Nov 2021 11:15:29 +0000 (19:15 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Sun, 20 Mar 2022 01:37:12 +0000 (09:37 +0800)
commite36144c932b0ad0de4774b8bb2552178e4f2f2a6
treebb2e7622f9fdb18cf2ee64c3f6d010a756c4fa0a
parent1ab7a698a8c95afeb8a7c305b22cbae54355aa34
ubsan: loongarch : signed integer shift overflow.

   opcodes/
* loongarch-coder.c :
  int32_t ret = 0;
  ret <<= sizeof (ret) * 8 - len;
  ret >>= sizeof (ret) * 8 - len;
  ...
  Avoid ubsan warning.
opcodes/loongarch-coder.c