brintos

brintos / llvm-project-archived public Read only

0
0
Text · 7.4 KiB · 0182159 Raw
158 lines · plain
1# RUN: llvm-mc -triple=amdgcn -mcpu=gfx950 -show-encoding -disassemble %s | FileCheck -check-prefix=GFX950 %s2 3# GFX950: 	global_load_lds_dwordx3 v2, s[4:5] offset:4 ; encoding: [0x04,0x80,0xf8,0xdd,0x02,0x00,0x04,0x00]40x04,0x80,0xf8,0xdd,0x02,0x00,0x04,0x005 6# GFX950: 	global_load_lds_dwordx3 v[2:3], off     ; encoding: [0x00,0x80,0xf8,0xdd,0x02,0x00,0x7f,0x00]70x00,0x80,0xf8,0xdd,0x02,0x00,0x7f,0x008 9# GFX950: 	global_load_lds_dwordx3 v[2:3], off offset:4 ; encoding: [0x04,0x80,0xf8,0xdd,0x02,0x00,0x7f,0x00]100x04,0x80,0xf8,0xdd,0x02,0x00,0x7f,0x0011 12# GFX950: 	global_load_lds_dwordx3 v[2:3], off sc0 nt sc1 ; encoding: [0x00,0x80,0xfb,0xdf,0x02,0x00,0x7f,0x00]130x00,0x80,0xfb,0xdf,0x02,0x00,0x7f,0x0014 15# GFX950: 	global_load_lds_dwordx4 v2, s[4:5] offset:4 ; encoding: [0x04,0x80,0xf4,0xdd,0x02,0x00,0x04,0x00]160x04,0x80,0xf4,0xdd,0x02,0x00,0x04,0x0017 18# GFX950: 	global_load_lds_dwordx4 v[2:3], off     ; encoding: [0x00,0x80,0xf4,0xdd,0x02,0x00,0x7f,0x00]190x00,0x80,0xf4,0xdd,0x02,0x00,0x7f,0x0020 21# GFX950: 	global_load_lds_dwordx4 v[2:3], off offset:4 ; encoding: [0x04,0x80,0xf4,0xdd,0x02,0x00,0x7f,0x00]220x04,0x80,0xf4,0xdd,0x02,0x00,0x7f,0x0023 24# GFX950: 	global_load_lds_dwordx4 v[2:3], off sc0 nt sc1 ; encoding: [0x00,0x80,0xf7,0xdf,0x02,0x00,0x7f,0x00]250x00,0x80,0xf7,0xdf,0x02,0x00,0x7f,0x0026 27 28# GFX950: 	buffer_load_dwordx3 off, s[8:11], s3 lds ; encoding: [0x00,0x00,0x59,0xe0,0x00,0x00,0x02,0x03]290x00,0x00,0x59,0xe0,0x00,0x00,0x02,0x0330 31# GFX950: 	buffer_load_dwordx3 off, s[8:11], s3 offset:4095 lds ; encoding: [0xff,0x0f,0x59,0xe0,0x00,0x00,0x02,0x03]320xff,0x0f,0x59,0xe0,0x00,0x00,0x02,0x0333 34# GFX950: 	buffer_load_dwordx3 v0, s[8:11], s101 offen lds ; encoding: [0x00,0x10,0x59,0xe0,0x00,0x00,0x02,0x65]350x00,0x10,0x59,0xe0,0x00,0x00,0x02,0x6536 37# GFX950: 	buffer_load_dwordx4 off, s[8:11], s3 lds ; encoding: [0x00,0x00,0x5d,0xe0,0x00,0x00,0x02,0x03]380x00,0x00,0x5d,0xe0,0x00,0x00,0x02,0x0339 40# GFX950: 	buffer_load_dwordx4 off, s[8:11], s3 offset:4095 lds ; encoding: [0xff,0x0f,0x5d,0xe0,0x00,0x00,0x02,0x03]410xff,0x0f,0x5d,0xe0,0x00,0x00,0x02,0x0342 43# GFX950: 	buffer_load_dwordx4 v0, s[8:11], s101 offen lds ; encoding: [0x00,0x10,0x5d,0xe0,0x00,0x00,0x02,0x65]440x00,0x10,0x5d,0xe0,0x00,0x00,0x02,0x6545 46 47# GFX950:   v_permlane16_swap_b32_e32 v1, v2        ; encoding: [0x02,0xb3,0x02,0x7e]480x02,0xb3,0x02,0x7e49 50# GFX950: v_permlane16_swap_b32_e32 v218, v219    ; encoding: [0xdb,0xb3,0xb4,0x7f]510xdb,0xb3,0xb4,0x7f52 53# GFX950: v_permlane16_swap_b32_e32 v218, v2      ; encoding: [0x02,0xb3,0xb4,0x7f]540x02,0xb3,0xb4,0x7f55 56# GFX950: v_permlane16_swap_b32_e32 v2, v219      ; encoding: [0xdb,0xb3,0x04,0x7e]570xdb,0xb3,0x04,0x7e58 59# GFX950:   v_permlane16_swap_b32_e64 v1, v2        ; encoding: [0x01,0x00,0x99,0xd1,0x02,0x01,0x00,0x00]600x01,0x00,0x99,0xd1,0x02,0x01,0x00,0x0061 62# GFX950: v_permlane16_swap_b32_e64 v218, v219    ; encoding: [0xda,0x00,0x99,0xd1,0xdb,0x01,0x00,0x00]630xda,0x00,0x99,0xd1,0xdb,0x01,0x00,0x0064 65# GFX950: v_permlane16_swap_b32_e64 v218, v2      ; encoding: [0xda,0x00,0x99,0xd1,0x02,0x01,0x00,0x00]660xda,0x00,0x99,0xd1,0x02,0x01,0x00,0x0067 68# GFX950: v_permlane16_swap_b32_e64 v2, v219      ; encoding: [0x02,0x00,0x99,0xd1,0xdb,0x01,0x00,0x00]690x02,0x00,0x99,0xd1,0xdb,0x01,0x00,0x0070 71# GFX950:   v_permlane16_swap_b32_e64 v1, v2 bound_ctrl:1 ; encoding: [0x01,0x10,0x99,0xd1,0x02,0x01,0x00,0x00]720x01,0x10,0x99,0xd1,0x02,0x01,0x00,0x0073 74# GFX950:   v_permlane16_swap_b32_e64 v1, v2 bound_ctrl:1 fi:1 ; encoding: [0x01,0x18,0x99,0xd1,0x02,0x01,0x00,0x00]750x01,0x18,0x99,0xd1,0x02,0x01,0x00,0x0076 77# GFX950:   v_permlane16_swap_b32_e64 v1, v2 fi:1   ; encoding: [0x01,0x08,0x99,0xd1,0x02,0x01,0x00,0x00]780x01,0x08,0x99,0xd1,0x02,0x01,0x00,0x0079 80 81# GFX950:   v_permlane32_swap_b32_e32 v1, v2        ; encoding: [0x02,0xb5,0x02,0x7e]820x02,0xb5,0x02,0x7e83 84# GFX950: v_permlane32_swap_b32_e32 v218, v219    ; encoding: [0xdb,0xb5,0xb4,0x7f]850xdb,0xb5,0xb4,0x7f86 87# GFX950: v_permlane32_swap_b32_e32 v218, v2      ; encoding: [0x02,0xb5,0xb4,0x7f]880x02,0xb5,0xb4,0x7f89 90# GFX950: v_permlane32_swap_b32_e32 v2, v219      ; encoding: [0xdb,0xb5,0x04,0x7e]910xdb,0xb5,0x04,0x7e92 93# GFX950:   v_permlane32_swap_b32_e64 v1, v2        ; encoding: [0x01,0x00,0x9a,0xd1,0x02,0x01,0x00,0x00]940x01,0x00,0x9a,0xd1,0x02,0x01,0x00,0x0095 96# GFX950: v_permlane32_swap_b32_e64 v218, v219    ; encoding: [0xda,0x00,0x9a,0xd1,0xdb,0x01,0x00,0x00]970xda,0x00,0x9a,0xd1,0xdb,0x01,0x00,0x0098 99# GFX950: v_permlane32_swap_b32_e64 v218, v2      ; encoding: [0xda,0x00,0x9a,0xd1,0x02,0x01,0x00,0x00]1000xda,0x00,0x9a,0xd1,0x02,0x01,0x00,0x00101 102# GFX950: v_permlane32_swap_b32_e64 v2, v219      ; encoding: [0x02,0x00,0x9a,0xd1,0xdb,0x01,0x00,0x00]1030x02,0x00,0x9a,0xd1,0xdb,0x01,0x00,0x00104 105# GFX950:   v_permlane32_swap_b32_e64 v1, v2 bound_ctrl:1 ; encoding: [0x01,0x10,0x9a,0xd1,0x02,0x01,0x00,0x00]1060x01,0x10,0x9a,0xd1,0x02,0x01,0x00,0x00107 108# GFX950:   v_permlane32_swap_b32_e64 v1, v2 bound_ctrl:1 fi:1 ; encoding: [0x01,0x18,0x9a,0xd1,0x02,0x01,0x00,0x00]1090x01,0x18,0x9a,0xd1,0x02,0x01,0x00,0x00110 111# GFX950:   v_permlane32_swap_b32_e64 v1, v2 fi:1   ; encoding: [0x01,0x08,0x9a,0xd1,0x02,0x01,0x00,0x00]1120x01,0x08,0x9a,0xd1,0x02,0x01,0x00,0x00113 114# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], s3 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x03]1150xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x03116 117# GFX950: buffer_atomic_pk_add_bf16 v255, off, s[8:11], s3 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0xff,0x02,0x03]1180xff,0x0f,0x48,0xe1,0x00,0xff,0x02,0x03119 120# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[12:15], s3 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x03,0x03]1210xff,0x0f,0x48,0xe1,0x00,0x05,0x03,0x03122 123# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[96:99], s3 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x18,0x03]1240xff,0x0f,0x48,0xe1,0x00,0x05,0x18,0x03125 126# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], s101 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x65]1270xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x65128 129# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], m0 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x7c]1300xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x7c131 132# GFX950: buffer_atomic_pk_add_bf16 v5, v0, s[8:11], s3 idxen offset:4095 ; encoding: [0xff,0x2f,0x48,0xe1,0x00,0x05,0x02,0x03]1330xff,0x2f,0x48,0xe1,0x00,0x05,0x02,0x03134 135# GFX950: buffer_atomic_pk_add_bf16 v5, v0, s[8:11], s3 offen offset:4095 ; encoding: [0xff,0x1f,0x48,0xe1,0x00,0x05,0x02,0x03]1360xff,0x1f,0x48,0xe1,0x00,0x05,0x02,0x03137 138# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], s3 ; encoding: [0x00,0x00,0x48,0xe1,0x00,0x05,0x02,0x03]1390x00,0x00,0x48,0xe1,0x00,0x05,0x02,0x03140 141# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], s3 ; encoding: [0x00,0x00,0x48,0xe1,0x00,0x05,0x02,0x03]1420x00,0x00,0x48,0xe1,0x00,0x05,0x02,0x03143 144# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], s3 offset:7 ; encoding: [0x07,0x00,0x48,0xe1,0x00,0x05,0x02,0x03]1450x07,0x00,0x48,0xe1,0x00,0x05,0x02,0x03146 147# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], 0 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x80]1480xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0x80149 150# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], -1 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0xc1]1510xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0xc1152 153# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], 0.5 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0xf0]1540xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0xf0155 156# GFX950: buffer_atomic_pk_add_bf16 v5, off, s[8:11], -4.0 offset:4095 ; encoding: [0xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0xf7]1570xff,0x0f,0x48,0xe1,0x00,0x05,0x02,0xf7158