brintos

brintos / llvm-project-archived public Read only

0
0
Text · 7.2 KiB · aaeaae1 Raw
143 lines · plain
1// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,SI-ERR --implicit-check-not=error: %s2// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,VI-ERR --implicit-check-not=error: %s3// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX9-ERR,SICIVI9-ERR --implicit-check-not=error: %s4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX10-ERR --implicit-check-not=error: %s5// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1250 %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX1250-ERR --implicit-check-not=error: %s6 7// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefix=SIVICI %s8// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefixes=SIVICI,CIVI9 %s9// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefixes=GFX9,CIVI9 %s10// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck -check-prefix=GFX10 %s11// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1250 -show-encoding %s | FileCheck -check-prefix=GFX1250 %s12 13s_add_i32 s106, s0, s114// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range15 16s_add_i32 s104, s0, s117// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: s104 register not available on this GPU18// GFX10: s_add_i32 s104, s0, s1 ; encoding:19// GFX1250: s_add_co_i32 s104, s0, s1 ; encoding:20 21s_add_i32 s105, s0, s122// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: s105 register not available on this GPU23// GFX10: s_add_i32 s105, s0, s1 ; encoding:24// GFX1250: s_add_co_i32 s105, s0, s1 ; encoding:25 26v_add_i32 v256, v0, v127// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU28// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range29// SI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: register index is out of range30// VI-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: instruction not supported on this GPU31// GFX1250-ERR: :[[@LINE-5]]:{{[0-9]+}}: error: register index is out of range32 33v_add_i32 v257, v0, v134// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU35// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range36// SI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: register index is out of range37// VI-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: instruction not supported on this GPU38// GFX1250-ERR: :[[@LINE-5]]:{{[0-9]+}}: error: register index is out of range39 40s_mov_b64 s[0:17], -141// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid or unsupported register size42 43s_mov_b64 s[103:104], -144// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment45 46s_mov_b64 s[105:106], -147// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment48 49s_mov_b64 s[104:105], -150// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: s[104:105] register not available on this GPU51// GFX10: s_mov_b64 s[104:105], -1 ; encoding:52// GFX1250: s_mov_b64 s[104:105], -1 ; encoding:53 54s_load_dwordx4 s[102:105], s[2:3], s455// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment56 57s_load_dwordx4 s[104:108], s[2:3], s458// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range59 60s_load_dwordx4 s[108:112], s[2:3], s461// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range62 63s_load_dwordx4 s[1:4], s[2:3], s464// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment65 66s_load_dwordx4 s[2:5], s[2:3], s467// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment68 69s_load_dwordx8 s[104:111], s[2:3], s470// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range71 72s_load_dwordx8 s[100:107], s[2:3], s473// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range74 75s_load_dwordx8 s[108:115], s[2:3], s476// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range77 78s_load_dwordx16 s[92:107], s[2:3], s479// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range80 81s_load_dwordx16 s[96:111], s[2:3], s482// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range83 84s_load_dwordx16 s[100:115], s[2:3], s485// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range86 87s_load_dwordx16 s[104:119], s[2:3], s488// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range89 90s_load_dwordx16 s[108:123], s[2:3], s491// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range92 93s_mov_b32 ttmp16, 094// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range95 96s_mov_b32 ttmp12, 097// GFX9: s_mov_b32 ttmp12, 0 ; encoding:98// GFX10: s_mov_b32 ttmp12, 0 ; encoding:99// SIVICI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: ttmp12 register not available on this GPU100// GFX1250: s_mov_b32 ttmp12, 0 ; encoding:101 102s_mov_b32 ttmp15, 0103// GFX9: s_mov_b32 ttmp15, 0 ; encoding:104// GFX10: s_mov_b32 ttmp15, 0 ; encoding:105// SIVICI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: ttmp15 register not available on this GPU106// GFX1250: s_mov_b32 ttmp15, 0 ; encoding:107 108s_mov_b32 flat_scratch_lo, 0109// SI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU110// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU111// CIVI9: s_mov_b32 flat_scratch_lo, 0 ; encoding: [0x80,0x00,0xe6,0xbe]112// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU113 114s_mov_b32 flat_scratch_hi, 0115// SI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU116// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU117// CIVI9: s_mov_b32 flat_scratch_hi, 0 ; encoding: [0x80,0x00,0xe7,0xbe]118// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU119 120s_mov_b32 tma_lo, 0121// SIVICI: s_mov_b32 tma_lo, 0 ; encoding:122// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: tma_lo register not available on this GPU123// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: tma_lo register not available on this GPU124// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: tma_lo register not available on this GPU125 126s_mov_b32 tba_lo, 0127// SIVICI: s_mov_b32 tba_lo, 0 ; encoding:128// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: tba_lo register not available on this GPU129// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: tba_lo register not available on this GPU130// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: tba_lo register not available on this GPU131 132v_cvt_f32_f64 v0, v[255:256]133// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range134// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range135// GFX1250-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: invalid register class: vgpr tuples must be 64 bit aligned136 137v_mqsad_u32_u8 v[254:257], v[0:1], -4.0, v[2:5]138// SI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU139// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range140// GFX9-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: register index is out of range141// GFX10-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: register index is out of range142// GFX1250: v_mqsad_u32_u8 v[254:257], v[0:1], -4.0, v[2:5] ; encoding: [0xfe,0x00,0x3d,0xd6,0x00,0xef,0x09,0x04]143