511 lines · plain
1// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 52 3// RUN: not llvm-mc -triple=amdgcn %s -show-encoding -mcpu=gfx900 | FileCheck %s -check-prefix=GFX94// RUN: not llvm-mc -triple=amdgcn %s -show-encoding -mcpu=gfx1010 -mattr=+wavefrontsize64 | FileCheck %s -check-prefix=GFX105// RUN: not llvm-mc -triple=amdgcn %s -show-encoding -mcpu=gfx1250 -mattr=+wavefrontsize64 | FileCheck %s -check-prefix=GFX12506// RUN: not llvm-mc -triple=amdgcn %s -show-encoding -mcpu=gfx1250 -mattr=+wavefrontsize64 | %extract-encodings | llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=+wavefrontsize64 -disassemble -show-encoding | FileCheck --check-prefixes=GFX1250 %s7 8// RUN: not llvm-mc -triple=amdgcn %s -filetype=null -no-warn 2>&1 -mcpu=gfx900 | FileCheck %s -implicit-check-not=error: -check-prefix=GFX9-ERR9// RUN: not llvm-mc -triple=amdgcn %s -filetype=null -no-warn 2>&1 -mcpu=gfx1010 -mattr=+wavefrontsize64 | FileCheck %s -implicit-check-not=error: -check-prefix=GFX10-ERR10// RUN: not llvm-mc -triple=amdgcn %s -filetype=null -no-warn 2>&1 -mcpu=gfx1250 -mattr=+wavefrontsize64 | FileCheck %s -implicit-check-not=error: -check-prefix=GFX1250-ERR11 12v_bfe_u32 v0, 0x3039, v1, s113// GFX10: v_bfe_u32 v0, 0x3039, v1, s1 ; encoding: [0x00,0x00,0x48,0xd5,0xff,0x02,0x06,0x00,0x39,0x30,0x00,0x00]14// GFX1250: v_bfe_u32 v0, 0x3039, v1, s1 ; encoding: [0x00,0x00,0x10,0xd6,0xff,0x02,0x06,0x00,0x39,0x30,0x00,0x00]15// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported16 17v_bfe_u32 v0, v1, 0x3039, s118// GFX10: v_bfe_u32 v0, v1, 0x3039, s1 ; encoding: [0x00,0x00,0x48,0xd5,0x01,0xff,0x05,0x00,0x39,0x30,0x00,0x00]19// GFX1250: v_bfe_u32 v0, v1, 0x3039, s1 ; encoding: [0x00,0x00,0x10,0xd6,0x01,0xff,0x05,0x00,0x39,0x30,0x00,0x00]20// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported21 22v_bfe_u32 v0, v1, s1, 0x303923// GFX10: v_bfe_u32 v0, v1, s1, 0x3039 ; encoding: [0x00,0x00,0x48,0xd5,0x01,0x03,0xfc,0x03,0x39,0x30,0x00,0x00]24// GFX1250: v_bfe_u32 v0, v1, s1, 0x3039 ; encoding: [0x00,0x00,0x10,0xd6,0x01,0x03,0xfc,0x03,0x39,0x30,0x00,0x00]25// GFX9-ERR: :[[@LINE-3]]:23: error: literal operands are not supported26 27v_bfe_u32 v0, 0x3039, 0x3039, s128// GFX10: v_bfe_u32 v0, 0x3039, 0x3039, s1 ; encoding: [0x00,0x00,0x48,0xd5,0xff,0xfe,0x05,0x00,0x39,0x30,0x00,0x00]29// GFX1250: v_bfe_u32 v0, 0x3039, 0x3039, s1 ; encoding: [0x00,0x00,0x10,0xd6,0xff,0xfe,0x05,0x00,0x39,0x30,0x00,0x00]30// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported31 32v_bfe_u32 v0, 0x3039, s1, 0x303933// GFX10: v_bfe_u32 v0, 0x3039, s1, 0x3039 ; encoding: [0x00,0x00,0x48,0xd5,0xff,0x02,0xfc,0x03,0x39,0x30,0x00,0x00]34// GFX1250: v_bfe_u32 v0, 0x3039, s1, 0x3039 ; encoding: [0x00,0x00,0x10,0xd6,0xff,0x02,0xfc,0x03,0x39,0x30,0x00,0x00]35// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported36 37v_bfe_u32 v0, v1, 0x3039, 0x303938// GFX10: v_bfe_u32 v0, v1, 0x3039, 0x3039 ; encoding: [0x00,0x00,0x48,0xd5,0x01,0xff,0xfd,0x03,0x39,0x30,0x00,0x00]39// GFX1250: v_bfe_u32 v0, v1, 0x3039, 0x3039 ; encoding: [0x00,0x00,0x10,0xd6,0x01,0xff,0xfd,0x03,0x39,0x30,0x00,0x00]40// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported41 42v_bfe_u32 v0, 0x3039, 0x3039, 0x303943// GFX10: v_bfe_u32 v0, 0x3039, 0x3039, 0x3039 ; encoding: [0x00,0x00,0x48,0xd5,0xff,0xfe,0xfd,0x03,0x39,0x30,0x00,0x00]44// GFX1250: v_bfe_u32 v0, 0x3039, 0x3039, 0x3039 ; encoding: [0x00,0x00,0x10,0xd6,0xff,0xfe,0xfd,0x03,0x39,0x30,0x00,0x00]45// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported46 47v_bfe_u32 v0, 0x3039, s1, 0x303848// GFX9-ERR: :[[@LINE-1]]:15: error: literal operands are not supported49// GFX10-ERR: :[[@LINE-2]]:27: error: only one unique literal operand is allowed50// GFX1250-ERR: :[[@LINE-3]]:27: error: only one unique literal operand is allowed51 52v_bfe_u32 v0, 0x3039, v1, v253// GFX10: v_bfe_u32 v0, 0x3039, v1, v2 ; encoding: [0x00,0x00,0x48,0xd5,0xff,0x02,0x0a,0x04,0x39,0x30,0x00,0x00]54// GFX1250: v_bfe_u32 v0, 0x3039, v1, v2 ; encoding: [0x00,0x00,0x10,0xd6,0xff,0x02,0x0a,0x04,0x39,0x30,0x00,0x00]55// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported56 57v_bfe_u32 v0, 0x3039, 0x12345, v258// GFX9-ERR: :[[@LINE-1]]:15: error: literal operands are not supported59// GFX10-ERR: :[[@LINE-2]]:23: error: only one unique literal operand is allowed60// GFX1250-ERR: :[[@LINE-3]]:23: error: only one unique literal operand is allowed61 62v_bfe_u32 v0, s1, 0x3039, s163// GFX10: v_bfe_u32 v0, s1, 0x3039, s1 ; encoding: [0x00,0x00,0x48,0xd5,0x01,0xfe,0x05,0x00,0x39,0x30,0x00,0x00]64// GFX1250: v_bfe_u32 v0, s1, 0x3039, s1 ; encoding: [0x00,0x00,0x10,0xd6,0x01,0xfe,0x05,0x00,0x39,0x30,0x00,0x00]65// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported66 67v_bfe_u32 v0, s1, 0x3039, s268// GFX9-ERR: :[[@LINE-1]]:19: error: literal operands are not supported69// GFX10-ERR: :[[@LINE-2]]:27: error: invalid operand (violates constant bus restrictions)70// GFX1250-ERR: :[[@LINE-3]]:27: error: invalid operand (violates constant bus restrictions)71 72v_bfm_b32_e64 v0, 0x3039, s173// GFX10: v_bfm_b32 v0, 0x3039, s1 ; encoding: [0x00,0x00,0x63,0xd7,0xff,0x02,0x00,0x00,0x39,0x30,0x00,0x00]74// GFX1250: v_bfm_b32 v0, 0x3039, s1 ; encoding: [0x00,0x00,0x1d,0xd7,0xff,0x02,0x00,0x00,0x39,0x30,0x00,0x00]75// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported76 77v_bfm_b32_e64 v0, 0x3039, v178// GFX10: v_bfm_b32 v0, 0x3039, v1 ; encoding: [0x00,0x00,0x63,0xd7,0xff,0x02,0x02,0x00,0x39,0x30,0x00,0x00]79// GFX1250: v_bfm_b32 v0, 0x3039, v1 ; encoding: [0x00,0x00,0x1d,0xd7,0xff,0x02,0x02,0x00,0x39,0x30,0x00,0x00]80// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported81 82v_bfm_b32_e64 v0, 0x3039, 0x303983// GFX10: v_bfm_b32 v0, 0x3039, 0x3039 ; encoding: [0x00,0x00,0x63,0xd7,0xff,0xfe,0x01,0x00,0x39,0x30,0x00,0x00]84// GFX1250: v_bfm_b32 v0, 0x3039, 0x3039 ; encoding: [0x00,0x00,0x1d,0xd7,0xff,0xfe,0x01,0x00,0x39,0x30,0x00,0x00]85// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported86 87v_bfm_b32_e64 v0, 0x3039, 0x303888// GFX9-ERR: :[[@LINE-1]]:19: error: literal operands are not supported89// GFX10-ERR: :[[@LINE-2]]:27: error: only one unique literal operand is allowed90// GFX1250-ERR: :[[@LINE-3]]:27: error: only one unique literal operand is allowed91 92v_pk_add_f16 v1, 25.0, v293// GFX10: v_pk_add_f16 v1, 0x4e40, v2 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x40,0x4e,0x00,0x00]94// GFX1250: v_pk_add_f16 v1, 0x4e40, v2 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x40,0x4e,0x00,0x00]95// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported96 97v_pk_add_f16 v1, 123456, v298// GFX10: v_pk_add_f16 v1, 0x1e240, v2 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x40,0xe2,0x01,0x00]99// GFX1250: v_pk_add_f16 v1, 0x1e240, v2 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x40,0xe2,0x01,0x00]100// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported101 102v_pk_add_f16 v1, -200, v2103// GFX10: v_pk_add_f16 v1, 0xffffff38, v2 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x38,0xff,0xff,0xff]104// GFX1250: v_pk_add_f16 v1, 0xffffff38, v2 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x38,0xff,0xff,0xff]105// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported106 107v_pk_add_f16 v1, 25.0, 25.0108// GFX10: v_pk_add_f16 v1, 0x4e40, 0x4e40 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0xfe,0x01,0x18,0x40,0x4e,0x00,0x00]109// GFX1250: v_pk_add_f16 v1, 0x4e40, 0x4e40 ; encoding: [0x01,0x40,0x0f,0xcc,0xff,0xfe,0x01,0x18,0x40,0x4e,0x00,0x00]110// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported111 112v_pk_add_f16 v1, 25.0, 25.1113// GFX9-ERR: :[[@LINE-1]]:18: error: literal operands are not supported114// GFX10-ERR: :[[@LINE-2]]:24: error: only one unique literal operand is allowed115// GFX1250-ERR: :[[@LINE-3]]:24: error: only one unique literal operand is allowed116 117v_pk_add_u16 v1, -200, v2118// GFX10: v_pk_add_u16 v1, 0xffffff38, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0x04,0x02,0x18,0x38,0xff,0xff,0xff]119// GFX1250: v_pk_add_u16 v1, 0xffffff38, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0x04,0x02,0x18,0x38,0xff,0xff,0xff]120// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported121 122v_pk_add_u16 v1, 64, v2123// GFX9: v_pk_add_u16 v1, 64, v2 ; encoding: [0x01,0x40,0x8a,0xd3,0xc0,0x04,0x02,0x18]124// GFX10: v_pk_add_u16 v1, 64, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xc0,0x04,0x02,0x18]125// GFX1250: v_pk_add_u16 v1, 64, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xc0,0x04,0x02,0x18]126 127v_pk_add_u16 v1, 65, v2128// GFX10: v_pk_add_u16 v1, 0x41, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0x04,0x02,0x18,0x41,0x00,0x00,0x00]129// GFX1250: v_pk_add_u16 v1, 0x41, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0x04,0x02,0x18,0x41,0x00,0x00,0x00]130// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported131 132v_pk_add_u16 v1, -1, v2133// GFX9: v_pk_add_u16 v1, -1, v2 ; encoding: [0x01,0x40,0x8a,0xd3,0xc1,0x04,0x02,0x18]134// GFX10: v_pk_add_u16 v1, -1, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xc1,0x04,0x02,0x18]135// GFX1250: v_pk_add_u16 v1, -1, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xc1,0x04,0x02,0x18]136 137v_pk_add_u16 v1, -5, v2138// GFX9: v_pk_add_u16 v1, -5, v2 ; encoding: [0x01,0x40,0x8a,0xd3,0xc5,0x04,0x02,0x18]139// GFX10: v_pk_add_u16 v1, -5, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xc5,0x04,0x02,0x18]140// GFX1250: v_pk_add_u16 v1, -5, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xc5,0x04,0x02,0x18]141 142v_pk_add_u16 v1, -100, v2143// GFX10: v_pk_add_u16 v1, 0xffffff9c, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0x04,0x02,0x18,0x9c,0xff,0xff,0xff]144// GFX1250: v_pk_add_u16 v1, 0xffffff9c, v2 ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0x04,0x02,0x18,0x9c,0xff,0xff,0xff]145// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported146 147v_pk_add_u16 v1, -100, -100148// GFX10: v_pk_add_u16 v1, 0xffffff9c, 0xffffff9c ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0xfe,0x01,0x18,0x9c,0xff,0xff,0xff]149// GFX1250: v_pk_add_u16 v1, 0xffffff9c, 0xffffff9c ; encoding: [0x01,0x40,0x0a,0xcc,0xff,0xfe,0x01,0x18,0x9c,0xff,0xff,0xff]150// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported151 152v_add_f32_e64 v1, neg(abs(0x123)), v3153// GFX10: v_add_f32_e64 v1, -|0x123|, v3 ; encoding: [0x01,0x01,0x03,0xd5,0xff,0x06,0x02,0x20,0x23,0x01,0x00,0x00]154// GFX1250: v_add_f32_e64 v1, -|0x123|, v3 ; encoding: [0x01,0x01,0x03,0xd5,0xff,0x06,0x02,0x20,0x23,0x01,0x00,0x00]155// GFX9-ERR: :[[@LINE-3]]:27: error: literal operands are not supported156 157v_add_f32_e64 v1, v3, neg(0x123)158// GFX10: v_add_f32_e64 v1, v3, neg(0x123) ; encoding: [0x01,0x00,0x03,0xd5,0x03,0xff,0x01,0x40,0x23,0x01,0x00,0x00]159// GFX1250: v_add_f32_e64 v1, v3, neg(0x123) ; encoding: [0x01,0x00,0x03,0xd5,0x03,0xff,0x01,0x40,0x23,0x01,0x00,0x00]160// GFX9-ERR: :[[@LINE-3]]:27: error: literal operands are not supported161 162v_add_f32_e64 v1, neg(abs(0x12345678)), neg(0x12345678)163// GFX10: v_add_f32_e64 v1, -|0x12345678|, neg(0x12345678) ; encoding: [0x01,0x01,0x03,0xd5,0xff,0xfe,0x01,0x60,0x78,0x56,0x34,0x12]164// GFX1250: v_add_f32_e64 v1, -|0x12345678|, neg(0x12345678) ; encoding: [0x01,0x01,0x03,0xd5,0xff,0xfe,0x01,0x60,0x78,0x56,0x34,0x12]165// GFX9-ERR: :[[@LINE-3]]:27: error: literal operands are not supported166 167v_add_f16_e64 v0, v0, 0xfe0b168// GFX10: v_add_f16_e64 v0, v0, 0xfe0b ; encoding: [0x00,0x00,0x32,0xd5,0x00,0xff,0x01,0x00,0x0b,0xfe,0x00,0x00]169// GFX1250: v_add_f16_e64 v0, v0, 0xfe0b ; encoding: [0x00,0x00,0x32,0xd5,0x00,0xff,0x01,0x00,0x0b,0xfe,0x00,0x00]170// GFX9-ERR: :[[@LINE-3]]:23: error: literal operands are not supported171 172v_add_f16_e64 v0, v0, neg(0xfe0b)173// GFX10: v_add_f16_e64 v0, v0, neg(0xfe0b) ; encoding: [0x00,0x00,0x32,0xd5,0x00,0xff,0x01,0x40,0x0b,0xfe,0x00,0x00]174// GFX1250: v_add_f16_e64 v0, v0, neg(0xfe0b) ; encoding: [0x00,0x00,0x32,0xd5,0x00,0xff,0x01,0x40,0x0b,0xfe,0x00,0x00]175// GFX9-ERR: :[[@LINE-3]]:27: error: literal operands are not supported176 177v_add_f16_e64 v0, 0x3456, v0178// GFX10: v_add_f16_e64 v0, 0x3456, v0 ; encoding: [0x00,0x00,0x32,0xd5,0xff,0x00,0x02,0x00,0x56,0x34,0x00,0x00]179// GFX1250: v_add_f16_e64 v0, 0x3456, v0 ; encoding: [0x00,0x00,0x32,0xd5,0xff,0x00,0x02,0x00,0x56,0x34,0x00,0x00]180// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported181 182v_add_f16_e64 v0, 0xfe0b, neg(0xfe0b)183// GFX10: v_add_f16_e64 v0, 0xfe0b, neg(0xfe0b) ; encoding: [0x00,0x00,0x32,0xd5,0xff,0xfe,0x01,0x40,0x0b,0xfe,0x00,0x00]184// GFX1250: v_add_f16_e64 v0, 0xfe0b, neg(0xfe0b) ; encoding: [0x00,0x00,0x32,0xd5,0xff,0xfe,0x01,0x40,0x0b,0xfe,0x00,0x00]185// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported186 187v_add_f64 v[0:1], 1.23456, v[0:1]188// GFX10: v_add_f64 v[0:1], 0x3ff3c0c1, v[0:1] ; encoding: [0x00,0x00,0x64,0xd5,0xff,0x00,0x02,0x00,0xc1,0xc0,0xf3,0x3f]189// GFX1250: v_add_f64_e32 v[0:1], 0x3ff3c0c1fc8f3238, v[0:1] ; encoding: [0xfe,0x00,0x00,0x04,0x38,0x32,0x8f,0xfc,0xc1,0xc0,0xf3,0x3f]190// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported191 192v_add_f64 v[0:1], v[0:1], -abs(1.23456)193// GFX10: v_add_f64 v[0:1], v[0:1], -|0x3ff3c0c1| ; encoding: [0x00,0x02,0x64,0xd5,0x00,0xff,0x01,0x40,0xc1,0xc0,0xf3,0x3f]194// GFX1250: v_add_f64_e64 v[0:1], v[0:1], -|0x3ff3c0c1| ; encoding: [0x00,0x02,0x02,0xd5,0x00,0xff,0x01,0x40,0xc1,0xc0,0xf3,0x3f]195// GFX9-ERR: :[[@LINE-3]]:32: error: literal operands are not supported196 197v_add_f64 v[0:1], 1.23456, -abs(1.23456)198// GFX10: v_add_f64 v[0:1], 0x3ff3c0c1, -|0x3ff3c0c1| ; encoding: [0x00,0x02,0x64,0xd5,0xff,0xfe,0x01,0x40,0xc1,0xc0,0xf3,0x3f]199// GFX1250: v_add_f64_e64 v[0:1], 0x3ff3c0c1, -|0x3ff3c0c1| ; encoding: [0x00,0x02,0x02,0xd5,0xff,0xfe,0x01,0x40,0xc1,0xc0,0xf3,0x3f]200// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported201 202v_add_f64 v[0:1], 1.23456, -abs(1.2345)203// GFX9-ERR: :[[@LINE-1]]:19: error: literal operands are not supported204// GFX10-ERR: :[[@LINE-2]]:33: error: only one unique literal operand is allowed205// GFX1250-ERR: :[[@LINE-3]]:33: error: only one unique literal operand is allowed206 207v_max_i16_e64 v5, 0xfe0b, v2208// GFX10: v_max_i16 v5, 0xfe0b, v2 ; encoding: [0x05,0x00,0x0a,0xd7,0xff,0x04,0x02,0x00,0x0b,0xfe,0x00,0x00]209// GFX1250: v_max_i16 v5, 0xfe0b, v2 ; encoding: [0x05,0x00,0x0a,0xd7,0xff,0x04,0x02,0x00,0x0b,0xfe,0x00,0x00]210// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported211 212v_max_i16_e64 v5, v1, 0x123213// GFX10: v_max_i16 v5, v1, 0x123 ; encoding: [0x05,0x00,0x0a,0xd7,0x01,0xff,0x01,0x00,0x23,0x01,0x00,0x00]214// GFX1250: v_max_i16 v5, v1, 0x123 ; encoding: [0x05,0x00,0x0a,0xd7,0x01,0xff,0x01,0x00,0x23,0x01,0x00,0x00]215// GFX9-ERR: :[[@LINE-3]]:23: error: literal operands are not supported216 217v_max_i16_e64 v5, 0x1234, 0x1234218// GFX10: v_max_i16 v5, 0x1234, 0x1234 ; encoding: [0x05,0x00,0x0a,0xd7,0xff,0xfe,0x01,0x00,0x34,0x12,0x00,0x00]219// GFX1250: v_max_i16 v5, 0x1234, 0x1234 ; encoding: [0x05,0x00,0x0a,0xd7,0xff,0xfe,0x01,0x00,0x34,0x12,0x00,0x00]220// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported221 222v_min3_i16 v5, 0xfe0b, v2, v3223// GFX10: v_min3_i16 v5, 0xfe0b, v2, v3 ; encoding: [0x05,0x00,0x52,0xd7,0xff,0x04,0x0e,0x04,0x0b,0xfe,0x00,0x00]224// GFX1250: v_min3_i16 v5, 0xfe0b, v2, v3 ; encoding: [0x05,0x00,0x4a,0xd6,0xff,0x04,0x0e,0x04,0x0b,0xfe,0x00,0x00]225// GFX9-ERR: :[[@LINE-3]]:16: error: literal operands are not supported226 227v_min3_i16 v5, v1, 0x1234, v3228// GFX10: v_min3_i16 v5, v1, 0x1234, v3 ; encoding: [0x05,0x00,0x52,0xd7,0x01,0xff,0x0d,0x04,0x34,0x12,0x00,0x00]229// GFX1250: v_min3_i16 v5, v1, 0x1234, v3 ; encoding: [0x05,0x00,0x4a,0xd6,0x01,0xff,0x0d,0x04,0x34,0x12,0x00,0x00]230// GFX9-ERR: :[[@LINE-3]]:20: error: literal operands are not supported231 232v_min3_i16 v5, v1, v2, 0x5678233// GFX10: v_min3_i16 v5, v1, v2, 0x5678 ; encoding: [0x05,0x00,0x52,0xd7,0x01,0x05,0xfe,0x03,0x78,0x56,0x00,0x00]234// GFX1250: v_min3_i16 v5, v1, v2, 0x5678 ; encoding: [0x05,0x00,0x4a,0xd6,0x01,0x05,0xfe,0x03,0x78,0x56,0x00,0x00]235// GFX9-ERR: :[[@LINE-3]]:24: error: literal operands are not supported236 237v_min3_i16 v5, 0x5678, 0x5678, 0x5678238// GFX10: v_min3_i16 v5, 0x5678, 0x5678, 0x5678 ; encoding: [0x05,0x00,0x52,0xd7,0xff,0xfe,0xfd,0x03,0x78,0x56,0x00,0x00]239// GFX1250: v_min3_i16 v5, 0x5678, 0x5678, 0x5678 ; encoding: [0x05,0x00,0x4a,0xd6,0xff,0xfe,0xfd,0x03,0x78,0x56,0x00,0x00]240// GFX9-ERR: :[[@LINE-3]]:16: error: literal operands are not supported241 242v_min3_i16 v5, 0x5678, 0x5679, 0x5678243// GFX9-ERR: :[[@LINE-1]]:16: error: literal operands are not supported244// GFX10-ERR: :[[@LINE-2]]:24: error: only one unique literal operand is allowed245// GFX1250-ERR: :[[@LINE-3]]:24: error: only one unique literal operand is allowed246 247v_min3_i16 v5, 0x5678, 0x5678, 0x5679248// GFX9-ERR: :[[@LINE-1]]:16: error: literal operands are not supported249// GFX10-ERR: :[[@LINE-2]]:32: error: only one unique literal operand is allowed250// GFX1250-ERR: :[[@LINE-3]]:32: error: only one unique literal operand is allowed251 252v_add_nc_u16 v5, 0xfe0b, v2253// GFX10: v_add_nc_u16 v5, 0xfe0b, v2 ; encoding: [0x05,0x00,0x03,0xd7,0xff,0x04,0x02,0x00,0x0b,0xfe,0x00,0x00]254// GFX1250: v_add_nc_u16 v5, 0xfe0b, v2 ; encoding: [0x05,0x00,0x03,0xd7,0xff,0x04,0x02,0x00,0x0b,0xfe,0x00,0x00]255// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU256 257v_add_nc_u16 v5, v1, 0x1234258// GFX10: v_add_nc_u16 v5, v1, 0x1234 ; encoding: [0x05,0x00,0x03,0xd7,0x01,0xff,0x01,0x00,0x34,0x12,0x00,0x00]259// GFX1250: v_add_nc_u16 v5, v1, 0x1234 ; encoding: [0x05,0x00,0x03,0xd7,0x01,0xff,0x01,0x00,0x34,0x12,0x00,0x00]260// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU261 262v_add_nc_u16 v5, 0x1234, 0x1234263// GFX10: v_add_nc_u16 v5, 0x1234, 0x1234 ; encoding: [0x05,0x00,0x03,0xd7,0xff,0xfe,0x01,0x00,0x34,0x12,0x00,0x00]264// GFX1250: v_add_nc_u16 v5, 0x1234, 0x1234 ; encoding: [0x05,0x00,0x03,0xd7,0xff,0xfe,0x01,0x00,0x34,0x12,0x00,0x00]265// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU266 267v_ashrrev_i16_e64 v5, 0x3456, v2268// GFX10: v_ashrrev_i16 v5, 0x3456, v2 ; encoding: [0x05,0x00,0x08,0xd7,0xff,0x04,0x02,0x00,0x56,0x34,0x00,0x00]269// GFX1250: v_ashrrev_i16 v5, 0x3456, v2 ; encoding: [0x05,0x00,0x3a,0xd7,0xff,0x04,0x02,0x00,0x56,0x34,0x00,0x00]270// GFX9-ERR: :[[@LINE-3]]:23: error: literal operands are not supported271 272v_mad_u16 v5, 0xfe0b, v2, v3273// GFX10: v_mad_u16 v5, 0xfe0b, v2, v3 ; encoding: [0x05,0x00,0x40,0xd7,0xff,0x04,0x0e,0x04,0x0b,0xfe,0x00,0x00]274// GFX1250: v_mad_u16 v5, 0xfe0b, v2, v3 ; encoding: [0x05,0x00,0x41,0xd6,0xff,0x04,0x0e,0x04,0x0b,0xfe,0x00,0x00]275// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported276 277v_mad_u16 v5, v1, 0x1234, v3278// GFX10: v_mad_u16 v5, v1, 0x1234, v3 ; encoding: [0x05,0x00,0x40,0xd7,0x01,0xff,0x0d,0x04,0x34,0x12,0x00,0x00]279// GFX1250: v_mad_u16 v5, v1, 0x1234, v3 ; encoding: [0x05,0x00,0x41,0xd6,0x01,0xff,0x0d,0x04,0x34,0x12,0x00,0x00]280// GFX9-ERR: :[[@LINE-3]]:19: error: literal operands are not supported281 282v_mad_u16 v5, v1, v2, 0x5678283// GFX10: v_mad_u16 v5, v1, v2, 0x5678 ; encoding: [0x05,0x00,0x40,0xd7,0x01,0x05,0xfe,0x03,0x78,0x56,0x00,0x00]284// GFX1250: v_mad_u16 v5, v1, v2, 0x5678 ; encoding: [0x05,0x00,0x41,0xd6,0x01,0x05,0xfe,0x03,0x78,0x56,0x00,0x00]285// GFX9-ERR: :[[@LINE-3]]:23: error: literal operands are not supported286 287v_mad_u16 v5, 0x5678, 0x5678, 0x5678288// GFX10: v_mad_u16 v5, 0x5678, 0x5678, 0x5678 ; encoding: [0x05,0x00,0x40,0xd7,0xff,0xfe,0xfd,0x03,0x78,0x56,0x00,0x00]289// GFX1250: v_mad_u16 v5, 0x5678, 0x5678, 0x5678 ; encoding: [0x05,0x00,0x41,0xd6,0xff,0xfe,0xfd,0x03,0x78,0x56,0x00,0x00]290// GFX9-ERR: :[[@LINE-3]]:15: error: literal operands are not supported291 292v_mad_legacy_f32 v5, 0xaf123456, v2, v3293// GFX10: v_mad_legacy_f32 v5, 0xaf123456, v2, v3 ; encoding: [0x05,0x00,0x40,0xd5,0xff,0x04,0x0e,0x04,0x56,0x34,0x12,0xaf]294// GFX9-ERR: :[[@LINE-2]]:22: error: literal operands are not supported295// GFX1250-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU296 297v_mad_legacy_f32 v5, v1, 0xaf123456, v3298// GFX10: v_mad_legacy_f32 v5, v1, 0xaf123456, v3 ; encoding: [0x05,0x00,0x40,0xd5,0x01,0xff,0x0d,0x04,0x56,0x34,0x12,0xaf]299// GFX9-ERR: :[[@LINE-2]]:26: error: literal operands are not supported300// GFX1250-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU301 302v_mad_legacy_f32 v5, v1, v2, 0xaf123456303// GFX10: v_mad_legacy_f32 v5, v1, v2, 0xaf123456 ; encoding: [0x05,0x00,0x40,0xd5,0x01,0x05,0xfe,0x03,0x56,0x34,0x12,0xaf]304// GFX9-ERR: :[[@LINE-2]]:30: error: literal operands are not supported305// GFX1250-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU306 307v_mad_legacy_f32 v5, 0xaf123456, 0xaf123456, 0xaf123456308// GFX10: v_mad_legacy_f32 v5, 0xaf123456, 0xaf123456, 0xaf123456 ; encoding: [0x05,0x00,0x40,0xd5,0xff,0xfe,0xfd,0x03,0x56,0x34,0x12,0xaf]309// GFX9-ERR: :[[@LINE-2]]:22: error: literal operands are not supported310// GFX1250-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU311 312v_cmp_eq_i32_e64 s[10:11], 0xaf123456, v2313// GFX10: v_cmp_eq_i32_e64 s[10:11], 0xaf123456, v2 ; encoding: [0x0a,0x00,0x82,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]314// GFX1250: v_cmp_eq_i32_e64 s[10:11], 0xaf123456, v2 ; encoding: [0x0a,0x00,0x42,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]315// GFX9-ERR: :[[@LINE-3]]:28: error: literal operands are not supported316 317v_cmp_eq_i32_e64 s[10:11], v1, 0xaf123456318// GFX10: v_cmp_eq_i32_e64 s[10:11], v1, 0xaf123456 ; encoding: [0x0a,0x00,0x82,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x12,0xaf]319// GFX1250: v_cmp_eq_i32_e64 s[10:11], v1, 0xaf123456 ; encoding: [0x0a,0x00,0x42,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x12,0xaf]320// GFX9-ERR: :[[@LINE-3]]:32: error: literal operands are not supported321 322v_cmp_eq_i32_e64 s[10:11], 0xaf123456, 0xaf123456323// GFX10: v_cmp_eq_i32_e64 s[10:11], 0xaf123456, 0xaf123456 ; encoding: [0x0a,0x00,0x82,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]324// GFX1250: v_cmp_eq_i32_e64 s[10:11], 0xaf123456, 0xaf123456 ; encoding: [0x0a,0x00,0x42,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]325// GFX9-ERR: :[[@LINE-3]]:28: error: literal operands are not supported326 327v_cmp_eq_i32_e64 s[10:11], 0xaf123456, 0xaf123455328// GFX9-ERR: :[[@LINE-1]]:28: error: literal operands are not supported329// GFX10-ERR: :[[@LINE-2]]:40: error: only one unique literal operand is allowed330// GFX1250-ERR: :[[@LINE-3]]:40: error: only one unique literal operand is allowed331 332v_cmp_eq_u64_e64 s[10:11], 0xaf123456, v[2:3]333// GFX10: v_cmp_eq_u64_e64 s[10:11], 0xaf123456, v[2:3] ; encoding: [0x0a,0x00,0xe2,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]334// GFX1250: v_cmp_eq_u64_e64 s[10:11], 0xaf123456, v[2:3] ; encoding: [0x0a,0x00,0x5a,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]335// GFX9-ERR: :[[@LINE-3]]:28: error: literal operands are not supported336 337v_cmp_eq_u64_e64 s[10:11], v[2:3], 0x3f717273338// GFX10: v_cmp_eq_u64_e64 s[10:11], v[2:3], 0x3f717273 ; encoding: [0x0a,0x00,0xe2,0xd4,0x02,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]339// GFX1250: v_cmp_eq_u64_e64 s[10:11], v[2:3], 0x3f717273 ; encoding: [0x0a,0x00,0x5a,0xd4,0x02,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]340// GFX9-ERR: :[[@LINE-3]]:36: error: literal operands are not supported341 342v_cmp_eq_u64_e64 s[10:11], 0x3f717273, 0x3f717273343// GFX10: v_cmp_eq_u64_e64 s[10:11], 0x3f717273, 0x3f717273 ; encoding: [0x0a,0x00,0xe2,0xd4,0xff,0xfe,0x01,0x00,0x73,0x72,0x71,0x3f]344// GFX1250: v_cmp_eq_u64_e64 s[10:11], 0x3f717273, 0x3f717273 ; encoding: [0x0a,0x00,0x5a,0xd4,0xff,0xfe,0x01,0x00,0x73,0x72,0x71,0x3f]345// GFX9-ERR: :[[@LINE-3]]:28: error: literal operands are not supported346 347v_cmpx_class_f32_e64 0xaf123456, v2348// GFX10: v_cmpx_class_f32_e64 0xaf123456, v2 ; encoding: [0x7e,0x00,0x98,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]349// GFX1250: v_cmpx_class_f32_e64 0xaf123456, v2 ; encoding: [0x7e,0x00,0xfe,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]350// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode351 352v_cmpx_class_f32_e64 v1, 0xaf123456353// GFX10: v_cmpx_class_f32_e64 v1, 0xaf123456 ; encoding: [0x7e,0x00,0x98,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x12,0xaf]354// GFX1250: v_cmpx_class_f32_e64 v1, 0xaf123456 ; encoding: [0x7e,0x00,0xfe,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x12,0xaf]355// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode356 357v_cmpx_class_f32_e64 0xaf123456, 0xaf123456358// GFX10: v_cmpx_class_f32_e64 0xaf123456, 0xaf123456 ; encoding: [0x7e,0x00,0x98,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]359// GFX1250: v_cmpx_class_f32_e64 0xaf123456, 0xaf123456 ; encoding: [0x7e,0x00,0xfe,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]360// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode361 362v_cmpx_class_f32_e64 0xaf123456, 0xaf123455363// GFX9-ERR: :[[@LINE-1]]:1: error: operands are not valid for this GPU or mode364// GFX10-ERR: :[[@LINE-2]]:34: error: only one unique literal operand is allowed365// GFX1250-ERR: :[[@LINE-3]]:34: error: only one unique literal operand is allowed366 367v_cmpx_lt_i16_e64 v1, 0x3456368// GFX10: v_cmpx_lt_i16_e64 v1, 0x3456 ; encoding: [0x7e,0x00,0x99,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x00,0x00]369// GFX1250: v_cmpx_lt_i16_e64 v1, 0x3456 ; encoding: [0x7e,0x00,0xb1,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x00,0x00]370// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode371 372v_cmpx_lt_i16_e64 0x3456, v2373// GFX10: v_cmpx_lt_i16_e64 0x3456, v2 ; encoding: [0x7e,0x00,0x99,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x00,0x00]374// GFX1250: v_cmpx_lt_i16_e64 0x3456, v2 ; encoding: [0x7e,0x00,0xb1,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x00,0x00]375// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode376 377v_cmpx_lt_i16_e64 0x3456, 0x3456378// GFX10: v_cmpx_lt_i16_e64 0x3456, 0x3456 ; encoding: [0x7e,0x00,0x99,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x00,0x00]379// GFX1250: v_cmpx_lt_i16_e64 0x3456, 0x3456 ; encoding: [0x7e,0x00,0xb1,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x00,0x00]380// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode381 382v_cmpx_eq_i64_e64 0xaf123456, v[2:3]383// GFX10: v_cmpx_eq_i64_e64 0xaf123456, v[2:3] ; encoding: [0x7e,0x00,0xb2,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]384// GFX1250: v_cmpx_eq_i64_e64 0xaf123456, v[2:3] ; encoding: [0x7e,0x00,0xd2,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]385// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode386 387v_cmpx_eq_i64_e64 v[2:3], 0x3f717273388// GFX10: v_cmpx_eq_i64_e64 v[2:3], 0x3f717273 ; encoding: [0x7e,0x00,0xb2,0xd4,0x02,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]389// GFX1250: v_cmpx_eq_i64_e64 v[2:3], 0x3f717273 ; encoding: [0x7e,0x00,0xd2,0xd4,0x02,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]390// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode391 392v_cmpx_eq_i64_e64 0x3f717273, 0x3f717273393// GFX10: v_cmpx_eq_i64_e64 0x3f717273, 0x3f717273 ; encoding: [0x7e,0x00,0xb2,0xd4,0xff,0xfe,0x01,0x00,0x73,0x72,0x71,0x3f]394// GFX1250: v_cmpx_eq_i64_e64 0x3f717273, 0x3f717273 ; encoding: [0x7e,0x00,0xd2,0xd4,0xff,0xfe,0x01,0x00,0x73,0x72,0x71,0x3f]395// GFX9-ERR: :[[@LINE-3]]:1: error: operands are not valid for this GPU or mode396 397v_lshlrev_b64 v[4:5], 0xaf123456, v[2:3]398// GFX10: v_lshlrev_b64 v[4:5], 0xaf123456, v[2:3] ; encoding: [0x04,0x00,0xff,0xd6,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]399// GFX1250: v_lshlrev_b64_e32 v[4:5], 0xaf123456, v[2:3] ; encoding: [0xff,0x04,0x08,0x3e,0x56,0x34,0x12,0xaf]400// GFX9-ERR: :[[@LINE-3]]:23: error: literal operands are not supported401 402v_lshlrev_b64 v[6:7], v1, 0xbf717273403// GFX10: v_lshlrev_b64 v[6:7], v1, 0xbf717273 ; encoding: [0x06,0x00,0xff,0xd6,0x01,0xff,0x01,0x00,0x73,0x72,0x71,0xbf]404// GFX1250: v_lshlrev_b64_e64 v[6:7], v1, 0xbf717273 ; encoding: [0x06,0x00,0x1f,0xd5,0x01,0xff,0x01,0x00,0x73,0x72,0x71,0xbf]405// GFX9-ERR: :[[@LINE-3]]:27: error: literal operands are not supported406 407v_fma_mix_f32 v5, 0x123, v2, v3408// GFX10: v_fma_mix_f32 v5, 0x123, v2, v3 ; encoding: [0x05,0x00,0x20,0xcc,0xff,0x04,0x0e,0x04,0x23,0x01,0x00,0x00]409// GFX1250: v_fma_mix_f32 v5, 0x123, v2, v3 ; encoding: [0x05,0x00,0x20,0xcc,0xff,0x04,0x0e,0x04,0x23,0x01,0x00,0x00]410// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU411 412v_fma_mix_f32 v5, v1, 0x7b, v3413// GFX10: v_fma_mix_f32 v5, v1, 0x7b, v3 ; encoding: [0x05,0x00,0x20,0xcc,0x01,0xff,0x0d,0x04,0x7b,0x00,0x00,0x00]414// GFX1250: v_fma_mix_f32 v5, v1, 0x7b, v3 ; encoding: [0x05,0x00,0x20,0xcc,0x01,0xff,0x0d,0x04,0x7b,0x00,0x00,0x00]415// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU416 417v_fma_mix_f32 v5, v1, v2, 0x1c8418// GFX10: v_fma_mix_f32 v5, v1, v2, 0x1c8 ; encoding: [0x05,0x00,0x20,0xcc,0x01,0x05,0xfe,0x03,0xc8,0x01,0x00,0x00]419// GFX1250: v_fma_mix_f32 v5, v1, v2, 0x1c8 ; encoding: [0x05,0x00,0x20,0xcc,0x01,0x05,0xfe,0x03,0xc8,0x01,0x00,0x00]420// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU421 422v_fma_mix_f32 v5, 0x1c8a, v2, 0x1c8a423// GFX10: v_fma_mix_f32 v5, 0x1c8a, v2, 0x1c8a ; encoding: [0x05,0x00,0x20,0xcc,0xff,0x04,0xfe,0x03,0x8a,0x1c,0x00,0x00]424// GFX1250: v_fma_mix_f32 v5, 0x1c8a, v2, 0x1c8a ; encoding: [0x05,0x00,0x20,0xcc,0xff,0x04,0xfe,0x03,0x8a,0x1c,0x00,0x00]425// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU426 427v_fma_mix_f32 v5, 0x1c8a, 0x1c8a, 0x1c8a428// GFX10: v_fma_mix_f32 v5, 0x1c8a, 0x1c8a, 0x1c8a ; encoding: [0x05,0x00,0x20,0xcc,0xff,0xfe,0xfd,0x03,0x8a,0x1c,0x00,0x00]429// GFX1250: v_fma_mix_f32 v5, 0x1c8a, 0x1c8a, 0x1c8a ; encoding: [0x05,0x00,0x20,0xcc,0xff,0xfe,0xfd,0x03,0x8a,0x1c,0x00,0x00]430// GFX9-ERR: :[[@LINE-3]]:1: error: instruction not supported on this GPU431 432v_pk_add_f16 v5, 0xaf123456, v2433// GFX10: v_pk_add_f16 v5, 0xaf123456, v2 ; encoding: [0x05,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x56,0x34,0x12,0xaf]434// GFX1250: v_pk_add_f16 v5, 0xaf123456, v2 ; encoding: [0x05,0x40,0x0f,0xcc,0xff,0x04,0x02,0x18,0x56,0x34,0x12,0xaf]435// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported436 437v_pk_add_f16 v5, v1, 0xbf717273438// GFX10: v_pk_add_f16 v5, v1, 0xbf717273 ; encoding: [0x05,0x40,0x0f,0xcc,0x01,0xff,0x01,0x18,0x73,0x72,0x71,0xbf]439// GFX1250: v_pk_add_f16 v5, v1, 0xbf717273 ; encoding: [0x05,0x40,0x0f,0xcc,0x01,0xff,0x01,0x18,0x73,0x72,0x71,0xbf]440// GFX9-ERR: :[[@LINE-3]]:22: error: literal operands are not supported441 442v_pk_add_f16 v5, 0x3f717273, 0x3f717273443// GFX10: v_pk_add_f16 v5, 0x3f717273, 0x3f717273 ; encoding: [0x05,0x40,0x0f,0xcc,0xff,0xfe,0x01,0x18,0x73,0x72,0x71,0x3f]444// GFX1250: v_pk_add_f16 v5, 0x3f717273, 0x3f717273 ; encoding: [0x05,0x40,0x0f,0xcc,0xff,0xfe,0x01,0x18,0x73,0x72,0x71,0x3f]445// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported446 447v_pk_add_i16 v5, 0x7b, v2448// GFX10: v_pk_add_i16 v5, 0x7b, v2 ; encoding: [0x05,0x40,0x02,0xcc,0xff,0x04,0x02,0x18,0x7b,0x00,0x00,0x00]449// GFX1250: v_pk_add_i16 v5, 0x7b, v2 ; encoding: [0x05,0x40,0x02,0xcc,0xff,0x04,0x02,0x18,0x7b,0x00,0x00,0x00]450// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported451 452v_pk_add_i16 v5, v1, 0x7b453// GFX10: v_pk_add_i16 v5, v1, 0x7b ; encoding: [0x05,0x40,0x02,0xcc,0x01,0xff,0x01,0x18,0x7b,0x00,0x00,0x00]454// GFX1250: v_pk_add_i16 v5, v1, 0x7b ; encoding: [0x05,0x40,0x02,0xcc,0x01,0xff,0x01,0x18,0x7b,0x00,0x00,0x00]455// GFX9-ERR: :[[@LINE-3]]:22: error: literal operands are not supported456 457v_pk_add_i16 v5, 0xab7b, 0xab7b458// GFX10: v_pk_add_i16 v5, 0xab7b, 0xab7b ; encoding: [0x05,0x40,0x02,0xcc,0xff,0xfe,0x01,0x18,0x7b,0xab,0x00,0x00]459// GFX1250: v_pk_add_i16 v5, 0xab7b, 0xab7b ; encoding: [0x05,0x40,0x02,0xcc,0xff,0xfe,0x01,0x18,0x7b,0xab,0x00,0x00]460// GFX9-ERR: :[[@LINE-3]]:18: error: literal operands are not supported461 462v_pk_add_i16 v5, 0xab7b, 0xab7a463// GFX9-ERR: :[[@LINE-1]]:18: error: literal operands are not supported464// GFX10-ERR: :[[@LINE-2]]:26: error: only one unique literal operand is allowed465// GFX1250-ERR: :[[@LINE-3]]:26: error: only one unique literal operand is allowed466 467v_div_fmas_f32 v5, v1, 0x123, v3468// GFX10: v_div_fmas_f32 v5, v1, 0x123, v3 ; encoding: [0x05,0x00,0x6f,0xd5,0x01,0xff,0x0d,0x04,0x23,0x01,0x00,0x00]469// GFX1250: v_div_fmas_f32 v5, v1, 0x123, v3 ; encoding: [0x05,0x00,0x37,0xd6,0x01,0xff,0x0d,0x04,0x23,0x01,0x00,0x00]470// GFX9-ERR: :[[@LINE-3]]:24: error: literal operands are not supported471 472v_div_fmas_f32 v5, v1, 0x123, 0x123473// GFX10: v_div_fmas_f32 v5, v1, 0x123, 0x123 ; encoding: [0x05,0x00,0x6f,0xd5,0x01,0xff,0xfd,0x03,0x23,0x01,0x00,0x00]474// GFX1250: v_div_fmas_f32 v5, v1, 0x123, 0x123 ; encoding: [0x05,0x00,0x37,0xd6,0x01,0xff,0xfd,0x03,0x23,0x01,0x00,0x00]475// GFX9-ERR: :[[@LINE-3]]:24: error: literal operands are not supported476 477v_div_fmas_f32 v5, 0x123, 0x123, 0x123478// GFX10: v_div_fmas_f32 v5, 0x123, 0x123, 0x123 ; encoding: [0x05,0x00,0x6f,0xd5,0xff,0xfe,0xfd,0x03,0x23,0x01,0x00,0x00]479// GFX1250: v_div_fmas_f32 v5, 0x123, 0x123, 0x123 ; encoding: [0x05,0x00,0x37,0xd6,0xff,0xfe,0xfd,0x03,0x23,0x01,0x00,0x00]480// GFX9-ERR: :[[@LINE-3]]:20: error: literal operands are not supported481 482v_div_fmas_f64 v[4:5], 0x12345678, v[2:3], v[4:5]483// GFX10: v_div_fmas_f64 v[4:5], 0x12345678, v[2:3], v[4:5] ; encoding: [0x04,0x00,0x70,0xd5,0xff,0x04,0x12,0x04,0x78,0x56,0x34,0x12]484// GFX1250: v_div_fmas_f64 v[4:5], 0x12345678, v[2:3], v[4:5] ; encoding: [0x04,0x00,0x38,0xd6,0xff,0x04,0x12,0x04,0x78,0x56,0x34,0x12]485// GFX9-ERR: :[[@LINE-3]]:24: error: literal operands are not supported486 487v_div_fmas_f64 v[6:7], 0x12345678, 0x12345678, 0x12345678488// GFX10: v_div_fmas_f64 v[6:7], 0x12345678, 0x12345678, 0x12345678 ; encoding: [0x06,0x00,0x70,0xd5,0xff,0xfe,0xfd,0x03,0x78,0x56,0x34,0x12]489// GFX1250: v_div_fmas_f64 v[6:7], 0x12345678, 0x12345678, 0x12345678 ; encoding: [0x06,0x00,0x38,0xd6,0xff,0xfe,0xfd,0x03,0x78,0x56,0x34,0x12]490// GFX9-ERR: :[[@LINE-3]]:24: error: literal operands are not supported491 492v_div_fmas_f64 v[4:5], v[2:3], 0x123457, 0x123456493// GFX9-ERR: :[[@LINE-1]]:32: error: literal operands are not supported494// GFX10-ERR: :[[@LINE-2]]:42: error: only one unique literal operand is allowed495// GFX1250-ERR: :[[@LINE-3]]:42: error: only one unique literal operand is allowed496 497v_ldexp_f64 v[4:5], 0.12345, v2498// GFX10: v_ldexp_f64 v[4:5], 0x3fbf9a6b, v2 ; encoding: [0x04,0x00,0x68,0xd5,0xff,0x04,0x02,0x00,0x6b,0x9a,0xbf,0x3f]499// GFX1250: v_ldexp_f64 v[4:5], 0x3fbf9a6b, v2 ; encoding: [0x04,0x00,0x2b,0xd7,0xff,0x04,0x02,0x00,0x6b,0x9a,0xbf,0x3f]500// GFX9-ERR: :[[@LINE-3]]:21: error: literal operands are not supported501 502v_ldexp_f64 v[6:7], 0.12345, 0x3fbf9a6b503// GFX10: v_ldexp_f64 v[6:7], 0x3fbf9a6b, 0x3fbf9a6b ; encoding: [0x06,0x00,0x68,0xd5,0xff,0xfe,0x01,0x00,0x6b,0x9a,0xbf,0x3f]504// GFX1250: v_ldexp_f64 v[6:7], 0x3fbf9a6b, 0x3fbf9a6b ; encoding: [0x06,0x00,0x2b,0xd7,0xff,0xfe,0x01,0x00,0x6b,0x9a,0xbf,0x3f]505// GFX9-ERR: :[[@LINE-3]]:21: error: literal operands are not supported506 507v_ldexp_f64 v[4:5], 0.12345, 0x3fbf9a6c508// GFX9-ERR: :[[@LINE-1]]:21: error: literal operands are not supported509// GFX10-ERR: :[[@LINE-2]]:30: error: only one unique literal operand is allowed510// GFX1250-ERR: :[[@LINE-3]]:30: error: only one unique literal operand is allowed511