1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/AMDGPU/sopc-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

35 lines
1.0 KiB
ArmAsm

// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=VI --implicit-check-not=error: %s
s_set_gpr_idx_on s0, s1
// VI: error: expected absolute expression
s_set_gpr_idx_on s0, 16
// VI: error: invalid immediate: only 4-bit values are legal
s_set_gpr_idx_on s0, -1
// VI: error: invalid immediate: only 4-bit values are legal
s_set_gpr_idx_on s0, gpr_idx
// VI: error: expected absolute expression
s_set_gpr_idx_on s0, gpr_idx(
// VI: error: expected a VGPR index mode or a closing parenthesis
s_set_gpr_idx_on s0, gpr_idx(X)
// VI: error: expected a VGPR index mode
s_set_gpr_idx_on s0, gpr_idx(SRC0,DST,SRC1,DST)
// VI: error: duplicate VGPR index mode
s_set_gpr_idx_on s0, gpr_idx(DST
// VI: error: expected a comma or a closing parenthesis
s_set_gpr_idx_on s0, gpr_idx(SRC0,
// VI: error: expected a VGPR index mode
s_cmp_eq_i32 0x12345678, 0x12345679
// GCN: error: only one literal operand is allowed
s_cmp_eq_u64 0x12345678, 0x12345679
// GCN: error: only one literal operand is allowed