mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-06 03:38:24 +00:00
fe27c10512
Summary: Change process of parsing of optional operands. All optional operands use same parsing method - parseOptionalOperand(). No default values are added to OperandsVector. Get rid of WORKAROUND_USE_DUMMY_OPERANDS_INSTEAD_MUTIPLE_DEFAULT_OPERANDS. Reviewers: tstellarAMD, vpykhtin, artem.tamazov, nhaustov Subscribers: arsenm, kzhuravl Differential Revision: http://reviews.llvm.org/D20527 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270556 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
664 B
ArmAsm
24 lines
664 B
ArmAsm
// RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck %s
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=SI %s 2>&1 | FileCheck %s
|
|
|
|
// offset too big
|
|
// CHECK: error: invalid operand for instruction
|
|
ds_add_u32 v2, v4 offset:1000000000
|
|
|
|
// offset0 twice
|
|
// CHECK: error: invalid operand for instruction
|
|
ds_write2_b32 v2, v4, v6 offset0:4 offset0:8
|
|
|
|
// offset1 twice
|
|
// CHECK: error: invalid operand for instruction
|
|
ds_write2_b32 v2, v4, v6 offset1:4 offset1:8
|
|
|
|
// offset0 too big
|
|
// CHECK: invalid operand for instruction
|
|
ds_write2_b32 v2, v4, v6 offset0:1000000000
|
|
|
|
// offset1 too big
|
|
// CHECK: invalid operand for instruction
|
|
ds_write2_b32 v2, v4, v6 offset1:1000000000
|
|
|