# NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 6
# RUN: llvm-mc -triple=amdgpu12.00 -disassemble -filetype=null < %s 2>&1 | FileCheck -check-prefix=GFX12-ERR %s

# This is v_s_exp_f32 with an SGPR destination that does not fit the 7-bit
# scalar register encoding of the 8-bit VOP3 vdst field.
0xfa,0x00,0x80,0xd6,0x01,0x00,0x01,0x02
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# VINTERP true16 source operands must have the VGPR selector bit set.
0x00,0x00,0x02,0xcd,0x00,0x00,0x00,0x00
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

0x00,0x00,0x03,0xcd,0x00,0x00,0x00,0x00
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

0x00,0x00,0x04,0xcd,0x00,0x00,0x00,0x00
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

0x00,0x00,0x05,0xcd,0x00,0x00,0x00,0x00
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# This is s_waitcnt_vscnt exec_hi, 0x1234, which is valid on gfx11, but not on
# gfx12.
0x34,0x12,0x7f,0xbc
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# src_pops_exiting_wave_id (239) is only available on targets that support
# POPS.
0x00,0xef,0x0c,0xbf
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# src_vccz (251) and src_execz (252) are reserved on GFX11+.
0xfb,0x0e,0x80,0xbe
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

0xfc,0x0e,0x80,0xbe
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# This is ds_add_f32 with the gds bit, which is not valid on gfx12+.
0x00,0x00,0x56,0xd8,0x00,0x01,0x00,0x00
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# This is image_msaa_load where the samp field for gfx12 VSAMPLE is not all
# zeros.
0x06,0x00,0x46,0xe4,0x01,0x10,0x80,0x00,0x05,0x06,0x07,0x00
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding

# This is s_load_b96 with a ttmp destination, which is not a supported 96-bit
# scalar destination encoding.
0x00,0xbb,0x00,0xf4,0x00,0x00,0x00,0xf8
# GFX12-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding
