This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]