Select instruction support in GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi there

i have some general questions on SELECT instructions and their support
in GCC, i.e. instructions that apply a conditional move given the
value of a predicate.
E.g. a select instruction would have the following semantics:

dst <- SELECT cond, src1, src2 where dst = src1, if cond is true;
src2, otherwise.
                                            
[May also see reference:
http://lapwww.epfl.ch/dev/machsuif/opt_passes/index.php; specifically
the ifconv.pdf pass and documentation]

Such instructions are useful for partial predication. A conditional
move of src1 would be applied for dst = src2.

Here are my questions:

1. How should I code the pattern for a SELECT instruction in an *.md file?
2. Does any available backend define (and is able to match) something
like a conditional move?
3. Should I devise a peephole pattern for matching SELECT constructs?
Any directions to that?

I would like to thank you in advance.

Kind regards
Nikolaos Kavvadias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFFPjx0MPiy0tCWlz4RAlIbAKCQvOSUovQh8G1yTLj0kPK+mAsZXgCeLuyV
qBgsq18DESI7og6J24SEJnY=
=OHyW
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux