2017-12-11 23:23:20 +08:00
|
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX9 %s
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, -17, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, 65, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, 64.0, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, -0.15915494, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, -0.0, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, -32768, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2017-02-28 02:49:11 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, 32767, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2019-03-29 22:50:20 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, 0xffffffffffff000f, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|
2019-03-29 22:50:20 +08:00
|
|
|
|
|
|
|
v_pk_add_f16 v1, 0x1000ffff, v2
|
2019-05-02 12:01:39 +08:00
|
|
|
// GFX9: error: invalid literal operand
|