inline asm constraints for conditions

David Edelsohn dje@watson.ibm.com
Mon Sep 29 20:31:00 GMT 2003


>>>>> Gabriel Paubert writes:

Gabriel> One thing I've done in a few cases when testing several flags in PPC
Gabriel> assembly is moving the flags to CR with an mtcrf instruction and
Gabriel> then use bt/bf on the corresponding bit. This eliminates quite a few
Gabriel> testing instructions and allows to prepare the CR field(s) well in
Gabriel> advance. GCC does not do anything remotely similar AFAICT. 
Gabriel> Is this kind of technique what you have in mind?

	Yes, this is what I was describing.

David



More information about the Gcc mailing list