|
| 1 | +# RUN: llvm-mc -arch=amdgcn -mcpu=gfx1200 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX12 %s |
| 2 | + |
| 3 | +# GFX12: s_prefetch_inst s[12:13], 0x10, s4, 2 ; encoding: [0x86,0x80,0x04,0xf4,0x10,0x00,0x00,0x08] |
| 4 | +0x86,0x80,0x04,0xf4,0x10,0x00,0x00,0x08 |
| 5 | + |
| 6 | +# GFX12: s_prefetch_inst s[14:15], 0x0, m0, 7 ; encoding: [0xc7,0x81,0x04,0xf4,0x00,0x00,0x00,0xfa] |
| 7 | +0xc7,0x81,0x04,0xf4,0x00,0x00,0x00,0xfa |
| 8 | + |
| 9 | +# GFX12: s_prefetch_inst s[14:15], 0x7fffff, m0, 7 ; encoding: [0xc7,0x81,0x04,0xf4,0xff,0xff,0x7f,0xfa] |
| 10 | +0xc7,0x81,0x04,0xf4,0xff,0xff,0x7f,0xfa |
| 11 | + |
| 12 | +# GFX12: s_prefetch_inst s[14:15], -0x1, m0, 7 ; encoding: [0xc7,0x81,0x04,0xf4,0xff,0xff,0xff,0xfa] |
| 13 | +0xc7,0x81,0x04,0xf4,0xff,0xff,0xff,0xfa |
| 14 | + |
| 15 | +# GFX12: s_prefetch_inst s[14:15], 0x64, m0, 31 ; encoding: [0xc7,0x87,0x04,0xf4,0x64,0x00,0x00,0xfa] |
| 16 | +0xc7,0x87,0x04,0xf4,0x64,0x00,0x00,0xfa |
| 17 | + |
| 18 | +# GFX12: s_prefetch_inst_pc_rel 0x64, s10, 7 ; encoding: [0xc0,0xa1,0x04,0xf4,0x64,0x00,0x00,0x14] |
| 19 | +0xc0,0xa1,0x04,0xf4,0x64,0x00,0x00,0x14 |
| 20 | + |
| 21 | +# GFX12: s_prefetch_data s[18:19], 0x64, s10, 7 ; encoding: [0xc9,0xc1,0x04,0xf4,0x64,0x00,0x00,0x14] |
| 22 | +0xc9,0xc1,0x04,0xf4,0x64,0x00,0x00,0x14 |
| 23 | + |
| 24 | +# GFX12: s_prefetch_data_pc_rel 0x64, s10, 7 ; encoding: [0xc0,0x01,0x05,0xf4,0x64,0x00,0x00,0x14] |
| 25 | +0xc0,0x01,0x05,0xf4,0x64,0x00,0x00,0x14 |
| 26 | + |
| 27 | +# GFX12: s_buffer_prefetch_data s[20:23], 0x64, s10, 7 ; encoding: [0xca,0xe1,0x04,0xf4,0x64,0x00,0x00,0x14] |
| 28 | +0xca,0xe1,0x04,0xf4,0x64,0x00,0x00,0x14 |
| 29 | + |
| 30 | +# GFX12: s_buffer_prefetch_data s[20:23], 0x64, null, 7 ; encoding: [0xca,0xe1,0x04,0xf4,0x64,0x00,0x00,0xf8] |
| 31 | +0xca,0xe1,0x04,0xf4,0x64,0x00,0x00,0xf8 |
0 commit comments