1// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefix=GFX9 --implicit-check-not=error: %s 2// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck -check-prefix=GFX10 --implicit-check-not=error: %s 3 4v_pk_add_f16 v1, -17, v2 5// GFX9: error: literal operands are not supported 6 7v_pk_add_f16 v1, 65, v2 8// GFX9: error: literal operands are not supported 9 10v_pk_add_f16 v1, 64.0, v2 11// GFX9: error: literal operands are not supported 12 13v_pk_add_f16 v1, -0.15915494, v2 14// GFX9: error: literal operands are not supported 15 16v_pk_add_f16 v1, -0.0, v2 17// GFX9: error: literal operands are not supported 18 19v_pk_add_f16 v1, -32768, v2 20// GFX9: error: literal operands are not supported 21 22v_pk_add_f16 v1, 32767, v2 23// GFX9: error: literal operands are not supported 24 25v_pk_add_f16 v1, 0xffffffffffff000f, v2 26// GFX9: error: literal operands are not supported 27 28v_pk_add_f16 v1, 0x1000ffff, v2 29// GFX9: error: literal operands are not supported 30 31v_pk_mad_i16 v5, 0x3c00, 0x4000, 0x4400 32// GFX9: error: literal operands are not supported 33// GFX10: error: only one literal operand is allowed 34 35v_pk_mad_i16 v5, 0x3c00, 0x4000, 2 36// GFX9: error: literal operands are not supported 37// GFX10: error: only one literal operand is allowed 38 39v_pk_mad_i16 v5, 0x3c00, 3, 2 40// GFX9: error: literal operands are not supported 41 42v_pk_mad_i16 v5, 3, 0x3c00, 2 43// GFX9: error: literal operands are not supported 44 45v_pk_mad_i16 v5, 3, 2, 0x3c00 46// GFX9: error: literal operands are not supported 47