1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/MC/AMDGPU/literal16-err.s
Dmitry Preobrazhensky 9c1ffe0e18 [AMDGPU][MC] Corrected parser to avoid generation of excessive error messages
Summary of changes:
- Changed parser to eliminate generation of excessive error messages;
- Corrected lit tests to match all expected error messages;
- Corrected lit tests to guard against unwanted extra messages (added option "--implicit-check-not=error:");
- Added missing checks and fixed some typos in tests.

See bug 46907: https://bugs.llvm.org/show_bug.cgi?id=46907

Reviewers: arsenm, rampitec

Differential Revision: https://reviews.llvm.org/D86940
2020-09-02 19:42:18 +03:00

29 lines
826 B
ArmAsm

// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=NOVI --implicit-check-not=error: %s
v_add_f16 v1, 0xfffff, v2
// NOVI: error: invalid operand for instruction
v_add_f16 v1, 0x10000, v2
// NOVI: error: invalid operand for instruction
v_add_f16 v1, 0xffffffffffff000f, v2
// NOVI: error: invalid operand for instruction
v_add_f16 v1, 0x1000ffff, v2
// NOVI: error: invalid operand for instruction
v_add_f16 v1, -32769, v2
// NOVI: error: invalid operand for instruction
v_add_f16 v1, 65536, v2
// NOVI: error: invalid operand for instruction
v_add_f32 v1, 4294967296, v2
// NOVI: error: invalid operand for instruction
v_add_f32 v1, 0x0000000100000000, v2
// NOVI: error: invalid operand for instruction
v_and_b32 v1, 0x0000000100000000, v2
// NOVI: error: invalid operand for instruction