This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to generate x86 seto/sets instructions?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 1 May 2007 16:02:39 -0700
- Subject: How to generate x86 seto/sets instructions?
SSE4.2 string intrinsics need to generate seto/sets for OF==1
and SF==1, which aren't the standard arithmetic comparison and
aren't support by gcc. I was wondering what was the best way
to support them.
My current plan is to add a new CC_MODE, CCX86, and reuse UNGT
for OF == 1, UNLT for SF == 1 to support pcmp[ei]str[im]/setCC
instructions:
suffix rtx_code
a GTU
c LTU
o UNGT OF == 1
s UNLT SF == 1
z EQ
Will it work?
H.J.