[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Assembler Language Reference

Migration of Branch Conditional Statements with No Separator after Mnemonic

The AIX Version 4 assembler may parse some statements different from the previous version of the assembler. This different parsing is only a possibility for statements that meet all the following conditions:

If an assembler program has statements that meet all the conditions above, and the minus sign, or a plus sign in the same location, is intended to be part of the operands, not part of the mnemonic, the source program must be modified. This is especially important for minus signs, because moving a minus sign can significantly change the meaning of a statement.

The possibility of different parsing occurs in AIX Version 4 because the assembler was modified to support branch prediction extended mnemonics which use the plus sign and minus sign as part of the mnemonic. In previous versions of the assembler, letters and period (.) were the only possible characters in mnemonics. For information on using the new function, see "Extended Mnemonics for Branch Prediction".

Examples

  1. The following statement is parsed by the AIX Version 4 assembler so that the minus sign is part of the mnemonic (but previous versions of the assembler parsed the minus sign as part of the operands) and must be modified if the minus sign is intended to be part of the operands:
      bnea-   16  #  Separator after the - , but none before
                  #  Now: bnea- is a Branch Prediction Mnemonic
                  #       and 16 is operand.
                  #  Previously: bnea was mnemonic
                  #              and -16 was operand.   
  2. The following are several sample statements which the AIX Version 4 assembler parses the same as previous assemblers (the minus sign will be interpreted as part of the operands):
       bnea  -16  # Separator in source program - Good practice
       bnea-16    #  No separators before or after minus sign
       bnea  - 16 # Separators before and after the minus sign

Related Information

Extended Mnemonics for Branch Prediction


[ Previous | Next | Contents | Home | Search ]