45 lines · plain
1// RUN: not llvm-mc -triple=amdgcn %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck --check-prefixes=GCN,VI --implicit-check-not=error: %s4 5s_mov_b32 v1, s26// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction7 8s_mov_b32 s1, v09// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction10 11s_mov_b32 s[1:2], s012// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment13 14s_mov_b32 s0, s[1:2]15// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment16 17s_mov_b32 s220, s018// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range19 20s_mov_b32 s0, s22021// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range22 23s_mov_b64 s1, s[0:1]24// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction25 26s_mov_b64 s[0:1], s127// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction28 29// FIXME: This shoudl probably say failed to parse.30s_mov_b32 s31// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction32// Out of range register33 34s_mov_b32 s102, 135// VI: :[[@LINE-1]]:{{[0-9]+}}: error: s102 register not available on this GPU36 37s_mov_b32 s103, 138// VI: :[[@LINE-1]]:{{[0-9]+}}: error: s103 register not available on this GPU39 40s_mov_b64 s[102:103], -141// VI: :[[@LINE-1]]:{{[0-9]+}}: error: s[102:103] register not available on this GPU42 43s_setpc_b64 044// GCN: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction45