19 lines · plain
1# RUN: not llvm-mc --triple=loongarch32 %s 2>&1 | FileCheck %s --check-prefixes=ERR,ERR322# RUN: not llvm-mc --triple=loongarch64 %s 2>&1 | FileCheck %s --check-prefix=ERR3 4## csrxchg: rj != 0,15csrxchg $a0, $zero, 06# ERR: :[[#@LINE-1]]:15: error: must not be $r0 or $r17csrxchg $a0, $ra, 08# ERR: :[[#@LINE-1]]:15: error: must not be $r0 or $r19 10## LoongArch64 mnemonics11iocsrrd.d $a0, $a112# ERR32: :[[#@LINE-1]]:1: error: instruction requires the following: LA64 Basic Integer and Privilege Instruction Set13iocsrwr.d $a0, $a114# ERR32: :[[#@LINE-1]]:1: error: instruction requires the following: LA64 Basic Integer and Privilege Instruction Set15 16## uimm817lddir $a0, $a0, 0x1ff18# CHECK: :[[#@LINE-1]]:17: error: immediate must be an integer in the range [0, 255]19