[Libre-soc-bugs] [Bug 898] binutils svp64 objdump support

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Aug 29 00:28:55 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=898

--- Comment #28 from Dmitry Selyutin <ghostmansd at gmail.com> ---
Here's what we have at these stage. The output is obviously huge, so I'll limit
it to an illustrative example.

struct svp64_insn {
    uint64_t value;
};

static inline uint64_t
svp64_insn_get_prefix_id(const struct svp64_insn *insn)
{
  uint64_t value = insn->value;

  return (
    (((value >> UINT64_C(56)) & UINT64_C(1)) << UINT64_C(0)) |
    (((value >> UINT64_C(54)) & UINT64_C(1)) << UINT64_C(1)) |
    UINT64_C(0)
  );
}

static inline void
svp64_insn_set_prefix_id(struct svp64_insn *insn, uint64_t value)
{
  insn->value = (
    (((value >> UINT64_C(0)) & UINT64_C(1)) << UINT64_C(56)) |
    (((value >> UINT64_C(1)) & UINT64_C(1)) << UINT64_C(54)) |
    UINT64_C(0)
  );
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list