~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/panfrost/compiler/valhall/ISA.xml

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
2074
2074
      Mux between A and B based on the provided mask. The condition specified
2075
2075
      as the `mux` modifier is evaluated on the mask. If true, `A` is chosen,
2076
2076
      else `B` is chosen. The `bit` modifier acts bitwise, equivalent to
2077
 
      `bitselect()` in OpenCL, so `MUX.i32.bit A, B, mask` calculates
 
2077
      `bitselect()` in OpenCL, so `MUX.v2i16.bit A, B, mask` calculates
2078
2078
      `(A & mask) | (B & ~mask)`.
2079
2079
    </desc>
2080
2080
    <mod name="mux" start="32" size="2"/>
2088
2088
      Mux between A and B based on the provided mask. The condition specified
2089
2089
      as the `mux` modifier is evaluated on the mask. If true, `A` is chosen,
2090
2090
      else `B` is chosen. The `bit` modifier acts bitwise, equivalent to
2091
 
      `bitselect()` in OpenCL, so `MUX.i32.bit A, B, mask` calculates
2092
 
      `(A &amp; mask) | (A &amp; ~mask)`.
 
2091
      `bitselect()` in OpenCL, so `MUX.v4i8.bit A, B, mask` calculates
 
2092
      `(A &amp; mask) | (B &amp; ~mask)`.
2093
2093
    </desc>
2094
2094
    <mod name="mux" start="32" size="2"/>
2095
2095
    <src>A</src>
2291
2291
      Adds an arbitrary 32-bit immediate embedded within the instruction stream.
2292
2292
      If no modifiers are required, this is preferred to `IADD.i32` with a
2293
2293
      constant accessed as a uniform. However, if the constant is available
2294
 
      inline, `IADD.f32` is preferred.
 
2294
      inline, `IADD.i32` is preferred.
2295
2295
 
2296
2296
      `IADD_IMM.i32` with the source tied to zero is the canonical immediate move.
2297
2297
    </desc>