This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
v1 = (v2 == v3); generate branching instructions
- From: ftwilliam <ftwilliam at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sun, 3 May 2015 15:22:20 -0500
- Subject: v1 = (v2 == v3); generate branching instructions
- Authentication-results: sourceware.org; auth=none
My architecture has the following instructions:
seq %1, %2;
slt %1, %2;
sgt %1, %2;
which are used to set the value of a register depending on the
comparison associated with those instructions.
What pattern should I define in order to output such instruction when
I have an expression such as:
v1 = (v2 == v3);
Currently GCC, match the pattern "cbranchsi4", resulting in branching
instructions generated; but I wish to avoid the generation of
branching instructions.
So, please, what pattern should I define ?