gcc/as option --march=z10 should certainly provide EPSW, but I'm I'm certain it's older than z10. When I mean new I mean more recent than s/370 :-)
But as mentioned in another response, unless you require the entire PSW to be stored you are better off using 3 or 4 instructions designed to extracts specific parts of the PSW. Richard - - Richard J Moore - FIET, FBCS, CEng, CITP IBM z/VM CP Endicott, Z Optimizer Manchester, Linux Technology Centre Member of the IBM Academy of Technology http://www-03.ibm.com/ibm/academy/index.html MOBEX: 37264807; Mobile (+44) (0)7739-875237 Office: (+44) (0)1962-817072 |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Miklos Szigetvari <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |[email protected] | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |07/07/2010 09:58 | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Re: Assembler question | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Sent by: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Linux on 390 Port <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| On 7/7/2010 10:40 AM, Richard J Moore wrote: > It's one of the more recent additions. Are you using the correct model info > on gcc? > > - - > Richard J Moore - FIET, FBCS, CEng, CITP > IBM z/VM CP Endicott, Z Optimizer Manchester, Linux Technology Centre > Member of the IBM Academy of Technology > http://www-03.ibm.com/ibm/academy/index.html > > MOBEX: 37264807; Mobile (+44) (0)7739-875237 > Office: (+44) (0)1962-817072 > > > |------------> > | From: | > |------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Miklos Szigetvari<[email protected]> | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | To: | > |------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |[email protected] | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Date: | > |------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |07/07/2010 09:13 | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Subject: | > |------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Assembler question | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Sent by: | > |------------> > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Linux on 390 Port<[email protected]> | > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > > > > > My colleague is porting some assembler code to z Linux (gcc compiler ) > and got some "invalid op code" assembler error for "EPSW" (extract psw) > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > > Hi Thank you How can you set the model info for ASM ? ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/ ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
