1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
# RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck -strict-whitespace %s
# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.x ; encoding: [0x01,0x00,0x14,0xd4]
0x01,0x00,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v255, v1, attr0.x ; encoding: [0x01,0x00,0xfc,0xd7]
0x01,0x00,0xfc,0xd7
# CHECK: v_interp_p1_f32_e32 v5, v255, attr0.x ; encoding: [0xff,0x00,0x14,0xd4]
0xff,0x00,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v5, v1, attr1.x ; encoding: [0x01,0x04,0x14,0xd4]
0x01,0x04,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v5, v1, attr31.x ; encoding: [0x01,0x7c,0x14,0xd4]
0x01,0x7c,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v5, v1, attr32.x ; encoding: [0x01,0x80,0x14,0xd4]
0x01,0x80,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.y ; encoding: [0x01,0x01,0x14,0xd4]
0x01,0x01,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.z ; encoding: [0x01,0x02,0x14,0xd4]
0x01,0x02,0x14,0xd4
# CHECK: v_interp_p1_f32_e32 v5, v1, attr0.w ; encoding: [0x01,0x03,0x14,0xd4]
0x01,0x03,0x14,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.x ; encoding: [0x01,0x00,0x15,0xd4]
0x01,0x00,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v255, v1, attr0.x ; encoding: [0x01,0x00,0xfd,0xd7]
0x01,0x00,0xfd,0xd7
# CHECK: v_interp_p2_f32_e32 v5, v255, attr0.x ; encoding: [0xff,0x00,0x15,0xd4]
0xff,0x00,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr1.x ; encoding: [0x01,0x04,0x15,0xd4]
0x01,0x04,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr31.x ; encoding: [0x01,0x7c,0x15,0xd4]
0x01,0x7c,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr32.x ; encoding: [0x01,0x80,0x15,0xd4]
0x01,0x80,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.y ; encoding: [0x01,0x01,0x15,0xd4]
0x01,0x01,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.z ; encoding: [0x01,0x02,0x15,0xd4]
0x01,0x02,0x15,0xd4
# CHECK: v_interp_p2_f32_e32 v5, v1, attr0.w ; encoding: [0x01,0x03,0x15,0xd4]
0x01,0x03,0x15,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.x ; encoding: [0x00,0x00,0x16,0xd4]
0x00,0x00,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v255, p10, attr0.x ; encoding: [0x00,0x00,0xfe,0xd7]
0x00,0x00,0xfe,0xd7
# CHECK: v_interp_mov_f32_e32 v5, p20, attr0.x ; encoding: [0x01,0x00,0x16,0xd4]
0x01,0x00,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p0, attr0.x ; encoding: [0x02,0x00,0x16,0xd4]
0x02,0x00,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr1.x ; encoding: [0x00,0x04,0x16,0xd4]
0x00,0x04,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr31.x ; encoding: [0x00,0x7c,0x16,0xd4]
0x00,0x7c,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr32.x ; encoding: [0x00,0x80,0x16,0xd4]
0x00,0x80,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.y ; encoding: [0x00,0x01,0x16,0xd4]
0x00,0x01,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.z ; encoding: [0x00,0x02,0x16,0xd4]
0x00,0x02,0x16,0xd4
# CHECK: v_interp_mov_f32_e32 v5, p10, attr0.w ; encoding: [0x00,0x03,0x16,0xd4]
0x00,0x03,0x16,0xd4
|