Skip to content
Snippets Groups Projects
Commit 454371d8 authored by Kugan Vivekanandarajah's avatar Kugan Vivekanandarajah
Browse files

[match.pd] Handle abs pattern with convert


gcc/ChangeLog:

	* match.pd: Extend A CMP 0 ? A : -A into (type)A CMP 0 ? A : -A.
	Extend A CMP 0 ? A : -A into (type) A CMP 0 ? A : -A.

gcc/testsuite/ChangeLog:

	* g++.dg/absvect.C: New test.
	* gcc.dg/tree-ssa/absfloat16.c: New test.

Signed-off-by: default avatarKugan Vivekanandarajah <kvivekananda@nvidia.com>
parent 85910e65
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment