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