1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1 2*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck %s < %t1 --check-prefix=32-BIT 3*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n32 2>&1 | \ 4*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck %s --check-prefix=64-BIT 5*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -arch=mips64 -mcpu=mips64 -target-abi n64 2>&1 | \ 6*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck %s --check-prefix=64-BIT 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker .text 9*9880d681SAndroid Build Coastguard Worker li $5, 0x100000000 10*9880d681SAndroid Build Coastguard Worker # 32-BIT: :[[@LINE-1]]:3: error: instruction requires a 32-bit immediate 11*9880d681SAndroid Build Coastguard Worker # 64-BIT: :[[@LINE-2]]:3: error: instruction requires a 32-bit immediate 12