Files
clang-p2996/llvm/test/MC/AMDGPU/smem-err.s
Dmitry Preobrazhensky ecde200209 [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

56 lines
1.7 KiB
ArmAsm

// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=NOVI --implicit-check-not=error: %s
s_memtime exec
// NOVI: :11: error: invalid operand for instruction
s_memrealtime exec
// NOVI: :15: error: invalid operand for instruction
s_store_dword m0, s[2:3], 0x0
// NOVI: :15: error: invalid operand for instruction
s_store_dword exec_lo, s[2:3], 0x0
// NOVI: :15: error: invalid operand for instruction
s_store_dword exec_hi, s[2:3], 0x0
// NOVI: :15: error: invalid operand for instruction
s_store_dwordx2 exec, s[2:3], 0x0
// NOVI: :17: error: invalid operand for instruction
s_buffer_store_dword m0, s[0:3], 0x0
// NOVI: :22: error: invalid operand for instruction
s_buffer_store_dword exec_lo, s[0:3], 0x0
// NOVI: :22: error: invalid operand for instruction
s_buffer_store_dword exec_hi, s[0:3], 0x0
// NOVI: :22: error: invalid operand for instruction
s_buffer_store_dwordx2 exec, s[0:3], 0x0
// NOVI: :24: error: invalid operand for instruction
s_load_dword m0, s[0:1], s4
// NOVI: :14: error: invalid operand for instruction
s_load_dword exec_lo, s[0:1], s4
// NOVI: :14: error: invalid operand for instruction
s_load_dword exec_hi, s[0:1], s4
// NOVI: :14: error: invalid operand for instruction
s_load_dwordx2 exec, s[0:1], s4
// NOVI: :16: error: invalid operand for instruction
s_buffer_load_dword m0, s[0:3], s4
// NOVI: :21: error: invalid operand for instruction
s_buffer_load_dword exec_lo, s[0:3], s4
// NOVI: :21: error: invalid operand for instruction
s_buffer_load_dword exec_hi, s[0:3], s4
// NOVI: :21: error: invalid operand for instruction
s_buffer_load_dwordx2 exec, s[0:3], s4
// NOVI: :23: error: invalid operand for instruction