73 lines · plain
1// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 52// RUN: llvm-mc -triple=amdgcn -show-encoding -mcpu=gfx1250 %s | FileCheck --check-prefix=GFX1250 %s3// RUN: llvm-mc -triple=amdgcn -show-encoding -mcpu=gfx1250 %s | %extract-encodings | llvm-mc -triple=amdgcn -mcpu=gfx1250 -disassemble -show-encoding | FileCheck --check-prefixes=GFX1250 %s4// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 -show-encoding %s 2>&1 | FileCheck --check-prefix=GFX12-ERR --implicit-check-not=error: --strict-whitespace %s5 6s_add_pc_i64 s[2:3]7// GFX1250: s_add_pc_i64 s[2:3] ; encoding: [0x02,0x4b,0x80,0xbe]8// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU9 10s_add_pc_i64 411// GFX1250: s_add_pc_i64 4 ; encoding: [0x84,0x4b,0x80,0xbe]12// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU13 14s_add_pc_i64 10015// GFX1250: s_add_pc_i64 0x64 ; encoding: [0xff,0x4b,0x80,0xbe,0x64,0x00,0x00,0x00]16// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU17 18s_add_pc_i64 0x12345678abcd019// GFX1250: s_add_pc_i64 0x12345678abcd0 ; encoding: [0xfe,0x4b,0x80,0xbe,0xd0,0xbc,0x8a,0x67,0x45,0x23,0x01,0x00]20// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU21 22s_get_pc_i64 s[2:3]23// GFX1250: s_get_pc_i64 s[2:3] ; encoding: [0x00,0x47,0x82,0xbe]24// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU25 26s_getpc_b64 s[2:3]27// GFX1250: s_get_pc_i64 s[2:3] ; encoding: [0x00,0x47,0x82,0xbe]28 29s_set_pc_i64 s[2:3]30// GFX1250: s_set_pc_i64 s[2:3] ; encoding: [0x02,0x48,0x80,0xbe]31// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU32 33s_setpc_b64 s[2:3]34// GFX1250: s_set_pc_i64 s[2:3] ; encoding: [0x02,0x48,0x80,0xbe]35 36s_swap_pc_i64 s[2:3], 1037// GFX1250: s_swap_pc_i64 s[2:3], 10 ; encoding: [0x8a,0x49,0x82,0xbe]38// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU39 40s_swappc_b64 s[2:3], 1041// GFX1250: s_swap_pc_i64 s[2:3], 10 ; encoding: [0x8a,0x49,0x82,0xbe]42 43s_rfe_i64 s[2:3]44// GFX1250: s_rfe_i64 s[2:3] ; encoding: [0x02,0x4a,0x80,0xbe]45// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU46 47s_rfe_b64 s[2:3]48// GFX1250: s_rfe_i64 s[2:3] ; encoding: [0x02,0x4a,0x80,0xbe]49 50s_sendmsg_rtn_b32 s2, sendmsg(MSG_RTN_GET_CLUSTER_BARRIER_STATE)51// GFX1250: s_sendmsg_rtn_b32 s2, sendmsg(MSG_RTN_GET_CLUSTER_BARRIER_STATE) ; encoding: [0x88,0x4c,0x82,0xbe]52// GFX12-ERR: :[[@LINE-2]]:31: error: specified message id is not supported on this GPU53 54s_sendmsg_rtn_b64 s[2:3], sendmsg(MSG_RTN_GET_CLUSTER_BARRIER_STATE)55// GFX1250: s_sendmsg_rtn_b64 s[2:3], sendmsg(MSG_RTN_GET_CLUSTER_BARRIER_STATE) ; encoding: [0x88,0x4d,0x82,0xbe]56// GFX12-ERR: :[[@LINE-2]]:35: error: specified message id is not supported on this GPU57 58s_get_shader_cycles_u64 s[2:3]59// GFX1250: s_get_shader_cycles_u64 s[2:3] ; encoding: [0x00,0x06,0x82,0xbe]60// GFX12-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU61 62s_barrier_signal -363// GFX1250: s_barrier_signal -3 ; encoding: [0xc3,0x4e,0x80,0xbe]64 65s_get_barrier_state s3, -366// GFX1250: s_get_barrier_state s3, -3 ; encoding: [0xc3,0x50,0x83,0xbe]67 68s_get_barrier_state s3, -469// GFX1250: s_get_barrier_state s3, -4 ; encoding: [0xc4,0x50,0x83,0xbe]70 71s_get_barrier_state s3, m072// GFX1250: s_get_barrier_state s3, m0 ; encoding: [0x7d,0x50,0x83,0xbe]73