>From: Misha Brukman <brukman at uiuc.edu>>On Fri, Feb 25, 2005 at 04:33:34PM -0600, Brent Monroe wrote: >> 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: onesearch.sun.com/search/clickthru?qt=+casa+SPARC+instruction&url=http://developers.sun.com/solaris/articles/sparcv9.pdf&pathInfo=/onesearch/index.jsp&hitNum=1&col=all Its a pdf with the complete SPARC v9 instruction set details. What you want is on page 152. Reid. On Fri, 2005-02-25 at 18:09, Brent Monroe wrote:> >From: Misha Brukman <brukman at uiuc.edu> > > >On Fri, Feb 25, 2005 at 04:33:34PM -0600, Brent Monroe wrote: > >> 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 > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu llvm.cs.uiuc.edu > mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20050225/38216e55/attachment.sig>
Reasonably Related Threads
- [LLVMdev] SparcV9 casa instruction
- Busco Ruby on Rails developer (latinoamérica-desde casa)
- LOTURI DE CASA (500mp) CU VEDERE LA MARE, (in rate de 200E / Luna) LANGA PLAJA CORBU / PRET - incepand de la 5500
- [LLVMdev] SparcV9 branches
- [LLVMdev] Can't build LLVM ( llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp problem)