hsail: Fix a warning/build failure for HSAIL_X86.
The Bitselect operation definition used ~ to invert the bits of a mask value, but if that mask value is of type bool, that generates a warning. This change casts that value to a uint64_t so that it can always have ~ applied to it. Change-Id: I7fbfc6ff264bc32a265f2724c772b8fae08590f7 Reviewed-on: https://gem5-review.googlesource.com/c/14655 Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -703,7 +703,7 @@ gen('And', bit_types, 'src0 & src1')
|
||||
gen('Or', bit_types, 'src0 | src1')
|
||||
gen('Xor', bit_types, 'src0 ^ src1')
|
||||
|
||||
gen('Bitselect', bit_types, '(src1 & src0) | (src2 & ~src0)')
|
||||
gen('Bitselect', bit_types, '(src1 & src0) | (src2 & ~(uint64_t)src0)')
|
||||
gen('Popcount', ('U32',), '__builtin_popcount(src0)', 'PopcountInst', \
|
||||
('sourceType', ('B32', 'B64')))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user