[PATCH] Fix undefined behavior in h8300 backend
authorJeff Law <law@redhat.com>
Mon, 21 Sep 2015 17:09:53 +0000 (11:09 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 21 Sep 2015 17:09:53 +0000 (11:09 -0600)
commitd7b00a16de70d84dce94a1f760265497f3408a7b
treec5918fcbec8344440b4eb7beeb5d489477c19b60
parentbdaaa8b70f8e76b2743ee7bafc438e499411753f
[PATCH] Fix undefined behavior in h8300 backend

* config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
behavior.

* gcc.target/h8300/andsi3_ashift_n_lower.c: New test.

From-SVN: r227978
gcc/ChangeLog
gcc/config/h8300/h8300.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/h8300/andsi3_ashift_n_lower.c [new file with mode: 0644]