On 12/13/2021 10:17 PM, liuhongt via Gcc-patches wrote:
This testcase should just go in gcc.c-torture/compile and remove the
dg-options too.
The main reason there is nothing specific to x86 here.

Thanks, here's the updated patch.


Check is_gimple_assign before gimple_assign_rhs_code.

gcc/ChangeLog:

        PR target/103682
        * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check
        is_gimple_assign before gimple_assign_rhs_code.

gcc/testsuite/ChangeLog:

        * gcc.c-torture/compile/pr103682.c: New test.
OK
jeff

Reply via email to