aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-03-23 10:29:37 +0100
committerJakub Jelinek <jakub@redhat.com>2022-03-23 10:29:37 +0100
commit4a9e92164a547afcf8cd3fc593c7660238ad2d59 (patch)
tree6903a24b602e7dac85bef0f590fffb7e89ed89a0 /gcc/fold-const.cc
parent1002a7ace111d746249fdea71af9b8e039cea0eb (diff)
downloadgcc-4a9e92164a547afcf8cd3fc593c7660238ad2d59.zip
gcc-4a9e92164a547afcf8cd3fc593c7660238ad2d59.tar.gz
gcc-4a9e92164a547afcf8cd3fc593c7660238ad2d59.tar.bz2
testsuite: Fix up sse2-v1ti-shift-3.c test [PR102986]
This test is dg-do run and invokes UB when these rotate functions are called with 0 as second argument. There are some other tests that do this but they are dg-do compile only and not even call those functions at all, so it IMHO doesn't matter that they are only well defined for [1,127] and not [0,127]. The following patch fixes it, we pattern recognize both forms as rotates and we emit identical assembly. 2022-03-23 Jakub Jelinek <jakub@redhat.com> PR target/102986 * gcc.target/i386/sse2-v1ti-shift-3.c (rotr_v1ti, rotl_v1ti, rotr_ti, rotl_ti): Use -i&127 instead of 128-i to avoid UB on i == 0.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions