Public bug reported: target-mips/dsp_helper.c:3480:1: error: V629 Consider inspecting the '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type.
Source code is temp = temp & ((0x01 << (size + 1)) - 1); If size >= 32, then better code might be temp = temp & ((0x01UL << (size + 1)) - 1); target-mips/dsp_helper.c:3509:1: error: V629 Consider inspecting the '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. Duplicate ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1631625 Title: target-mips/dsp_helper.c: two possible bad shifts Status in QEMU: New Bug description: target-mips/dsp_helper.c:3480:1: error: V629 Consider inspecting the '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. Source code is temp = temp & ((0x01 << (size + 1)) - 1); If size >= 32, then better code might be temp = temp & ((0x01UL << (size + 1)) - 1); target-mips/dsp_helper.c:3509:1: error: V629 Consider inspecting the '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. Duplicate To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1631625/+subscriptions