Add/Subtract From/Negate instruction checks #11

Open
opened 2 years ago by Jean-François Nguyen · 0 comments
Collaborator

Add/Subtract From/Negate instruction checks

Instructions

D-form:

  • addi
  • addis
  • addic
  • addic.
  • subfic

MLS:D-form:

  • paddi

DX-form:

  • addpcis

XO-form:

  • add
  • add.
  • subf
  • subf.
  • addc
  • addc.
  • adde
  • adde.
  • subfc
  • subfc.
  • subfe
  • subfe.
  • addme
  • addme.
  • addze
  • addze.
  • subfme
  • subfme.
  • subfze
  • subfze.
  • neg
  • neg.

Invalid forms

Prefixed Add:

  • (R == 1) and (RA != 0)

GPR access

RA (read):

  • D-form/MLS:D-form if (RA != 0)

RB (read):

  • XO-form, except:
    • addme/addme.
    • addze/addze.
    • subfme/subfme.
    • subfze/subfze.
    • neg/neg.

RT (write):

  • all

CR access

Write:

  • '.' suffix (Rc=1)

SPR access

XER (read):

  • 'e' suffix (Extended)

XER (write):

  • 'c' suffix (Carrying)
  • 'e' suffix (Extended)
Add/Subtract From/Negate instruction checks =========================================== Instructions ------------ D-form: - `addi` - `addis` - `addic` - `addic.` - `subfic` MLS:D-form: - `paddi` DX-form: - `addpcis` XO-form: - `add` - `add.` - `subf` - `subf.` - `addc` - `addc.` - `adde` - `adde.` - `subfc` - `subfc.` - `subfe` - `subfe.` - `addme` - `addme.` - `addze` - `addze.` - `subfme` - `subfme.` - `subfze` - `subfze.` - `neg` - `neg.` Invalid forms ------------- Prefixed Add: - `(R == 1) and (RA != 0)` GPR access ---------- RA (read): - D-form/MLS:D-form if `(RA != 0)` RB (read): - XO-form, except: * `addme/addme.` * `addze/addze.` * `subfme/subfme.` * `subfze/subfze.` * `neg/neg.` RT (write): - all CR access --------- Write: - '.' suffix (Rc=1) SPR access ---------- XER (read): - 'e' suffix (Extended) XER (write): - 'c' suffix (Carrying) - 'e' suffix (Extended)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cores/power-fv#11
Loading…
There is no content yet.