Artem Tamazov | ebe71ce | 2016-05-06 17:48:48 +0000 | [diff] [blame^] | 1 | // RUN: not llvm-mc -arch=amdgcn -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=SICI %s |
| 2 | // RUN: not llvm-mc -arch=amdgcn -mcpu=SI -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=SICI %s |
| 3 | // RUN: not llvm-mc -arch=amdgcn -mcpu=fiji -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=VI %s |
| 4 | |
| 5 | s_sendmsg sendmsg(11) |
| 6 | // GCN: error: invalid/unsupported code of message |
| 7 | |
| 8 | s_sendmsg sendmsg(MSG_INTERRUPTX) |
| 9 | // GCN: error: invalid/unsupported symbolic name of message |
| 10 | |
| 11 | s_sendmsg sendmsg(MSG_INTERRUPT, 0) |
| 12 | // GCN: error: not a valid operand |
| 13 | |
| 14 | s_sendmsg sendmsg(MSG_GS) |
| 15 | // GCN: error: not a valid operand |
| 16 | |
| 17 | s_sendmsg sendmsg(MSG_GS, GS_OP_NOP) |
| 18 | // GCN: error: invalid GS_OP: NOP is for GS_DONE only |
| 19 | |
| 20 | s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0) |
| 21 | // GCN: error: not a valid operand |
| 22 | |
| 23 | s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0) |
| 24 | // GCN: error: invalid/unsupported symbolic name of message |
| 25 | |
| 26 | s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0) |
| 27 | // GCN: error: invalid symbolic name of GS_OP |
| 28 | |
| 29 | s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 4) |
| 30 | // GCN: error: invalid stream id: only 2-bit values are legal |
| 31 | |
| 32 | s_sendmsg sendmsg(2) |
| 33 | // GCN: error: not a valid operand |
| 34 | |
| 35 | s_sendmsg sendmsg(2, 0) |
| 36 | // GCN: error: invalid GS_OP: NOP is for GS_DONE only |
| 37 | |
| 38 | s_sendmsg sendmsg(2, 3, 0, 0) |
| 39 | // GCN: error: not a valid operand |
| 40 | |
| 41 | s_sendmsg sendmsg(2, 4, 1) |
| 42 | // GCN: error: invalid code of GS_OP: only 2-bit values are legal |
| 43 | |
| 44 | s_sendmsg sendmsg(2, 2, 4) |
| 45 | // GCN: error: invalid stream id: only 2-bit values are legal |
| 46 | |
| 47 | s_sendmsg sendmsg(2, 2, 0, 0) |
| 48 | // GCN: error: not a valid operand |
| 49 | |
| 50 | s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP, 0) |
| 51 | // GCN: error: not a valid operand |
| 52 | |
| 53 | s_sendmsg sendmsg(15) |
| 54 | // GCN: error: not a valid operand |
| 55 | |
| 56 | s_sendmsg sendmsg(15, 1, 0) |
| 57 | // GCN: error: not a valid operand |
| 58 | |
| 59 | s_sendmsg sendmsg(15, 0) |
| 60 | // GCN: error: invalid/unsupported code of SYSMSG_OP |
| 61 | |
| 62 | s_sendmsg sendmsg(15, 5) |
| 63 | // GCN: error: invalid/unsupported code of SYSMSG_OP |
| 64 | |
| 65 | s_sendmsg sendmsg(MSG_SYSMSG) |
| 66 | // GCN: error: not a valid operand |
| 67 | |
| 68 | s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0) |
| 69 | // GCN: error: not a valid operand |
| 70 | |
| 71 | s_sendmsg sendmsg(MSG_SYSMSG, 0) |
| 72 | // GCN: error: invalid/unsupported code of SYSMSG_OP |
| 73 | |
| 74 | s_sendmsg sendmsg(MSG_SYSMSG, 5) |
| 75 | // GCN: error: invalid/unsupported code of SYSMSG_OP |