1 # RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 \
2 # RUN: 2>%t1 | FileCheck %s
3 # RUN: FileCheck -check-prefix=WARNINGS %s < %t1
5 # Check that the assembler can handle the documented syntax for ".set at" and
6 # will set the correct value for $at.
7 # Note that writing $at is always the same as writing $1.
11 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
12 # WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"
16 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
17 # WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"
21 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
22 # WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"
26 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
27 # WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"
31 # WARNINGS-NOT: warning: used $at (currently ${{[0-9]+}}) without ".set noat"
32 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
35 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
38 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
41 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
45 # CHECK: jr $16 # encoding: [0x08,0x00,0x00,0x02]
46 # WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $16) without ".set noat"
50 # CHECK: jr $16 # encoding: [0x08,0x00,0x00,0x02]
51 # WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $16) without ".set noat"