1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[AMDGPU] Assembler: fix row_bcast parsing

Summary: This change fix bug 28538

Reviewers: tstellarAMD, vpykhtin

Subscribers: arsenm, kzhuravl

Differential Revision: https://reviews.llvm.org/D22355

llvm-svn: 275422
This commit is contained in:
Sam Kolton 2016-07-14 14:50:35 +00:00
parent ab8cedf91d
commit b241673741
2 changed files with 14 additions and 0 deletions

View File

@ -2554,6 +2554,8 @@ AMDGPUAsmParser::parseDPPCtrl(OperandVector &Operands) {
Int = 0x142;
} else if (Int == 31) {
Int = 0x143;
} else {
return MatchOperand_ParseFail;
}
} else {
return MatchOperand_ParseFail;

View File

@ -0,0 +1,12 @@
// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck %s --check-prefix=NOCIVI --check-prefix=NOVI
// RUN: not llvm-mc -arch=amdgcn -show-encoding %s 2>&1 | FileCheck %s --check-prefix=NOSI --check-prefix=NOSICI
// RUN: not llvm-mc -arch=amdgcn -mcpu=SI -show-encoding %s 2>&1 | FileCheck %s --check-prefix=NOSI --check-prefix=NOSICI
// RUN: not llvm-mc -arch=amdgcn -mcpu=bonaire -show-encoding %s 2>&1 | FileCheck %s --check-prefix=NOSICI
// NOSICI: error:
// NOVI: error: failed parsing operand
v_mov_b32 v0, v0 row_bcast:0
// NOSICI: error:
// NOVI: error: failed parsing operand
v_mov_b32 v0, v0 row_bcast:13