Home | History | Annotate | Download | only in AMDGPU
      1 // RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck %s
      2 // RUN: not llvm-mc -arch=amdgcn -mcpu=SI %s 2>&1 | FileCheck %s
      3 
      4 // offset too big
      5 // CHECK: invalid operand for instruction
      6 ds_add_u32 v2, v4 offset:1000000000
      7 
      8 // offset0 twice
      9 // CHECK:  error: not a valid operand.
     10 ds_write2_b32 v2, v4, v6 offset0:4 offset0:8
     11 
     12 // offset1 twice
     13 // CHECK:  error: not a valid operand.
     14 ds_write2_b32 v2, v4, v6 offset1:4 offset1:8
     15 
     16 // offset0 too big
     17 // CHECK: invalid operand for instruction
     18 ds_write2_b32 v2, v4, v6 offset0:1000000000
     19 
     20 // offset1 too big
     21 // CHECK: invalid operand for instruction
     22 ds_write2_b32 v2, v4, v6 offset1:1000000000
     23 
     24