Masked bitfield comparisons may yield incorrect results (back from the dead)

Jeffrey A Law law@upchuck.cygnus.com
Wed Mar 31 23:54:00 GMT 1999


  In message < 199903101241.HAA22967@zygorthian-space-raiders.mit.edu >you write:
  > The following additional patch fixes this problem, though perhaps not
  > in the prettiest way.  The reason for the slightly strange
  > organization is so that the size reduction is done to the fetched
  > values and the masks before they are combined.  At least on the x86,
  > this causes a movw to be generated for the RHS rather than a movzwl,
  > which is faster on some processors.
  > 
  > I truly hope I don't find any more bugs in this code.
  > 
  > (I'll send a combined patch to egcs-patches after some more testing.)
What's the status of getting a combined patch for all the problems?  I'm
unsure whether or not to try and use any of the existing patches since I
have no clue what the combined patch might look like :-)

  > (Pssst.  Is anyone actually reading this?)
Yes.   :-0
jeff



More information about the Gcc-bugs mailing list