[llvm-objdump] - Remove one overload of reportError. NFCI.
[llvm-complete.git] / test / MC / Mips / cprestore-bad.s
blobcfd62a4ed988bb4152fcf94a027ecfb1e995bfb6
1 # RUN: not llvm-mc %s -arch=mips -mcpu=mips32 2>%t1
2 # RUN: FileCheck %s < %t1
4 .text
5 .set noreorder
6 .cpload $25
8 .set mips16
9 .cprestore 8
10 # CHECK: :[[@LINE-1]]:14: error: .cprestore is not supported in Mips16 mode
11 .set nomips16
13 .cprestore
14 # CHECK: :[[@LINE-1]]:13: error: expected stack offset value
16 .cprestore foo
17 # CHECK: :[[@LINE-1]]:17: error: stack offset is not an absolute expression
19 .cprestore -8
20 # CHECK: :[[@LINE-1]]:3: warning: .cprestore with negative stack offset has no effect
22 .cprestore 8, 35, bar
23 # CHECK: :[[@LINE-1]]:15: error: unexpected token, expected end of statement