brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.4 KiB · 73564f9 Raw
127 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefix=GCN %s2// RUN: llvm-mc -triple=amdgcn -mcpu=fiji -show-encoding %s | FileCheck --check-prefixes=GCN,VI %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=NOSICI --implicit-check-not=error: %s4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck -check-prefix=GFX10-ERR --implicit-check-not=error: %s5 6//===----------------------------------------------------------------------===//7// SOPC Instructions8//===----------------------------------------------------------------------===//9 10s_cmp_eq_i32 s1, s211// GCN: s_cmp_eq_i32 s1, s2 ; encoding: [0x01,0x02,0x00,0xbf]12 13s_cmp_eq_i32 0xabcd1234, 0xabcd123414// GCN: s_cmp_eq_i32 0xabcd1234, 0xabcd1234 ; encoding: [0xff,0xff,0x00,0xbf,0x34,0x12,0xcd,0xab]15 16s_cmp_eq_i32 0xFFFF0000, -6553617// GCN: s_cmp_eq_i32 0xffff0000, 0xffff0000 ; encoding: [0xff,0xff,0x00,0xbf,0x00,0x00,0xff,0xff]18 19s_cmp_lg_i32 s1, s220// GCN: s_cmp_lg_i32 s1, s2 ; encoding: [0x01,0x02,0x01,0xbf]21 22s_cmp_gt_i32 s1, s223// GCN: s_cmp_gt_i32 s1, s2 ; encoding: [0x01,0x02,0x02,0xbf]24 25s_cmp_ge_i32 s1, s226// GCN: s_cmp_ge_i32 s1, s2 ; encoding: [0x01,0x02,0x03,0xbf]27 28s_cmp_lt_i32 s1, s229// GCN: s_cmp_lt_i32 s1, s2 ; encoding: [0x01,0x02,0x04,0xbf]30 31s_cmp_le_i32 s1, s232// GCN: s_cmp_le_i32 s1, s2 ; encoding: [0x01,0x02,0x05,0xbf]33 34s_cmp_eq_u32 s1, s235// GCN: s_cmp_eq_u32 s1, s2 ; encoding: [0x01,0x02,0x06,0xbf]36 37s_cmp_lg_u32 s1, s238// GCN: s_cmp_lg_u32 s1, s2 ; encoding: [0x01,0x02,0x07,0xbf]39 40s_cmp_gt_u32 s1, s241// GCN: s_cmp_gt_u32 s1, s2 ; encoding: [0x01,0x02,0x08,0xbf]42 43s_cmp_ge_u32 s1, s244// GCN: s_cmp_ge_u32 s1, s2 ; encoding: [0x01,0x02,0x09,0xbf]45 46s_cmp_lt_u32 s1, s247// GCN: s_cmp_lt_u32 s1, s2 ; encoding: [0x01,0x02,0x0a,0xbf]48 49s_cmp_le_u32 s1, s250// GCN: s_cmp_le_u32 s1, s2 ; encoding: [0x01,0x02,0x0b,0xbf]51 52s_bitcmp0_b32 s1, s253// GCN: s_bitcmp0_b32 s1, s2 ; encoding: [0x01,0x02,0x0c,0xbf]54 55s_bitcmp1_b32 s1, s256// GCN: s_bitcmp1_b32 s1, s2 ; encoding: [0x01,0x02,0x0d,0xbf]57 58s_bitcmp0_b64 s[2:3], s459// GCN: s_bitcmp0_b64 s[2:3], s4 ; encoding: [0x02,0x04,0x0e,0xbf]60 61s_bitcmp1_b64 s[2:3], s462// GCN: s_bitcmp1_b64 s[2:3], s4 ; encoding: [0x02,0x04,0x0f,0xbf]63 64s_setvskip s3, s565// GCN: s_setvskip s3, s5 ; encoding: [0x03,0x05,0x10,0xbf]66// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU67 68s_cmp_eq_u64 s[0:1], s[2:3]69// VI: s_cmp_eq_u64 s[0:1], s[2:3] ; encoding: [0x00,0x02,0x12,0xbf]70// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU71 72s_cmp_lg_u64 s[0:1], s[2:3]73// VI: s_cmp_lg_u64 s[0:1], s[2:3] ; encoding: [0x00,0x02,0x13,0xbf]74// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU75 76gpr_idx = 177s_set_gpr_idx_on s0, gpr_idx78// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0) ; encoding: [0x00,0x01,0x11,0xbf]79// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU80// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU81 82gpr_idx_mode = 1083s_set_gpr_idx_on s0, gpr_idx_mode + 584// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0,SRC1,SRC2,DST) ; encoding: [0x00,0x0f,0x11,0xbf]85// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU86// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU87 88s_set_gpr_idx_on s0, 089// VI: s_set_gpr_idx_on s0, gpr_idx() ; encoding: [0x00,0x00,0x11,0xbf]90// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU91// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU92 93s_set_gpr_idx_on s0, gpr_idx()94// VI: s_set_gpr_idx_on s0, gpr_idx() ; encoding: [0x00,0x00,0x11,0xbf]95// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU96// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU97 98s_set_gpr_idx_on s0, 199// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0) ; encoding: [0x00,0x01,0x11,0xbf]100// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU101// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU102 103s_set_gpr_idx_on s0, gpr_idx(SRC0)104// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0) ; encoding: [0x00,0x01,0x11,0xbf]105// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU106// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU107 108s_set_gpr_idx_on s0, 3109// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0,SRC1) ; encoding: [0x00,0x03,0x11,0xbf]110// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU111// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU112 113s_set_gpr_idx_on s0, gpr_idx(SRC1,SRC0)114// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0,SRC1) ; encoding: [0x00,0x03,0x11,0xbf]115// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU116// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU117 118s_set_gpr_idx_on s0, 15119// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0,SRC1,SRC2,DST) ; encoding: [0x00,0x0f,0x11,0xbf]120// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU121// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU122 123s_set_gpr_idx_on s0, gpr_idx(SRC0,DST,SRC2,SRC1)124// VI: s_set_gpr_idx_on s0, gpr_idx(SRC0,SRC1,SRC2,DST) ; encoding: [0x00,0x0f,0x11,0xbf]125// NOSICI: :[[@LINE-2]]:{{[0-9]+}}: error: instruction not supported on this GPU126// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: instruction not supported on this GPU127