commit | 45801364d528902848a6c5a7096b9caf2cbf3d3f | [log] [tgz] |
---|---|---|
author | Cindy Liu <hcindyl@google.com> | Wed Jul 26 23:50:38 2023 -0700 |
committer | Cindy Liu <hcindyl@google.com> | Fri Jul 28 14:53:22 2023 -0700 |
tree | 1732c94bcd90dced0123b2ee67cbce83a4d378bf | |
parent | cd1993a1c36c4fc44867354bf80688d2df6bff2b [diff] |
Fix instruction overflow/underflow problem There are undefined behaviors of integer type overflow/underflow in arithmetic/logic operations. Cast the inputs to the proper data type before the operation to avoid undefined behaviors. Modify the test input vectors to ensure the min/max of the input type is covered. PiperOrigin-RevId: 551429757