1 # RUN: not llvm-mc --triple=loongarch64 %s 2>&1 | FileCheck %s
4 # CHECK: :[[#@LINE-1]]:13: error: immediate must be an integer in the range [0, 16383]
7 # CHECK: :[[#@LINE-1]]:13: error: immediate must be an integer in the range [0, 16383]
10 # CHECK: :[[#@LINE-1]]:13: error: immediate must be an integer in the range [0, 16383]
13 # CHECK: :[[#@LINE-1]]:13: error: immediate must be an integer in the range [0, 16383]
15 gcsrxchg $a0
, $a1
, 16384
16 # CHECK: :[[#@LINE-1]]:20: error: immediate must be an integer in the range [0, 16383]
19 # CHECK: :[[#@LINE-1]]:20: error: immediate must be an integer in the range [0, 16383]
22 # CHECK: :[[#@LINE-1]]:16: error: must not be $r0 or $r1
24 gcsrxchg $a0
, $zero
, 1
25 # CHECK: :[[#@LINE-1]]:16: error: must not be $r0 or $r1
28 # CHECK: :[[#@LINE-1]]:6: error: immediate must be an integer in the range [0, 32767]
31 # CHECK: :[[#@LINE-1]]:6: error: immediate must be an integer in the range [0, 32767]