This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] RS6000 : Fix insvsi_internal1


	BTW, I think the testcase is slightly incorrect.

  if (a.xy[0] != (SINT16) (0xffff << 2))

should be

  if (a.xy[0] != ((SINT16) 0xffff << 2))

The result is the same for the test, but to be equivalent to the earlier
computation, you should be shifting a signed short constant, not casting
the shifted value to signed short.

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]