1 # RUN: llvm-mc -arch=amdgcn -mcpu=tonga -disassemble -show-encoding < %s | FileCheck %s -check-prefix=VI 2 3 # VI: s_load_dword s1, s[2:3], 0xfc ; encoding: [0x41,0x00,0x02,0xc0,0xfc,0x00,0x00,0x00] 4 0x41 0x00 0x02 0xc0 0xfc 0x00 0x00 0x00 5 6 # VI: s_load_dword s1, s[2:3], 0xff ; encoding: [0x41,0x00,0x02,0xc0,0xff,0x00,0x00,0x00] 7 0x41 0x00 0x02 0xc0 0xff 0x00 0x00 0x00 8 9 # VI: s_load_dword s1, s[2:3], 0x1 ; encoding: [0x41,0x00,0x02,0xc0,0x01,0x00,0x00,0x00] 10 0x41 0x00 0x02 0xc0 0x01 0x00 0x00 0x00 11 12 # VI: s_load_dword s1, s[2:3], s4 ; encoding: [0x41,0x00,0x00,0xc0,0x04,0x00,0x00,0x00] 13 0x41 0x00 0x00 0xc0 0x04 0x00 0x00 0x00 14 15 # VI: s_load_dwordx2 s[2:3], s[2:3], 0x1 ; encoding: [0x81,0x00,0x06,0xc0,0x01,0x00,0x00,0x00] 16 0x81 0x00 0x06 0xc0 0x01 0x00 0x00 0x00 17 18 # VI: s_load_dwordx2 s[2:3], s[2:3], s4 ; encoding: [0x81,0x00,0x04,0xc0,0x04,0x00,0x00,0x00] 19 0x81 0x00 0x04 0xc0 0x04 0x00 0x00 0x00 20 21 # VI: s_load_dwordx4 s[4:7], s[2:3], 0x1 ; encoding: [0x01,0x01,0x0a,0xc0,0x01,0x00,0x00,0x00] 22 0x01 0x01 0x0a 0xc0 0x01 0x00 0x00 0x00 23 24 # VI: s_load_dwordx4 s[4:7], s[2:3], s4 ; encoding: [0x01,0x01,0x08,0xc0,0x04,0x00,0x00,0x00] 25 0x01 0x01 0x08 0xc0 0x04 0x00 0x00 0x00 26 27 # VI: s_load_dwordx8 s[8:15], s[2:3], 0x1 ; encoding: [0x01,0x02,0x0e,0xc0,0x01,0x00,0x00,0x00] 28 0x01 0x02 0x0e 0xc0 0x01 0x00 0x00 0x00 29 30 # VI: s_load_dwordx8 s[8:15], s[2:3], s4 ; encoding: [0x01,0x02,0x0c,0xc0,0x04,0x00,0x00,0x00] 31 0x01 0x02 0x0c 0xc0 0x04 0x00 0x00 0x00 32 33 # VI: s_load_dwordx16 s[16:31], s[2:3], 0x1 ; encoding: [0x01,0x04,0x12,0xc0,0x01,0x00,0x00,0x00] 34 0x01 0x04 0x12 0xc0 0x01 0x00 0x00 0x00 35 36 # VI: s_load_dwordx16 s[16:31], s[2:3], s4 ; encoding: [0x01,0x04,0x10,0xc0,0x04,0x00,0x00,0x00] 37 0x01 0x04 0x10 0xc0 0x04 0x00 0x00 0x00 38 39 # VI: s_buffer_load_dword s1, s[4:7], 0x1 ; encoding: [0x42,0x00,0x22,0xc0,0x01,0x00,0x00,0x00] 40 0x42 0x00 0x22 0xc0 0x01 0x00 0x00 0x00 41 42 # VI: s_buffer_load_dword s1, s[4:7], s4 ; encoding: [0x42,0x00,0x20,0xc0,0x04,0x00,0x00,0x00] 43 0x42 0x00 0x20 0xc0 0x04 0x00 0x00 0x00 44 45 # VI: s_buffer_load_dwordx2 s[8:9], s[4:7], 0x1 ; encoding: [0x02,0x02,0x26,0xc0,0x01,0x00,0x00,0x00] 46 0x02 0x02 0x26 0xc0 0x01 0x00 0x00 0x00 47 48 # VI: s_buffer_load_dwordx2 s[8:9], s[4:7], s4 ; encoding: [0x02,0x02,0x24,0xc0,0x04,0x00,0x00,0x00] 49 0x02 0x02 0x24 0xc0 0x04 0x00 0x00 0x00 50 51 # VI: s_buffer_load_dwordx4 s[8:11], s[4:7], 0x1 ; encoding: [0x02,0x02,0x2a,0xc0,0x01,0x00,0x00,0x00] 52 0x02 0x02 0x2a 0xc0 0x01 0x00 0x00 0x00 53 54 # VI: s_buffer_load_dwordx4 s[8:11], s[4:7], s4 ; encoding: [0x02,0x02,0x28,0xc0,0x04,0x00,0x00,0x00] 55 0x02 0x02 0x28 0xc0 0x04 0x00 0x00 0x00 56 57 # VI: s_buffer_load_dwordx8 s[8:15], s[4:7], 0x1 ; encoding: [0x02,0x02,0x2e,0xc0,0x01,0x00,0x00,0x00] 58 0x02 0x02 0x2e 0xc0 0x01 0x00 0x00 0x00 59 60 # VI: s_buffer_load_dwordx8 s[8:15], s[4:7], s4 ; encoding: [0x02,0x02,0x2c,0xc0,0x04,0x00,0x00,0x00] 61 0x02 0x02 0x2c 0xc0 0x04 0x00 0x00 0x00 62 63 # VI: s_buffer_load_dwordx16 s[16:31], s[4:7], 0x1 ; encoding: [0x02,0x04,0x32,0xc0,0x01,0x00,0x00,0x00] 64 0x02 0x04 0x32 0xc0 0x01 0x00 0x00 0x00 65 66 # VI: s_buffer_load_dwordx16 s[16:31], s[4:7], s4 ; encoding: [0x02,0x04,0x30,0xc0,0x04,0x00,0x00,0x00] 67 0x02 0x04 0x30 0xc0 0x04 0x00 0x00 0x00 68 69 # VI: s_dcache_inv ; encoding: [0x00,0x00,0x80,0xc0,0x00,0x00,0x00,0x00] 70 0x00 0x00 0x80 0xc0 0x00 0x00 0x00 0x00 71 72 # VI: s_dcache_inv_vol ; encoding: [0x00,0x00,0x88,0xc0,0x00,0x00,0x00,0x00] 73 0x00 0x00 0x88 0xc0 0x00 0x00 0x00 0x00 74 75 # VI: s_memtime s[4:5] ; encoding: [0x00,0x01,0x90,0xc0,0x00,0x00,0x00,0x00] 76 0x00 0x01 0x90 0xc0 0x00 0x00 0x00 0x00 77