brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 745ac9e Raw
37 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=NOSI --implicit-check-not=error: %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefix=NOCI --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=NOVI --implicit-check-not=error: %s4// RUN: not llvm-mc -triple=amdgcn -mcpu=hawaii -show-encoding %s | FileCheck -check-prefix=CI %s5// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga -show-encoding %s  | FileCheck -check-prefix=VI %s6 7s_mov_b64 flat_scratch, -18// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch register not available on this GPU9// CI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x04,0xe8,0xbe]10// VI: s_mov_b64 flat_scratch, -1 ; encoding: [0xc1,0x01,0xe6,0xbe]11 12s_mov_b32 flat_scratch_lo, -113// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU14// CI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x03,0xe8,0xbe]15// VI: s_mov_b32 flat_scratch_lo, -1 ; encoding: [0xc1,0x00,0xe6,0xbe]16 17s_mov_b32 flat_scratch_hi, -118// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU19// CI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x03,0xe9,0xbe]20// VI: s_mov_b32 flat_scratch_hi, -1 ; encoding: [0xc1,0x00,0xe7,0xbe]21 22 23s_mov_b64 flat_scratch_lo, -124// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU25// NOCI: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction26// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: invalid operand for instruction27 28s_mov_b64 flat_scratch_hi, -129// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU30// NOCI: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction31// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: invalid operand for instruction32 33s_mov_b32 flat_scratch, -134// NOSI: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch register not available on this GPU35// NOCI: :[[@LINE-2]]:{{[0-9]+}}: error: invalid operand for instruction36// NOVI: :[[@LINE-3]]:{{[0-9]+}}: error: invalid operand for instruction37