diff --git a/llvm/test/MC/AMDGPU/gfx11_asm_sopp.s b/llvm/test/MC/AMDGPU/gfx11_asm_sopp.s index 8ef7f33ca84b2..a5573a08acca6 100644 --- a/llvm/test/MC/AMDGPU/gfx11_asm_sopp.s +++ b/llvm/test/MC/AMDGPU/gfx11_asm_sopp.s @@ -111,6 +111,12 @@ s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1) s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3) // GFX11: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3) ; encoding: [0x91,0x01,0x87,0xbf] +s_delay_alu instid1(SALU_CYCLE_2) +// GFX11: s_delay_alu instid1(SALU_CYCLE_2) ; encoding: [0x00,0x05,0x87,0xbf] + +s_delay_alu instid1(SALU_CYCLE_3) +// GFX11: s_delay_alu instid1(SALU_CYCLE_3) ; encoding: [0x80,0x05,0x87,0xbf] + //===----------------------------------------------------------------------===// // s_waitcnt_depctr //===----------------------------------------------------------------------===// diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_sopp.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_sopp.txt index 093d8b33e98e1..259a4910c959d 100644 --- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_sopp.txt +++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_sopp.txt @@ -106,6 +106,12 @@ # GFX11: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3) ; encoding: [0x91,0x01,0x87,0xbf] 0x91,0x01,0x87,0xbf +# GFX11: s_delay_alu instid1(SALU_CYCLE_2) ; encoding: [0x00,0x05,0x87,0xbf] +0x00,0x05,0x87,0xbf + +# GFX11: s_delay_alu instid1(SALU_CYCLE_3) ; encoding: [0x80,0x05,0x87,0xbf] +0x80,0x05,0x87,0xbf + # GFX11: s_delay_alu instid0(/* invalid instid value */) | instskip(/* invalid instskip value */) | instid1(/* invalid instid value */) ; encoding: [0xff,0x07,0x87,0xbf] 0xff,0x07,0x87,0xbf