aboutsummaryrefslogblamecommitdiff
path: root/test/MC/Mips/cpload-bad.s
blob: 7d186f66f72859b9942cadbde9e50c6b9dd00f1a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                            
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
# RUN: FileCheck %s < %t1 -check-prefix=ASM

        .text
        .option pic2
        .set reorder
        .cpload $25
# ASM: :[[@LINE-1]]:9: warning: .cpload in reorder section
        .set noreorder
        .cpload $32
# ASM: :[[@LINE-1]]:17: error: invalid register
        .cpload $foo
# ASM: :[[@LINE-1]]:17: error: expected register containing function address
        .cpload bar
# ASM: :[[@LINE-1]]:17: error: expected register containing function address