49 lines · plain
1# RUN: not llvm-mc %s -triple=mips -mcpu=mips32r2 2>%t12# RUN: FileCheck %s < %t1 --check-prefix=32-BIT3# RUN: not llvm-mc %s -triple=mips64 -mcpu=mips64 -target-abi n32 2>&1 | \4# RUN: FileCheck %s --check-prefix=64-BIT5# RUN: not llvm-mc %s -triple=mips64 -mcpu=mips64 -target-abi n64 2>&1 | \6# RUN: FileCheck %s --check-prefix=64-BIT7 8 .text9 dli $5, 110 # 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 64-bit architecture11 bne $2, 0x100010001, 133212 # 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate13 beq $2, 0x100010001, 133214 # 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate15 .set mips32r616 ulh $5, 017 # 32-BIT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r618 # 64-BIT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r619 ulhu $5, 020 # 32-BIT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r621 # 64-BIT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r622 .set mips3223 ulh $5, 124 # 32-BIT-NOT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r625 # 64-BIT-NOT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r626 ulhu $5, 127 # 32-BIT-NOT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r628 # 64-BIT-NOT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r629 .set mips64r630 ulh $5, 231 # 32-BIT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r632 # 64-BIT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r633 ulhu $5, 234 # 32-BIT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r635 # 64-BIT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r636 37 .set mips32r638 ulw $5, 039 # 32-BIT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r640 # 64-BIT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r641 .set mips3242 ulw $5, 143 # 32-BIT-NOT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r644 # 64-BIT-NOT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r645 .set mips64r646 ulw $5, 247 # 32-BIT: :[[@LINE-1]]:3: error: instruction not supported on mips32r6 or mips64r648 # 64-BIT: :[[@LINE-2]]:3: error: instruction not supported on mips32r6 or mips64r649