SparcV9 casa instruction

From: Misha Brukman <brukman@uiuc.edu>

I need to implement the compare and swap instruction in the
Sparc backend. It has the form:

casa [reg]imm, reg, reg

If you look in the instruction manual, each instruction has a
"format" which is F1, F2, F3 or F4, so your instruction needs
to inherit from one of those base classes and designate where
its operands map in the instruction. Just pick an
instruction in the same group and see how it's encoded in the
.td file, and follow the same format.

It seems casa and casax are the only two instructions in their
group. Could you point me towards where I can look up these
instruction formats?

Brent

Brent,

A little googling found this:

http://onesearch.sun.com/search/clickthru?qt=%2Bcasa+SPARC+instruction&url=http%3A%2F%2Fdevelopers.sun.com%2Fsolaris%2Farticles%2Fsparcv9.pdf&pathInfo=%2Fonesearch%2Findex.jsp&hitNum=1&col=all

Its a pdf with the complete SPARC v9 instruction set details. What you
want is on page 152.

Reid.