IBM Z/Architecture Reference Summary

Transcription

z/ArchitectureIBMrReference SummarySA22-7871-11

.

z/ArchitectureIBMrReference SummarySA22-7871-11

Twelfth Edition (May, 2022)This revision differs from the previous edition by containing instructions related to thefacilities marked by a bar under “Facility” in “Preface” and minor corrections and clarifications. Changes are indicated by a bar in the margin.References in this publication to IBM products, programs, or services do not implythat IBM intends to make these available in all countries in which IBM operates. Anyreference to an IBM program product in this publication is not intended to state orimply that only IBM’s program product may be used. Any functionally equivalent program may be used instead.Additional copies of this and other IBM publications may be ordered or downloadedfrom the IBM publications web site at http://www.ibm.com/support/documentation.Please direct any comments on the contents of this publication to:Internet e-mail: mhvrcfs@us.ibm.comIBM may use or distribute whatever information you supply in any way it believesappropriate without incurring any obligation to you. Copyright International Business Machines Corporation 2001-2022. All rightsreserved.US Government Users Restricted Rights — Use, duplication, or disclosure restrictedby GSA ADP Schedule Contract with IBM Corp.iiz/Architecture Reference Summary

PrefaceThis publication is intended primarily for use by z/Architecture assembler-languageapplication programmers. It contains basic machine information summarized from theIBM z/Architecture Principles of Operation (SA22-7832), about the IBM Z processors. It also contains frequently used information from IBM ESA/390 Common I/ODevice Commands and Self Description (SA22-7204), IBM System/370 ExtendedArchitecture Interpretive Execution (SA22-7095), The Load-Program-Parameter andthe CPU-Measurement Facilities (SC23-2260), and IBM High Level Assembler forz/OS, z/VM & z/VSE Language Reference (SC26-4940). This publication will beupdated from time to time. However, the above publications and others cited in thispublication are the authoritative reference sources and will be first to reflect changes.The following instructions may be uninstalled or not available on a particular model:FacilityInstructionASN-and-LX-reuseEPAIR, ESAIR, PTI, SSAIRBEAR-enhancementLBEAR, LPSWEY, INCDAT-enhancement 1CSPG, IDTEDAT-enhancement 2LPTEADecimal-floating-pointADTR, AXTR, CDGTR, CDSTR, CDTR, CDUTR, CEDTR,CEXTR, CGDTR, CGXTR, CSDTR, CSXTR, CUDTR,CUXTR, CXGTR, CXSTR, CXTR, CXUTR, DDTR, DXTR,EEDTR, EEXTR, ESDTR, ESXTR, FIDTR, FIXTR,IEDTR, IEXTR, KDTR, KXTR, LDETR, LDXTR, LEDTR,LTDTR, LTXTR, LXDTR, MDTR, MXTR, QADTR, QAXTR,RRDTR, RRXTR, SDTR, SLDT, SLXT, SRDT, SRXT,SXTR, TDCDT, TDCET, TDCXT, TDGDT, TDGET, packed-conversionCDPT, CPDT, CPXT, CXPTDFP-zoned-conversionCDZT, CXZT, CZDT, CZXTDistinct-operandsAGHIK, AGRK, AHIK, ALGHSIK, ALGRK, ALHSIK, ALRK,ARK, NGRK, NRK, OGRK, ORK, SGRK, SLAK, SLGRK,SLLK, SLRK, SRAK, SRK, SRLK, XGRK, XRKEnhanced-DAT 1PFMFEnhanced-DAT ution-hintBPP, BPRP, NIAIExpanded-storagePGIN, PGOUTExtended-immediateAFI, AGFI, ALFI, ALGFI, CFI, CGFI, CLFI, CLGFI,FLOGR, IIHF, IILF, LBR, LGBR, LGHR, LGFI, LHR, LLC,LLCR, LLGCR, LLGHR, LLH, LLHR, LLIHF, LLILF, LT,LTG, NIHF, NILF, OIHF, OILF, SLFI, SLGFI, XIHF, XILFExtended-translation 2CLCLU, MVCLU, PKA, PKU, TP, TROO, TROT, TRTO,TRTT, UNPKA, UNPKUExtended-translation 3CU14, CU24, CU41, CU42, SRSTU, TRA, AXTRA, CDFBRA, CDFTR, CDGBRA, CDGTRA, CDLFBR, CDLFTR, CDLGBR, CDLGTR, CEFBRA,CEGBRA, CELFBR, CELGBR, CFDBRA, CFDTR, CFEBRA, CFXBRA, CFXTR, CGDBRA, CGDTRA, CGEBRA,CGXBRA, CGXTRA, CLFDBR, CLFDTR, CLFEBR,CLFXBR, CLFXTR, CLGDBR, CLGDTR, CLGEBR,CLGXBR, CLGXTR, CXFBRA, CXFTR, CXGBRA, CXGTRA, CXLFBR, CXLFTR, CXLGBR, CXLGTR, DDTRA,DXTRA, FIDBRA, FIEBRA, FIXBRA, LDXBRA, LEDBRA,LEXBRA, MDTRA, MXTRA, SDTRA, SRNMB, SXTRAFloating-point-support-sign-handlingCPSDR, LCDFR, LNDFR, LPDFRiii

FacilityInstructionFPR-GR-transferLDGR, LGDRGeneral-instructions-extensionASI, AGSI, ALSI, ALGSI, CRB, CGRB, CRJ, CGRJ, CRT,CGRT, CGH, CHHSI, CHSI, CGHSI, CHRL, CGHRL, CIB,CGIB, CIJ, CGIJ, CIT, CGIT, CLRB, CLGRB, CLRJ,CLGRJ, CLRT, CLGRT, CLHHSI, CLFHSI, CLGHSI, CLIB,CLGIB, CLIJ, CLGIJ, CLFIT, CLGIT, CLRL, CLHRL,CLGRL, CLGHRL, CLGFRL, CRL, CGRL, CGFRL,ECAG, LAEY, LTGF, LHRL, LGHRL, LLHRL, LLGHRL,LLGFRL, LRL, LGRL, LGFRL, MVHHI, MVHI, MVGHI,MFY, MHY, MSFI, MSGFI, PFD, PFDRL, RNSBG,RXSBG, RISBG, ROSBG, STHRL, STRL, STGRLGuarded storageLGG, LGSC, LLGFSG, STGSCHFP-multiply-and-add/subtractMAD, MADR, MAE, MAER, MSD, MSDR, MSE, MSERHFP-unnormalized extensionsMAY, MAYR, MAYH, MAYHR, MAYL, MAYLR, MY, MYH,MYL, MYR, MYHR, MYLRHigh-wordAHHHR, AHHLR, AIH, ALHHHR, ALHHLR, ALSIH,ALSIHN, BRCTH, CHF, CHHR, CHLR, CIH, CLHF,CLHHR, CLHLR, CLIH, LBH, LHH, LFH, LLCH, LLHH,RISBHG, RISBLG, SHHHR, SHHLR, SLHHHR, SLHHLR,STCH, STHH, STFHIEEE-exception-simulationLFAS, SFASRInsert-reference-bits-multiple facilityIRBMInterlocked-accessLAA, LAAG, LAAL, LAALG, LAN, LANG, LAO, LAOG,LAX, LAXG, LPD, LPDGLoad-and-trapLAT, LFHAT, LGAT, LLGFAT, LLGTATLoad-and-zero-rightmost-byteLLZRGF, LZRF, LZRGLoad/store-on-condition facility 1LOC, LOCG, LOCGR, LOCR, STOC, STOCGLoad/store-on-condition facility 2LOCFH, LOCFHR, LOCGHI, LOCHHI, LOCHI, STOCFHLong displacementAHY, ALY, AY, CDSY, CHY, CLIY, CLMY, CLY, CSY, CVBY,CVDY, CY, ICMY, ICY, LAMY, LAY, LB, LDY, LEY, LGB,LHY, LMY, LRAY, LY, MSY, MVIY, NIY, NY, OIY, OY, SHY,SLY, STAMY, STCMY, STCY, STDY, STEY, STHY, STMY,STY, SY, TMY, XIY, XYMessage-security-assistKM, KMC, KIMD, KLMD, KMACMessage-security-assist extension 3PCKMOMessage-security-assist extension 4KMCTR, KMF, KMO, PCCMessage-security-assist extension 5PRNOMessage-security-assist extension 8KMAMessage-security-assist extension 9KDSAMiscellaneous-instruction-extensions 1 CLT, CLGT, RISBGNMiscellaneous-instruction-extensions 2 AGH, BIC, MG, MGH, MGRK, MSC, MSGC, MSGRKC,MSRKC, SGHMiscellaneous-instruction-extensions 3 MVCRL, NCGRK, NCRK, NNGRK, NNRK, NOGRK,NORK, NXGRK, NXRK, OCGRK, OCRK, SELFHR,SELGR, etwork-processing-assistNNPA, VCFN, VCLFNH, VCLFNL, VCNF, VCRNFParsing-enhancementTRTE, reference-bits-multipleRRBMStore-clock fastSTCKFStore-facility-list extendedSTFLETOD-clock steeringPTFFTransactional-executionETND, NTSTG, TABORT, TBEGIN, itecture Reference Summary

ureLCBB, VA, VAC, VACC, VACCC, VAVG, VAVGL, VCDG,VCDLG, VCEQ, VCGD, VCH, VCHL, VCKSM, VCLGD,VCLZ, VCTZ, VEC, VECL, VERIM, VERLL, VERLLV,VESL, VESLV, VESRA, VESRAV, VESRL, VESRLV, VFA,VFAE, VFCE, VFCH, VFCHE, VFD, VFEE, VFENE, VFI,VFLL, VFLR, VFM, VFMA, VFMS, VFPSO, VFS, VFSQ,VFTCI, VGBM, VGEF, VGEG, VGFM, VGFMA, VGM,VISTR, VL, VLBB, VLC, VLEB, VLEF, VLEG, VLEH,VLEIB, VLEIF, VLEIG, VLEIH, VLGV, VLL, VLLEZ, VLM,VLP, VLR, VLREP, VLVG, VLVGP, VMAE, VMAH, VMAL,VMALE, VMALH, VMALO, VMAO, VME, VMH, VML,VMLE, VMLH, VMLO, VMN, VMNL, VMO, VMRH, VMRL,VMX, VMXL, VN, VNC, VNO, VO, VPDI, VPERM, VPK,VPKLS, VPKS, VPOPCT, VREP, VREPI, VS, VSBCBI,VSBI, VSCBI, VSCEF, VSCEG, VSEG, VSEL, VSL,VSLB, VSLDB, VSRA, VSRAB, VSRL, VSRLB, VST,VSTEB, VSTEF, VSTEG, VSTEH, VSTL, VSTM, VSTRC,VSUM, VSUMG, VSUMQ, VTM, VUPH, VUPL, VUPLH,VUPLL, VX, WFC, WFKVector-enhancements facility 1VBPERM, VFMAX, VFMIN, VFNMA, VFNMS, VMSL,VNN, VNX, VOCVector-enhancements facility 2VLBR, VLBRREP, VLEBRF, VLEBRG, VLEBRH, VLER,VLLEBRZ, VSLD, VSRD, VSTBR, VSTEBRF, VSTEBRG,VSTEBRH, VSTER, VSTRSVector-packed-decimalVAP, VCP, VCVB, VCVBG, VCVD, VCVDG, VDP, VLIP,VMP, VMSP, VPKZ, VPSOP, VRP, VSDP, VSRP, VSP, VTP,VUPKZ, VLRLR, VLRL, VSTRLR, VSTRLVector-packed-decimal-enhancement 2 VCLZDP, VCSPH, VPKZR, VSCHP, VSCSHP, VSRPR,VUPKZH, VUPKZLFor information about Enterprise Systems Architecture/390 (ESA/390 ) architecture, refer to IBM Enterprise Systems Architecture/390 Principles of Operation,SA22-7201, and IBM Enterprise Systems Architecture/390 Reference Summary,SA22-7209.Note: IBM, IBM Z, z/Architecture, eServer, zSeries, z Systems, Enterprise SystemsArchitecture/390, and ESA/390 are trademarks or registered trademarks of the International Business Machines Corporation in the United States, other countries, orboth.v

viz/Architecture Reference Summary

ContentsPreface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iiiContents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viiMachine Instruction Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Machine Instructions by Mnemonic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Machine Instructions by Operation Code. . . . . . . . . . . . . . . . . . . . . . . . . 30Condition Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Assembler Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42CNOP Alignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Extended-Mnemonic Instructions for Branch on Condition andBranch Indirect on Condition . . . . . . . . . . . . . . . . . . . . . . . . . . 43Extended-Mnemonic Instructions for Relative-Branch Instructions 44Extended-Mnemonic Suffixes for Compare-and-Branch, andCompare-and-Trap Instructions . . . . . . . . . . . . . . . . . . . . . . . . 44Extended-Mnemonic Suffixes for Load/Store-on-ConditionInstructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Extended-Mnemonic Suffixes for Rotate-Then-Insert / AND / OR /Exclusive OR-Selected-Bits Instructions . . . . . . . . . . . . . . . . . 45Extended-Mnemonics for NOT operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Extended-Mnemonics for Vector-Facility Instructions . . . . . . . . . . 45Summary of Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46Assigned Storage Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46External-Interruption Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Program-Interruption Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48Data-Exception Code (DXC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49Vector-Exception Code (VXC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49PER Code, ATMID, and AI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50Translation-Exception Identification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50Machine-Check Interruption Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51External-Damage Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Facility Indications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54Floating-Point-Control (FPC) Register . . . . . . . . . . . . . . . . . . . . . . . . . . 57Program-Status Word (PSW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58z/Architecture PSW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Short-Format PSW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58Dynamic Address Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Virtual-Address Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Address-Space-Control Element (ASCE) . . . . . . . . . . . . . . . . . . . 59Region-Table or Segment-Table Designation (RTD or STD) . . . . 59Real-Space Designation (RSD) . . . . . . . . . . . . . . . . . . . . . . . . . . 59Table Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Region-Table Entry (RTE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Segment-Table Entry (STE, FC 0) . . . . . . . . . . . . . . . . . . . . . . . . 60Segment-Table Entry (STE, FC 1) . . . . . . . . . . . . . . . . . . . . . . . . 60Page-Table Entry (PTE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61ASN Translation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61Address-Space Number (ASN) . . . . . . . . . . . . . . . . . . . . . . . . . . . 61ASN-First-Table Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61ASN-Second-Table Entry (ASTE) . . . . . . . . . . . . . . . . . . . . . . . . . 61PC-Number Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Program-Call Number (20-Bit) . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Program-Call Number (32-Bit, Bit 44 0) . . . . . . . . . . . . . . . . . . . . 62vii

Program-Call Number (32-Bit, Bit 44 1) . . . . . . . . . . . . . . . . . . . . 62Linkage-Table Entry (LTE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Linkage-First-Table Entry (LFTE) . . . . . . . . . . . . . . . . . . . . . . . . . 63Linkage-Second-Table Entry (LSTE) . . . . . . . . . . . . . . . . . . . . . . 63Entry-Table Entry (ETE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63Access-Register Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64Access-List-Entry Token (ALET) . . . . . . . . . . . . . . . . . . . . . . . . . 64Dispatchable-Unit-Control Table (DUCT) . . . . . . . . . . . . . . . . . . . 64Access-List Entry (ALE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65Linkage-Stack Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65Entry Descriptor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65Header Entry (Entry Type 0001001) . . . . . . . . . . . . . . . . . . . . . . . 66Trailer Entry (Entry Type 0001010) . . . . . . . . . . . . . . . . . . . . . . . 66Branch State Entry (Entry Type 0001100) andProgram-Call State Entry (Entry Type 0001101) . . . . . . . . . . . 66Trapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67Trap Control Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67Trap Save Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68Trace-Entry Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69Identification of Trace Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69Branch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70Branch in Subspace Group (if ASN Tracing on) . . . . . . . . . . . . . . 70Mode Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Mode-Switching Branch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Program Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71Program Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72Program Transfer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74Set Secondary ASN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74Operand of Store Clock and Store Clock Fast . . . . . . . . . . . . . . . . . . . . 75Operand of Store Clock Extended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75Transaction Diagnostic Block (TDB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76Guarded-Storage Facility Registers and Parameters . . . . . . . . . . . . . . . 77Guarded-Storage-Designation (GSD) Register . . . . . . . . . . . . . . 77Guarded-Storage Control Block. . . . . . . . . . . . . . . . . . . . . . . . . . . 77Guarded-Storage-Event Parameter List . . . . . . . . . . . . . . . . . . . . 77Operation-Request Block (ORB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78Command-Mode ORB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78Transport-Mode ORB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78Channel-Command Word (CCW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Format-0 CCW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Format-1 CCW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Indirect-Data-Address Word (IDAW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Format-1 IDAW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Format-2 IDAW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Modified-CCW-Indirect-Data-Address Word (MIDAW) . . . . . . . . . 80Transport Control Word (TCW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80Transport-Indirect-Data-Address Word (TIDAW) . . . . . . . . . . . . . 81Transport Command Control Block (TCCB) . . . . . . . . . . . . . . . . . . . . . . 81Transport Command Area Header (TCAH) . . . . . . . . . . . . . . . . . 81Device-Command Word (DCW) . . . . . . . . . . . . . . . . . . . . . . . . . . 82Transport Command Area Trailer (TCAT) . . . . . . . . . . . . . . . . . . 83CBC-Offset Block (COB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83Transport Status Block (TSB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84viiiz/Architecture Reference Summary

Transport Status Header (TSH) . . . . . . . . . . . . . . . . . . . . . . . . . . 84I/O-Status TSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Device-Detected-Program-Check TSA . . . . . . . . . . . . . . . . . . . . . 85Interrogate TSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86Subchannel-Information Block (SCHIB) . . . . . . . . . . . . . . . . . . . . . . . . . 87Path-Management-Control Word (PMCW) . . . . . . . . . . . . . . . . . . 87Interruption-Response Block (IRB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88Command-Mode Subchannel-Status Word (SCSW) . . . . . . . . . . 88Transport-Mode Subchannel-Status Word (SCSW) . . . . . . . . . . . 89Extended-Status Word (ESW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90Format-0 ESW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90Format-0 ESW Word 0 (Subchannel Logout) . . . . . . . . . . . . . . . . 91Format-0 ESW Word 1 (Extended-Report Word) . . . . . . . . . . . . . 91Format-1 ESW Word 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91Format-2 ESW Word 01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91Format-3 ESW Word 01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91Information Stored in ESW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Extended-Control Word (ECW) . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Extended-Measurement Word . . . . . . . . . . . . . . . . . . . . . . . . . . . 93Format 0 Measurement Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93Format 1 Measurement Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Channel-Report Word (CRW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Error-Recovery Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94Reporting Source. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95I/O Command Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95Standard Command-Code Assignments (CCW and DCW Bits 0-7) .95Standard Meanings of Bits of First Sense Byte . . . . . . . . . . . . . . . 95Hexadecimal and Decimal Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . 96Powers of 2 and 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98Character Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100Control Character Representations . . . . . . . . . . . . . . . . . . . . . . 102Additional ISO-8 Control Character Representations . . . . . . . . . 102Formatting Character Representations . . . . . . . . . . . . . . . . . . . . 102Two-Character BSC Data Link Controls . . . . . . . . . . . . . . . . . . . 102Commonly Used Editing Pattern Characters . . . . . . . . . . . . . . . 102ANSI-Defined Printer Control Characters . . . . . . . . . . . . . . . . . . 103ix

xz/Architecture Reference Summary

Machine Instruction FormatsEOp Code0I15Op Code0IEI815Op RIE-f8RIE-g8RIL-a8832RI432RI432I2RI24747Op Code474047/ / / / / / / / Op Code1632I424404032I340/ / / / / / / / Op Code1640I532I21636I2161636M3 / / / / Op Code1647Op Code4047/ / / / / / / / Op Code324047I2Op12M3 / / / / Op CodeI2M312R1Op Code03116R212R1Op Code0RI216R312R1Op Code031R312R1Op Code016M312R1Op Code0RI2R212R1Op Code0RIE-d12R1Op Code031R1 / / / /Op Code0I2Op124716Op12M1Op Code024Op12R1Op Code28 31RI312R1Op Code024RI2M1Op Code0I2I1//// ////016471

RIL-bR1Op Code0RIL-c8RIS808RRDM3128R3Op 416Op Code4047R228 31R228 31R228 31M3 / / / / Op Code2032364047D22031B21628 31D4B216D22031RI21631D2B21616R12420B2L18Op Code0////12Op Code0RSY-a20R312L1Op Code0M312R1Op Code0R3‡12R1Op CodeRSI12R1Op Code0R2R180RS-b32M3‡ M4‡Op CodeOp CodeI220160RS-a16D4/ / / / / / / / R1‡ R2‡Op CodeRRSB4160RRF-c-e47R1 / / / / R3Op CodeRRF-a,bRI21612 150RRE47R2‡R1Op Code016Op12R1Op CodeRR12M1Op Code0RI2OpD220B216/ / / / / / / / Op Code3247/ / / / / / / / Op Code32DL2204040DH232z/Architecture Reference Summary47Op Code4047

RSY-b0RX-a8RX-b880RXF88X28X21216I2‡Op Code0SIL16SIY16I2‡Op Code0SMIM1 / / / /Op Code0SS-a8L1Op Code8L2128124040DH2DL24747Op Code40DH23247Op 6B232D147B2322047RI2322020Op Code40D320B116363220B116I3L1Op Code0DL2B1163220B31680SS-c12L or L1Op Code0SS-b1636R1 / / / / Op Code20B1832D2B1Op Code0M3‡ / / / / Op Code20B1831D2B2‡Op Code0SID2B216473120B216Op Code40D2B21612M1Op Code0S123220B216X2R1Op Code0RXY-b12DH220B216X2R3Op CodeRXY-aX2DL2B2161280X2R1Op CodeB21612M1Op Code0RXE12R1Op Code0M3R1Op CodeD236B2324747D236473

e80VRI-f8VRI-g8V1Op 047RXB Op Code2836I3I2322440RXB Op Code36I3161647M4 RXB Op Code28M52436I4/ / / / M5243632M5I440M5‡ RXB Op CodeI4////R2 / / / / / / / / M 41236322047M4 RXB Op CodeI316363216V3D2M4 RXB Op CodeI21647M3‡ RXB Op 3632I2////12V1Op CodeD116V212V1Op Code0V212B420V212V1Op Code0V212V1Op Code16D23632V312V1Op CodeD220B1////12V1Op Code32////12V1Op CodeOp12V1Op Code04R3B220B21616Op CodeD1B1Op CodeVRI-a16160SSFB1B1L2Op Code0R3R1Op Code0R3R1Op CodeI328z/Architecture Reference Summary4047RXB Op Code364047RXB Op Code364047

VRR-aV1Op 80VRR-j80VRR-k8VRS-a80VRS-b8VRS-c808R312R1Op CodeV312V1Op Code0V212V1Op CodeV212V1Op Code0V212V1Op CodeV112R1Op CodeV112Op Code / / / /0R212Op Code / / / /0V212V1Op Code0V212V1Op CodeV212V1Op Code0V212V1Op CodeVRR-d12V1Op CodeV2V312/ / / / / / / / M5‡ M4‡ M3‡ RXB Op Code16V316V316V316V316242832364047/ / / / M5‡ / / / / M4‡ RXB Op Code20242832364047/ / / / M6‡ M5‡ M4‡ RXB Op Code202428M5‡ M6‡ / / / /202428M6‡ / / / / M5‡20242832364047V4 RXB Op Code32364047V4 RXB Op Code32364047R3 / / / / / / / / / / / / / / / / RXB Op Code1620364047/ / / / / / / / / / / / / / / / / / / / RXB Op Code16V216364047/ / / / M3 / / / / / / / / RXB Op Code202428364047/ / / / / / / / M3 M4‡ / / / / RXB Op Code16V3162428364047/ / / / M4 / / / / / / / / RXB Op Code202428364047/ / / / / / / / M3 / / / / / / / / RXB Op Code1624B216D220B21616D24047M4‡ RXB Op Code364047M4‡ RXB Op Code32D220363220B228364047M4 RXB Op Code323640475

Op Code / / / / R3VRS-d0VRV8VRX8VSI8X212I3Op Code012V1Op Code0V2V1Op Code0128B216D220B2161620204047364047M3‡ RXB Op Code32D22036M3‡ RXB Op Code32D2B21632D2B2V1 RXB Op Code364047V1 RXB Op Code32364047Denotes association with first, second, third, fourth, fifth, or sixthoperanda, b, c, d, e, fDistinguishes among instances of the same basic instructionformatBase register designation fieldB1, B2, B3, B4Displacement field (including DH and DL for long-displacementD1, D2, D3, D4forms)I, I2, I3, I4, I5Immediate operand fieldL, L1, L2Length fieldM1, M3, M4, M5, M6 Mask fieldR1, R2, R3Register designation fieldRelative-immediate operand fieldRI2, RI3, RI4RXBMost significant bits of vector registers designated by the V1, V2,V3, V4 fields, respectivelyX2Index register designation field‡For certain instructions, this operand is not defined1, 2, 3, 4, 5, 66z/Architecture Reference Summary

Machine Instructions by 3,I2NameAdd (32)Add Normalized (LH)Add (LB)Add (LB)Add Normalized (LH)Add (LD)Add (LD)Add Normalized (SH)Add (SB)Add (SB)Add Normalized (SH)Add Immediate (32)Add (64)Add (64 32)Add Immediate (64 32)Add (64 32)Add Halfword (64 16)Add Halfword Immediate (64 16)Add Immediate (64 16)Add (64)Add (64)Add Immediate (64 8)Add Halfword (32 16)Add High (32)Add High (32)Add Halfword Immediate (32 16)Add Immediate (32 16)Add Halfword (32 16)Add Immediate High (32)Add Logical (32)Add Logical with Carry (32)Add Logical with Carry (64)Add Logical with Carry (64)Add Logical with Carry (32)Add Logical Immediate (32)Add Logical (64)Add Logical (64 32)Add Logical Immediate (64 32)Add Logical (64 32)Add Logical with Signed Immediate(64 16)ALGRR1,R2Add Logical (64)ALGRK R1,R2,R3Add Logical (64)ALGSID1(B1),I2Add Logical with Signed Immediate (64 8)ALHHHR R1,R2,R3Add Logical High (32)ALHHLR R1,R2,R3Add Logical High (32)Add Logical with Signed ImmediateALHSIK R1,R3,I2(32 16)ALRR1,R2Add Logical (32)Add Logical (32)ALRKR1,R2,R3ALSID1(B1),I2Add Logical with Signed Immediate (32 8)ALSIHR1,I2Add Logical with Signed Immediate High(32)ALSIHN R1,I2Add Logical with Signed Immediate High(32)ALYR1,D2(X2,B2)Add Logical (32)APD1(L1,B1),D2(L2,B2) Add DecimalARR1,R2Add (32)ARKR1,R2,R3Add C2BE30AE31AC2AB91AECDBClass&Notesc c c c c c TF cF c c c cc EIcNcNc EIcNc MI2cNc DOcNc DOc GEcc HWc HWcc DOc LDc HWcc N3cNcNc N3c EIcNcNc EIcNc DAcNc DOc GEc HWc HWc DORRRRF-aSIYRIL-a1EB9FAEB6ECCAcc DOc GEc HWRIL-a CCB HWRXY-aSS-bRRRRF-aE35EFA1AB9F8c LD ccc DO7

,R2,M4R1,M3,R2,M4NameAdd Immediate (32 8)Add Unnormalized (SH)Add Unnormalized (SH)Add Unnormalized (LH)Add Unnormalized (LH)Add (EB)Add Normalized (EH)Add (ED)ADD (ED)Add (32)Branch and StackBranch and LinkBranch and LinkBranch and SaveBranch and SaveBranch and Save and Set ModeBranch on ConditionBranch on ConditionBranch on Count (32)Branch on Count (64)Branch on Count (64)Branch on Count (32)Branch Indirect on ConditionBranch Prediction PreloadBranch Prediction Relative PreloadBranch Relative and SaveBranch Relative and Save LongBranch Relative on ConditionBranch Relative on Condition LongBranch Relative on Count (32)Branch Relative on Count (64)Branch Relative on Count High (32)Branch Relative on Index High (32)Branch Relative on Index High (64)Branch Relative on Index Low or Equal (32)Branch Relative on Index Low or Equal (64)Branch and Set AuthorityBranch in Subspace GroupBranch and Set ModeBranch on Index High (32)Branch on Index High (64)Branch on Index Low or Equal (32)Branch on Index Low or Equal (64)Compare (32)Compare (LH)Compare (LB)Compare (LB)Convert from Fixed (LB 32)Convert from Fixed (LB 32)Convert from Fixed (LH 32)Convert from Fixed (LD 32)Convert from Fixed (LB 64)Convert from Fixed (LB 64)Convert from Fixed (LH 64)Convert from Fixed (LD 64)Convert from Fixed (LD 64)Convert from Logical (LB 32)Convert from Logical (LD 32)Con

ISKE R1,R2 Insert Storage Key Extended RRE B229 p IVSK R1,R2 Insert Virtual Storage Key RRE B223 q KDB R1,D2(X2,B2) Compare and Signal (LB) RXE ED18 c KDBR R1,R2 Compare and Signal (LB) RRE B318 c KDSA R1,R2 Compute Digital Signature Authentication RRE B93A c M9 KDTR R1,R2 Compare and Signal (LD) RRE B3E0 c TF