diff --git a/src/cmd/asm/internal/asm/testdata/loong64enc1.s b/src/cmd/asm/internal/asm/testdata/loong64enc1.s index 0f451a9050d..bd06f722732 100644 --- a/src/cmd/asm/internal/asm/testdata/loong64enc1.s +++ b/src/cmd/asm/internal/asm/testdata/loong64enc1.s @@ -63,15 +63,11 @@ lable2: MOVV R4, result+16(FP) // 6460c029 MOVB R4, result+16(FP) // 64600029 MOVBU R4, result+16(FP) // 64600029 - MOVWL R4, result+16(FP) // 6460002f - MOVVL R4, result+16(FP) // 6460802f MOVW R4, 1(R5) // a4048029 MOVWU R4, 1(R5) // a4048029 MOVV R4, 1(R5) // a404c029 MOVB R4, 1(R5) // a4040029 MOVBU R4, 1(R5) // a4040029 - MOVWL R4, 1(R5) // a404002f - MOVVL R4, 1(R5) // a404802f SC R4, 1(R5) // a4040021 SCV R4, 1(R5) // a4040023 MOVW y+8(FP), R4 // 64408028 @@ -79,15 +75,11 @@ lable2: MOVV y+8(FP), R4 // 6440c028 MOVB y+8(FP), R4 // 64400028 MOVBU y+8(FP), R4 // 6440002a - MOVWL y+8(FP), R4 // 6440002e - MOVVL y+8(FP), R4 // 6440802e MOVW 1(R5), R4 // a4048028 MOVWU 1(R5), R4 // a404802a MOVV 1(R5), R4 // a404c028 MOVB 1(R5), R4 // a4040028 MOVBU 1(R5), R4 // a404002a - MOVWL 1(R5), R4 // a404002e - MOVVL 1(R5), R4 // a404802e LL 1(R5), R4 // a4040020 LLV 1(R5), R4 // a4040022 MOVW $4(R4), R5 // 8510c002 @@ -210,11 +202,6 @@ lable2: DBAR // 00007238 NOOP // 00004003 - MOVWR R4, result+16(FP) // 6460402f - MOVWR R4, 1(R5) // a404402f - MOVWR y+8(FP), R4 // 6440402e - MOVWR 1(R5), R4 // a404402e - CMPEQF F4, F5, FCC0 // a010120c CMPGTF F4, F5, FCC1 // a190110c CMPGTD F4, F5, FCC2 // a290210c diff --git a/src/cmd/internal/obj/loong64/a.out.go b/src/cmd/internal/obj/loong64/a.out.go index a34a2a50c3c..23f71fd8ab2 100644 --- a/src/cmd/internal/obj/loong64/a.out.go +++ b/src/cmd/internal/obj/loong64/a.out.go @@ -302,9 +302,6 @@ const ( AMOVWD AMOVWF - AMOVWL - AMOVWR - AMUL AMULD AMULF @@ -359,8 +356,6 @@ const ( // 64-bit AMOVV - AMOVVL - AMOVVR ASLLV ASRAV diff --git a/src/cmd/internal/obj/loong64/anames.go b/src/cmd/internal/obj/loong64/anames.go index b961a2dcd1a..9bfc57e239b 100644 --- a/src/cmd/internal/obj/loong64/anames.go +++ b/src/cmd/internal/obj/loong64/anames.go @@ -61,8 +61,6 @@ var Anames = []string{ "MOVW", "MOVWD", "MOVWF", - "MOVWL", - "MOVWR", "MUL", "MULD", "MULF", @@ -104,8 +102,6 @@ var Anames = []string{ "MASKEQZ", "MASKNEZ", "MOVV", - "MOVVL", - "MOVVR", "SLLV", "SRAV", "SRLV", diff --git a/src/cmd/internal/obj/loong64/asm.go b/src/cmd/internal/obj/loong64/asm.go index 45568c9a4f0..99cebe3e4e1 100644 --- a/src/cmd/internal/obj/loong64/asm.go +++ b/src/cmd/internal/obj/loong64/asm.go @@ -95,22 +95,16 @@ var optab = []Optab{ {AMOVV, C_REG, C_NONE, C_NONE, C_SEXT, C_NONE, 7, 4, 0, 0}, {AMOVB, C_REG, C_NONE, C_NONE, C_SEXT, C_NONE, 7, 4, 0, 0}, {AMOVBU, C_REG, C_NONE, C_NONE, C_SEXT, C_NONE, 7, 4, 0, 0}, - {AMOVWL, C_REG, C_NONE, C_NONE, C_SEXT, C_NONE, 7, 4, 0, 0}, - {AMOVVL, C_REG, C_NONE, C_NONE, C_SEXT, C_NONE, 7, 4, 0, 0}, {AMOVW, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, {AMOVWU, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, {AMOVV, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, {AMOVB, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, {AMOVBU, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, - {AMOVWL, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, - {AMOVVL, C_REG, C_NONE, C_NONE, C_SAUTO, C_NONE, 7, 4, REGSP, 0}, {AMOVW, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVWU, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVV, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVB, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {AMOVBU, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, - {AMOVWL, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, - {AMOVVL, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {ASC, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, {ASCV, C_REG, C_NONE, C_NONE, C_SOREG, C_NONE, 7, 4, REGZERO, 0}, @@ -119,22 +113,16 @@ var optab = []Optab{ {AMOVV, C_SEXT, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, 0, 0}, {AMOVB, C_SEXT, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, 0, 0}, {AMOVBU, C_SEXT, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, 0, 0}, - {AMOVWL, C_SEXT, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, 0, 0}, - {AMOVVL, C_SEXT, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, 0, 0}, {AMOVW, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, {AMOVWU, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, {AMOVV, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, {AMOVB, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, {AMOVBU, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, - {AMOVWL, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, - {AMOVVL, C_SAUTO, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGSP, 0}, {AMOVW, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, {AMOVWU, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, {AMOVV, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, {AMOVB, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, {AMOVBU, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, - {AMOVWL, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, - {AMOVVL, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, {ALL, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, {ALLV, C_SOREG, C_NONE, C_NONE, C_REG, C_NONE, 8, 4, REGZERO, 0}, @@ -1189,12 +1177,6 @@ func buildop(ctxt *obj.Link) { case ABFPT: opset(ABFPF, r0) - case AMOVWL: - opset(AMOVWR, r0) - - case AMOVVL: - opset(AMOVVR, r0) - case AMOVW, AMOVD, AMOVF, @@ -2173,22 +2155,6 @@ func (c *ctxt0) opirr(a obj.As) uint32 { return 0x0ad << 22 case AMOVD: return 0x0af << 22 - case AMOVWL: - return 0x0bc << 22 - case AMOVWR: - return 0x0bd << 22 - case AMOVVL: - return 0x0be << 22 - case AMOVVR: - return 0x0bf << 22 - case -AMOVWL: - return 0x0b8 << 22 - case -AMOVWR: - return 0x0b9 << 22 - case -AMOVVL: - return 0x0ba << 22 - case -AMOVVR: - return 0x0bb << 22 case -AMOVB: return 0x0a0 << 22 case -AMOVBU: