Commit 0b08dd45 authored by Connor Abbott's avatar Connor Abbott

bifrost: Add scratch load/store instructions

parent a3905a7a
......@@ -1039,18 +1039,26 @@ static const ADDOpInfo ADDOpInfos[] = {
{ 0x0b000, "TEX", ADDTexCompact, true },
{ 0x0c188, "LOAD.i32", ADDTwoSrc, true },
{ 0x0c1a0, "LD_UBO.i32", ADDTwoSrc, true },
{ 0x0c1b8, "LD_SCRATCH.v2i32", ADDTwoSrc, true },
{ 0x0c1c8, "LOAD.v2i32", ADDTwoSrc, true },
{ 0x0c1e0, "LD_UBO.v2i32", ADDTwoSrc, true },
{ 0x0c1f8, "LD_SCRATCH.v2i32", ADDTwoSrc, true },
{ 0x0c208, "LOAD.v4i32", ADDTwoSrc, true },
// src0 = offset, src1 = binding
{ 0x0c220, "LD_UBO.v4i32", ADDTwoSrc, true },
{ 0x0c238, "LD_SCRATCH.v4i32", ADDTwoSrc, true },
{ 0x0c248, "STORE.v4i32", ADDTwoSrc, true },
{ 0x0c278, "ST_SCRATCH.v4i32", ADDTwoSrc, true },
{ 0x0c588, "STORE.i32", ADDTwoSrc, true },
{ 0x0c5b8, "ST_SCRATCH.i32", ADDTwoSrc, true },
{ 0x0c5c8, "STORE.v2i32", ADDTwoSrc, true },
{ 0x0c5f8, "ST_SCRATCH.v2i32", ADDTwoSrc, true },
{ 0x0c648, "LOAD.u16", ADDTwoSrc, true }, // zero-extends
{ 0x0ca88, "LOAD.v3i32", ADDTwoSrc, true },
{ 0x0caa0, "LD_UBO.v3i32", ADDTwoSrc, true },
{ 0x0cab8, "LD_SCRATCH.v3i32", ADDTwoSrc, true },
{ 0x0cb88, "STORE.v3i32", ADDTwoSrc, true },
{ 0x0cbb8, "ST_SCRATCH.v3i32", ADDTwoSrc, true },
// *_FAST does not exist on G71 (added to G51, G72, and everything after)
{ 0x0cc00, "FRCP_FAST.f32", ADDOneSrc },
{ 0x0cc20, "FRSQ_FAST.f32", ADDOneSrc },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment