1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -arch=mips -mcpu=mips32 2>%t1 2*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck %s < %t1 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker .text 5*9880d681SAndroid Build Coastguard Worker .set noreorder 6*9880d681SAndroid Build Coastguard Worker .cpload $25 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker .set mips16 9*9880d681SAndroid Build Coastguard Worker .cprestore 8 10*9880d681SAndroid Build Coastguard Worker# CHECK: :[[@LINE-1]]:14: error: .cprestore is not supported in Mips16 mode 11*9880d681SAndroid Build Coastguard Worker .set nomips16 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker .cprestore 14*9880d681SAndroid Build Coastguard Worker# CHECK: :[[@LINE-1]]:13: error: expected stack offset value 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker .cprestore foo 17*9880d681SAndroid Build Coastguard Worker# CHECK: :[[@LINE-1]]:17: error: stack offset is not an absolute expression 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker .cprestore -8 20*9880d681SAndroid Build Coastguard Worker# CHECK: :[[@LINE-1]]:3: warning: .cprestore with negative stack offset has no effect 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker .cprestore 8, 35, bar 23*9880d681SAndroid Build Coastguard Worker# CHECK: :[[@LINE-1]]:15: error: unexpected token, expected end of statement 24