Skip to content

Commit 5892af7

Browse files
committed
AMDGPU: Handle true16 disassembly of ds_write_b8/b16
This avoids an inconsistency in pseudo definitions I ran into for a later patch.
1 parent c3c9b84 commit 5892af7

File tree

5 files changed

+118
-81
lines changed

5 files changed

+118
-81
lines changed

llvm/lib/Target/AMDGPU/DSInstructions.td

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,21 @@ multiclass DS_Real_gfx12_with_name<bits<8> op, string name> {
13801380
defm "" : DS_Real_gfx12<op, !cast<DS_Pseudo>(NAME), name>;
13811381
}
13821382

1383+
multiclass DS_Real_gfx12_with_t16<bits<8> op,
1384+
string name = !tolower(NAME)> {
1385+
let DecoderNamespace = "GFX12_FAKE16" in {
1386+
defm "" : DS_Real_gfx12<op, !cast<DS_Pseudo>(NAME#"_gfx9"), name>;
1387+
}
1388+
1389+
let DecoderNamespace = "GFX12", AssemblerPredicate = isGFX12Plus in {
1390+
def _gfx12_t16 :
1391+
Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<op,
1392+
!cast<DS_Pseudo>(NAME#"_t16"),
1393+
SIEncodingFamily.GFX12, name>,
1394+
True16D16Table<NAME#"_D16_HI", NAME>;
1395+
}
1396+
}
1397+
13831398
defm DS_MIN_F32 : DS_Real_gfx12_with_name<0x012, "ds_min_num_f32">;
13841399
defm DS_MAX_F32 : DS_Real_gfx12_with_name<0x013, "ds_max_num_f32">;
13851400
defm DS_MIN_RTN_F32 : DS_Real_gfx12_with_name<0x032, "ds_min_num_rtn_f32">;
@@ -1444,17 +1459,37 @@ multiclass DS_Real_gfx11<bits<8> op, DS_Pseudo ps = !cast<DS_Pseudo>(NAME),
14441459
} // End AssemblerPredicate
14451460
}
14461461

1462+
multiclass DS_Real_gfx11_with_t16<bits<8> op,
1463+
string name = !tolower(NAME)> {
1464+
let DecoderNamespace = "GFX11_FAKE16" in {
1465+
defm "" : DS_Real_gfx11<op, !cast<DS_Pseudo>(NAME#"_gfx9"), name>;
1466+
}
1467+
1468+
let DecoderNamespace = "GFX11", AssemblerPredicate = isGFX11Only in {
1469+
def _gfx11_t16 :
1470+
Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<op,
1471+
!cast<DS_Pseudo>(NAME#"_t16"),
1472+
SIEncodingFamily.GFX11, name>,
1473+
True16D16Table<NAME#"_D16_HI", NAME#"_gfx9">;
1474+
}
1475+
}
1476+
14471477
multiclass DS_Real_gfx11_gfx12<bits<8> op,
14481478
string name = !tolower(NAME),
14491479
DS_Pseudo ps = !cast<DS_Pseudo>(NAME)>
14501480
: DS_Real_gfx11<op, ps, name>,
14511481
DS_Real_gfx12<op, ps, name>;
14521482

1483+
multiclass DS_Real_gfx11_gfx12_with_t16<bits<8> op,
1484+
string name = !tolower(NAME)>
1485+
: DS_Real_gfx11_with_t16<op, name>,
1486+
DS_Real_gfx12_with_t16<op, name>;
1487+
14531488
defm DS_WRITE_B32 : DS_Real_gfx11_gfx12<0x00d, "ds_store_b32">;
14541489
defm DS_WRITE2_B32 : DS_Real_gfx11_gfx12<0x00e, "ds_store_2addr_b32">;
14551490
defm DS_WRITE2ST64_B32 : DS_Real_gfx11_gfx12<0x00f, "ds_store_2addr_stride64_b32">;
1456-
defm DS_WRITE_B8 : DS_Real_gfx11_gfx12<0x01e, "ds_store_b8">;
1457-
defm DS_WRITE_B16 : DS_Real_gfx11_gfx12<0x01f, "ds_store_b16">;
1491+
defm DS_WRITE_B8 : DS_Real_gfx11_gfx12_with_t16<0x01e, "ds_store_b8">;
1492+
defm DS_WRITE_B16 : DS_Real_gfx11_gfx12_with_t16<0x01f, "ds_store_b16">;
14581493
defm DS_WRXCHG_RTN_B32 : DS_Real_gfx11_gfx12<0x02d, "ds_storexchg_rtn_b32">;
14591494
defm DS_WRXCHG2_RTN_B32 : DS_Real_gfx11_gfx12<0x02e, "ds_storexchg_2addr_rtn_b32">;
14601495
defm DS_WRXCHG2ST64_RTN_B32 : DS_Real_gfx11_gfx12<0x02f, "ds_storexchg_2addr_stride64_rtn_b32">;

llvm/lib/Target/AMDGPU/SIInstrInfo.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def isWave64 : Predicate<"Subtarget->isWave64()">,
1212
AssemblerPredicate <(all_of FeatureWavefrontSize64)>;
1313

1414
class AMDGPUMnemonicAlias<string From, string To, string VariantName = "">
15-
: MnemonicAlias<From, To, VariantName>, PredicateControl;
15+
: MnemonicAlias<From, To, VariantName>, PredicateControl {
16+
string DecoderNamespace = ?; // Dummy field
17+
}
1618

1719
// Except for the NONE field, this must be kept in sync with the
1820
// SIEncodingFamily enum in SIInstrInfo.cpp and the columns of the

llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_ds.txt

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,76 +4447,76 @@
44474447
# GFX11: ds_store_b128 v255, v[2:5] offset:65535 ; encoding: [0xff,0xff,0x7c,0xdb,0xff,0x02,0x00,0x00]
44484448
0xff,0xff,0x7c,0xdb,0xff,0x02,0x00,0x00
44494449

4450-
# GFX11: ds_store_b16 v0, v1 ; encoding: [0x00,0x00,0x7c,0xd8,0x00,0x01,0x00,0x00]
4450+
# GFX11: ds_store_b16 v0, v1.l ; encoding: [0x00,0x00,0x7c,0xd8,0x00,0x01,0x00,0x00]
44514451
0x00,0x00,0x7c,0xd8,0x00,0x01,0x00,0x00
44524452

4453-
# GFX11: ds_store_b16 v0, v1 gds ; encoding: [0x00,0x00,0x7e,0xd8,0x00,0x01,0x00,0x00]
4453+
# GFX11: ds_store_b16 v0, v1.l gds ; encoding: [0x00,0x00,0x7e,0xd8,0x00,0x01,0x00,0x00]
44544454
0x00,0x00,0x7e,0xd8,0x00,0x01,0x00,0x00
44554455

4456-
# GFX11: ds_store_b16 v0, v1 offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0x00,0x01,0x00,0x00]
4456+
# GFX11: ds_store_b16 v0, v1.l offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0x00,0x01,0x00,0x00]
44574457
0x34,0x12,0x7c,0xd8,0x00,0x01,0x00,0x00
44584458

4459-
# GFX11: ds_store_b16 v0, v1 offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0x00,0x01,0x00,0x00]
4459+
# GFX11: ds_store_b16 v0, v1.l offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0x00,0x01,0x00,0x00]
44604460
0x34,0x12,0x7e,0xd8,0x00,0x01,0x00,0x00
44614461

4462-
# GFX11: ds_store_b16 v0, v1 offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0x00,0x01,0x00,0x00]
4462+
# GFX11: ds_store_b16 v0, v1.l offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0x00,0x01,0x00,0x00]
44634463
0xff,0xff,0x7c,0xd8,0x00,0x01,0x00,0x00
44644464

4465-
# GFX11: ds_store_b16 v0, v1 offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0x00,0x01,0x00,0x00]
4465+
# GFX11: ds_store_b16 v0, v1.l offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0x00,0x01,0x00,0x00]
44664466
0xff,0xff,0x7e,0xd8,0x00,0x01,0x00,0x00
44674467

4468-
# GFX11: ds_store_b16 v0, v254 ; encoding: [0x00,0x00,0x7c,0xd8,0x00,0xfe,0x00,0x00]
4468+
# GFX11: ds_store_b16 v0, v254.l ; encoding: [0x00,0x00,0x7c,0xd8,0x00,0xfe,0x00,0x00]
44694469
0x00,0x00,0x7c,0xd8,0x00,0xfe,0x00,0x00
44704470

4471-
# GFX11: ds_store_b16 v0, v254 gds ; encoding: [0x00,0x00,0x7e,0xd8,0x00,0xfe,0x00,0x00]
4471+
# GFX11: ds_store_b16 v0, v254.l gds ; encoding: [0x00,0x00,0x7e,0xd8,0x00,0xfe,0x00,0x00]
44724472
0x00,0x00,0x7e,0xd8,0x00,0xfe,0x00,0x00
44734473

4474-
# GFX11: ds_store_b16 v0, v254 offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0x00,0xfe,0x00,0x00]
4474+
# GFX11: ds_store_b16 v0, v254.l offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0x00,0xfe,0x00,0x00]
44754475
0x34,0x12,0x7c,0xd8,0x00,0xfe,0x00,0x00
44764476

4477-
# GFX11: ds_store_b16 v0, v254 offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0x00,0xfe,0x00,0x00]
4477+
# GFX11: ds_store_b16 v0, v254.l offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0x00,0xfe,0x00,0x00]
44784478
0x34,0x12,0x7e,0xd8,0x00,0xfe,0x00,0x00
44794479

4480-
# GFX11: ds_store_b16 v0, v254 offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0x00,0xfe,0x00,0x00]
4480+
# GFX11: ds_store_b16 v0, v254.l offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0x00,0xfe,0x00,0x00]
44814481
0xff,0xff,0x7c,0xd8,0x00,0xfe,0x00,0x00
44824482

4483-
# GFX11: ds_store_b16 v0, v254 offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0x00,0xfe,0x00,0x00]
4483+
# GFX11: ds_store_b16 v0, v254.l offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0x00,0xfe,0x00,0x00]
44844484
0xff,0xff,0x7e,0xd8,0x00,0xfe,0x00,0x00
44854485

4486-
# GFX11: ds_store_b16 v255, v1 ; encoding: [0x00,0x00,0x7c,0xd8,0xff,0x01,0x00,0x00]
4486+
# GFX11: ds_store_b16 v255, v1.l ; encoding: [0x00,0x00,0x7c,0xd8,0xff,0x01,0x00,0x00]
44874487
0x00,0x00,0x7c,0xd8,0xff,0x01,0x00,0x00
44884488

4489-
# GFX11: ds_store_b16 v255, v1 gds ; encoding: [0x00,0x00,0x7e,0xd8,0xff,0x01,0x00,0x00]
4489+
# GFX11: ds_store_b16 v255, v1.l gds ; encoding: [0x00,0x00,0x7e,0xd8,0xff,0x01,0x00,0x00]
44904490
0x00,0x00,0x7e,0xd8,0xff,0x01,0x00,0x00
44914491

4492-
# GFX11: ds_store_b16 v255, v1 offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0xff,0x01,0x00,0x00]
4492+
# GFX11: ds_store_b16 v255, v1.l offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0xff,0x01,0x00,0x00]
44934493
0x34,0x12,0x7c,0xd8,0xff,0x01,0x00,0x00
44944494

4495-
# GFX11: ds_store_b16 v255, v1 offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0xff,0x01,0x00,0x00]
4495+
# GFX11: ds_store_b16 v255, v1.l offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0xff,0x01,0x00,0x00]
44964496
0x34,0x12,0x7e,0xd8,0xff,0x01,0x00,0x00
44974497

4498-
# GFX11: ds_store_b16 v255, v1 offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0xff,0x01,0x00,0x00]
4498+
# GFX11: ds_store_b16 v255, v1.l offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0xff,0x01,0x00,0x00]
44994499
0xff,0xff,0x7c,0xd8,0xff,0x01,0x00,0x00
45004500

4501-
# GFX11: ds_store_b16 v255, v1 offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0xff,0x01,0x00,0x00]
4501+
# GFX11: ds_store_b16 v255, v1.l offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0xff,0x01,0x00,0x00]
45024502
0xff,0xff,0x7e,0xd8,0xff,0x01,0x00,0x00
45034503

4504-
# GFX11: ds_store_b16 v255, v254 ; encoding: [0x00,0x00,0x7c,0xd8,0xff,0xfe,0x00,0x00]
4504+
# GFX11: ds_store_b16 v255, v254.l ; encoding: [0x00,0x00,0x7c,0xd8,0xff,0xfe,0x00,0x00]
45054505
0x00,0x00,0x7c,0xd8,0xff,0xfe,0x00,0x00
45064506

4507-
# GFX11: ds_store_b16 v255, v254 gds ; encoding: [0x00,0x00,0x7e,0xd8,0xff,0xfe,0x00,0x00]
4507+
# GFX11: ds_store_b16 v255, v254.l gds ; encoding: [0x00,0x00,0x7e,0xd8,0xff,0xfe,0x00,0x00]
45084508
0x00,0x00,0x7e,0xd8,0xff,0xfe,0x00,0x00
45094509

4510-
# GFX11: ds_store_b16 v255, v254 offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0xff,0xfe,0x00,0x00]
4510+
# GFX11: ds_store_b16 v255, v254.l offset:4660 ; encoding: [0x34,0x12,0x7c,0xd8,0xff,0xfe,0x00,0x00]
45114511
0x34,0x12,0x7c,0xd8,0xff,0xfe,0x00,0x00
45124512

4513-
# GFX11: ds_store_b16 v255, v254 offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0xff,0xfe,0x00,0x00]
4513+
# GFX11: ds_store_b16 v255, v254.l offset:4660 gds ; encoding: [0x34,0x12,0x7e,0xd8,0xff,0xfe,0x00,0x00]
45144514
0x34,0x12,0x7e,0xd8,0xff,0xfe,0x00,0x00
45154515

4516-
# GFX11: ds_store_b16 v255, v254 offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0xff,0xfe,0x00,0x00]
4516+
# GFX11: ds_store_b16 v255, v254.l offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0xff,0xfe,0x00,0x00]
45174517
0xff,0xff,0x7c,0xd8,0xff,0xfe,0x00,0x00
45184518

4519-
# GFX11: ds_store_b16 v255, v254 offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0xff,0xfe,0x00,0x00]
4519+
# GFX11: ds_store_b16 v255, v254.l offset:65535 gds ; encoding: [0xff,0xff,0x7e,0xd8,0xff,0xfe,0x00,0x00]
45204520
0xff,0xff,0x7e,0xd8,0xff,0xfe,0x00,0x00
45214521

45224522
# GFX11: ds_store_b16_d16_hi v1, v2 ; encoding: [0x00,0x00,0x84,0xda,0x01,0x02,0x00,0x00]
@@ -4627,76 +4627,76 @@
46274627
# GFX11: ds_store_b64 v255, v[2:3] offset:65535 ; encoding: [0xff,0xff,0x34,0xd9,0xff,0x02,0x00,0x00]
46284628
0xff,0xff,0x34,0xd9,0xff,0x02,0x00,0x00
46294629

4630-
# GFX11: ds_store_b8 v0, v1 ; encoding: [0x00,0x00,0x78,0xd8,0x00,0x01,0x00,0x00]
4630+
# GFX11: ds_store_b8 v0, v1.l ; encoding: [0x00,0x00,0x78,0xd8,0x00,0x01,0x00,0x00]
46314631
0x00,0x00,0x78,0xd8,0x00,0x01,0x00,0x00
46324632

4633-
# GFX11: ds_store_b8 v0, v1 gds ; encoding: [0x00,0x00,0x7a,0xd8,0x00,0x01,0x00,0x00]
4633+
# GFX11: ds_store_b8 v0, v1.l gds ; encoding: [0x00,0x00,0x7a,0xd8,0x00,0x01,0x00,0x00]
46344634
0x00,0x00,0x7a,0xd8,0x00,0x01,0x00,0x00
46354635

4636-
# GFX11: ds_store_b8 v0, v1 offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0x00,0x01,0x00,0x00]
4636+
# GFX11: ds_store_b8 v0, v1.l offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0x00,0x01,0x00,0x00]
46374637
0x34,0x12,0x78,0xd8,0x00,0x01,0x00,0x00
46384638

4639-
# GFX11: ds_store_b8 v0, v1 offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0x00,0x01,0x00,0x00]
4639+
# GFX11: ds_store_b8 v0, v1.l offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0x00,0x01,0x00,0x00]
46404640
0x34,0x12,0x7a,0xd8,0x00,0x01,0x00,0x00
46414641

4642-
# GFX11: ds_store_b8 v0, v1 offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0x00,0x01,0x00,0x00]
4642+
# GFX11: ds_store_b8 v0, v1.l offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0x00,0x01,0x00,0x00]
46434643
0xff,0xff,0x78,0xd8,0x00,0x01,0x00,0x00
46444644

4645-
# GFX11: ds_store_b8 v0, v1 offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0x00,0x01,0x00,0x00]
4645+
# GFX11: ds_store_b8 v0, v1.l offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0x00,0x01,0x00,0x00]
46464646
0xff,0xff,0x7a,0xd8,0x00,0x01,0x00,0x00
46474647

4648-
# GFX11: ds_store_b8 v0, v254 ; encoding: [0x00,0x00,0x78,0xd8,0x00,0xfe,0x00,0x00]
4648+
# GFX11: ds_store_b8 v0, v254.l ; encoding: [0x00,0x00,0x78,0xd8,0x00,0xfe,0x00,0x00]
46494649
0x00,0x00,0x78,0xd8,0x00,0xfe,0x00,0x00
46504650

4651-
# GFX11: ds_store_b8 v0, v254 gds ; encoding: [0x00,0x00,0x7a,0xd8,0x00,0xfe,0x00,0x00]
4651+
# GFX11: ds_store_b8 v0, v254.l gds ; encoding: [0x00,0x00,0x7a,0xd8,0x00,0xfe,0x00,0x00]
46524652
0x00,0x00,0x7a,0xd8,0x00,0xfe,0x00,0x00
46534653

4654-
# GFX11: ds_store_b8 v0, v254 offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0x00,0xfe,0x00,0x00]
4654+
# GFX11: ds_store_b8 v0, v254.l offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0x00,0xfe,0x00,0x00]
46554655
0x34,0x12,0x78,0xd8,0x00,0xfe,0x00,0x00
46564656

4657-
# GFX11: ds_store_b8 v0, v254 offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0x00,0xfe,0x00,0x00]
4657+
# GFX11: ds_store_b8 v0, v254.l offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0x00,0xfe,0x00,0x00]
46584658
0x34,0x12,0x7a,0xd8,0x00,0xfe,0x00,0x00
46594659

4660-
# GFX11: ds_store_b8 v0, v254 offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0x00,0xfe,0x00,0x00]
4660+
# GFX11: ds_store_b8 v0, v254.l offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0x00,0xfe,0x00,0x00]
46614661
0xff,0xff,0x78,0xd8,0x00,0xfe,0x00,0x00
46624662

4663-
# GFX11: ds_store_b8 v0, v254 offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0x00,0xfe,0x00,0x00]
4663+
# GFX11: ds_store_b8 v0, v254.l offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0x00,0xfe,0x00,0x00]
46644664
0xff,0xff,0x7a,0xd8,0x00,0xfe,0x00,0x00
46654665

4666-
# GFX11: ds_store_b8 v255, v1 ; encoding: [0x00,0x00,0x78,0xd8,0xff,0x01,0x00,0x00]
4666+
# GFX11: ds_store_b8 v255, v1.l ; encoding: [0x00,0x00,0x78,0xd8,0xff,0x01,0x00,0x00]
46674667
0x00,0x00,0x78,0xd8,0xff,0x01,0x00,0x00
46684668

4669-
# GFX11: ds_store_b8 v255, v1 gds ; encoding: [0x00,0x00,0x7a,0xd8,0xff,0x01,0x00,0x00]
4669+
# GFX11: ds_store_b8 v255, v1.l gds ; encoding: [0x00,0x00,0x7a,0xd8,0xff,0x01,0x00,0x00]
46704670
0x00,0x00,0x7a,0xd8,0xff,0x01,0x00,0x00
46714671

4672-
# GFX11: ds_store_b8 v255, v1 offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0xff,0x01,0x00,0x00]
4672+
# GFX11: ds_store_b8 v255, v1.l offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0xff,0x01,0x00,0x00]
46734673
0x34,0x12,0x78,0xd8,0xff,0x01,0x00,0x00
46744674

4675-
# GFX11: ds_store_b8 v255, v1 offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0xff,0x01,0x00,0x00]
4675+
# GFX11: ds_store_b8 v255, v1.l offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0xff,0x01,0x00,0x00]
46764676
0x34,0x12,0x7a,0xd8,0xff,0x01,0x00,0x00
46774677

4678-
# GFX11: ds_store_b8 v255, v1 offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0xff,0x01,0x00,0x00]
4678+
# GFX11: ds_store_b8 v255, v1.l offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0xff,0x01,0x00,0x00]
46794679
0xff,0xff,0x78,0xd8,0xff,0x01,0x00,0x00
46804680

4681-
# GFX11: ds_store_b8 v255, v1 offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0xff,0x01,0x00,0x00]
4681+
# GFX11: ds_store_b8 v255, v1.l offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0xff,0x01,0x00,0x00]
46824682
0xff,0xff,0x7a,0xd8,0xff,0x01,0x00,0x00
46834683

4684-
# GFX11: ds_store_b8 v255, v254 ; encoding: [0x00,0x00,0x78,0xd8,0xff,0xfe,0x00,0x00]
4684+
# GFX11: ds_store_b8 v255, v254.l ; encoding: [0x00,0x00,0x78,0xd8,0xff,0xfe,0x00,0x00]
46854685
0x00,0x00,0x78,0xd8,0xff,0xfe,0x00,0x00
46864686

4687-
# GFX11: ds_store_b8 v255, v254 gds ; encoding: [0x00,0x00,0x7a,0xd8,0xff,0xfe,0x00,0x00]
4687+
# GFX11: ds_store_b8 v255, v254.l gds ; encoding: [0x00,0x00,0x7a,0xd8,0xff,0xfe,0x00,0x00]
46884688
0x00,0x00,0x7a,0xd8,0xff,0xfe,0x00,0x00
46894689

4690-
# GFX11: ds_store_b8 v255, v254 offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0xff,0xfe,0x00,0x00]
4690+
# GFX11: ds_store_b8 v255, v254.l offset:4660 ; encoding: [0x34,0x12,0x78,0xd8,0xff,0xfe,0x00,0x00]
46914691
0x34,0x12,0x78,0xd8,0xff,0xfe,0x00,0x00
46924692

4693-
# GFX11: ds_store_b8 v255, v254 offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0xff,0xfe,0x00,0x00]
4693+
# GFX11: ds_store_b8 v255, v254.l offset:4660 gds ; encoding: [0x34,0x12,0x7a,0xd8,0xff,0xfe,0x00,0x00]
46944694
0x34,0x12,0x7a,0xd8,0xff,0xfe,0x00,0x00
46954695

4696-
# GFX11: ds_store_b8 v255, v254 offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0xff,0xfe,0x00,0x00]
4696+
# GFX11: ds_store_b8 v255, v254.l offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0xff,0xfe,0x00,0x00]
46974697
0xff,0xff,0x78,0xd8,0xff,0xfe,0x00,0x00
46984698

4699-
# GFX11: ds_store_b8 v255, v254 offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0xff,0xfe,0x00,0x00]
4699+
# GFX11: ds_store_b8 v255, v254.l offset:65535 gds ; encoding: [0xff,0xff,0x7a,0xd8,0xff,0xfe,0x00,0x00]
47004700
0xff,0xff,0x7a,0xd8,0xff,0xfe,0x00,0x00
47014701

47024702
# GFX11: ds_store_b8_d16_hi v1, v2 ; encoding: [0x00,0x00,0x80,0xda,0x01,0x02,0x00,0x00]

llvm/test/MC/Disassembler/AMDGPU/gfx1250_dasm_ds.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -873,13 +873,13 @@
873873
# GFX1250: ds_store_b128 v255, v[252:255] offset:4 ; encoding: [0x04,0x00,0x7c,0xdb,0xff,0xfc,0x00,0x00]
874874
0x04,0x00,0x7c,0xdb,0xff,0xfc,0x00,0x00
875875

876-
# GFX1250: ds_store_b16 v1, v2 ; encoding: [0x00,0x00,0x7c,0xd8,0x01,0x02,0x00,0x00]
876+
# GFX1250: ds_store_b16 v1, v2.l ; encoding: [0x00,0x00,0x7c,0xd8,0x01,0x02,0x00,0x00]
877877
0x00,0x00,0x7c,0xd8,0x01,0x02,0x00,0x00
878878

879-
# GFX1250: ds_store_b16 v1, v2 offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0x01,0x02,0x00,0x00]
879+
# GFX1250: ds_store_b16 v1, v2.l offset:65535 ; encoding: [0xff,0xff,0x7c,0xd8,0x01,0x02,0x00,0x00]
880880
0xff,0xff,0x7c,0xd8,0x01,0x02,0x00,0x00
881881

882-
# GFX1250: ds_store_b16 v255, v255 offset:4 ; encoding: [0x04,0x00,0x7c,0xd8,0xff,0xff,0x00,0x00]
882+
# GFX1250: ds_store_b16 v255, v255.l offset:4 ; encoding: [0x04,0x00,0x7c,0xd8,0xff,0xff,0x00,0x00]
883883
0x04,0x00,0x7c,0xd8,0xff,0xff,0x00,0x00
884884

885885
# GFX1250: ds_store_b16_d16_hi v1, v2 ; encoding: [0x00,0x00,0x84,0xda,0x01,0x02,0x00,0x00]
@@ -909,13 +909,13 @@
909909
# GFX1250: ds_store_b64 v255, v[254:255] offset:4 ; encoding: [0x04,0x00,0x34,0xd9,0xff,0xfe,0x00,0x00]
910910
0x04,0x00,0x34,0xd9,0xff,0xfe,0x00,0x00
911911

912-
# GFX1250: ds_store_b8 v1, v2 ; encoding: [0x00,0x00,0x78,0xd8,0x01,0x02,0x00,0x00]
912+
# GFX1250: ds_store_b8 v1, v2.l ; encoding: [0x00,0x00,0x78,0xd8,0x01,0x02,0x00,0x00]
913913
0x00,0x00,0x78,0xd8,0x01,0x02,0x00,0x00
914914

915-
# GFX1250: ds_store_b8 v1, v2 offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0x01,0x02,0x00,0x00]
915+
# GFX1250: ds_store_b8 v1, v2.l offset:65535 ; encoding: [0xff,0xff,0x78,0xd8,0x01,0x02,0x00,0x00]
916916
0xff,0xff,0x78,0xd8,0x01,0x02,0x00,0x00
917917

918-
# GFX1250: ds_store_b8 v255, v255 offset:4 ; encoding: [0x04,0x00,0x78,0xd8,0xff,0xff,0x00,0x00]
918+
# GFX1250: ds_store_b8 v255, v255.l offset:4 ; encoding: [0x04,0x00,0x78,0xd8,0xff,0xff,0x00,0x00]
919919
0x04,0x00,0x78,0xd8,0xff,0xff,0x00,0x00
920920

921921
# GFX1250: ds_store_b8_d16_hi v1, v2 ; encoding: [0x00,0x00,0x80,0xda,0x01,0x02,0x00,0x00]

0 commit comments

Comments
 (0)