Hi folks. In the Bitselect instruction code for hsail, there's an
expression which uses ~ to invert the do a bitwise inverse of a source
value before bitwise and-ing it with another value. That's done to select
sets of bits between two integer values and merge them together into a
single integer which is the result.

That's all fine, except that it looks like sometimes the value going into
the operation is a boolean (I think from the B1 argument type), and at
least the version of gcc I have gets upset by that and reports a warning.

I don't know that code well enough to tinker with it, and its generated
code, and I don't know how to test it, so I'll just throw that out there
and hope the hsail experts have a chance to look at it and can propose a
fix.

Gabe
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to