match.pd: Add flag_unsafe_math_optimizations check before deciding on the widest...
authorBarnaby Wilks <barnaby.wilks@arm.com>
Mon, 9 Sep 2019 12:05:36 +0000 (12:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 9 Sep 2019 12:05:36 +0000 (12:05 +0000)
commita6edd18cb32993213508aaa4879af7485c1bbaac
tree55532c779ab56965c8989e0f6e4c2c47b0fba1b3
parentf48ef52e40171a47221401a0f7b4e8648b6c541f
match.pd: Add flag_unsafe_math_optimizations check before deciding on the widest type in...

2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>

* match.pd: Add flag_unsafe_math_optimizations check
before deciding on the widest type in a binary math operation.

* gcc.dg/fold-binary-math-casts.c: New test.

From-SVN: r275518
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-binary-math-casts.c [new file with mode: 0644]