]> git.ipfire.org Git - thirdparty/gcc.git/commit
gimplefe: Round trip of rotates [PR119432]
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 26 Apr 2025 12:49:23 +0000 (05:49 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Mon, 28 Apr 2025 17:14:14 +0000 (10:14 -0700)
commitbfc3154375710a37969b2002dc87219dc2102a13
tree305337d66243e32754d6d50772ca3fff6bcaaaa5
parented3374b0542e0383f03f1db1aacbeef0e693a862
gimplefe: Round trip of rotates [PR119432]

This adds support for rotate left/right to the GIMPLE front-end
via __ROTATE_LEFT/__ROTATE_RIGHT oeprators.

PR c/119432
gcc/c/ChangeLog:

* gimple-parser.cc (gimple_binary_identifier_code): Add
__ROTATE_LEFT and __ROTATE_RIGHT.

gcc/ChangeLog:

* tree-pretty-print.cc (op_symbol_code): For LROTATE_EXPR,
output __ROTATE_LEFT for gimple.
For RROTATE_EXPR output __ROTATE_RIGHT for gimple.

gcc/testsuite/ChangeLog:

* gcc.dg/gimplefe-57.c: New test.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/c/gimple-parser.cc
gcc/testsuite/gcc.dg/gimplefe-57.c [new file with mode: 0644]
gcc/tree-pretty-print.cc