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
4 # Check that the assembler can handle the documented syntax
5 # for ".set at" and set the correct value. The correct value for $at is always
6 # $1 when written by the user.
9 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
10 # WARNINGS: :[[@LINE+2]]:12: warning: Used $at without ".set noat"
14 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
15 # WARNINGS: :[[@LINE+2]]:12: warning: Used $at without ".set noat"
18 # WARNINGS-NOT: warning: Used $at without ".set noat"
20 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
23 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
26 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
29 # CHECK: jr $1 # encoding: [0x08,0x00,0x20,0x00]
33 # CHECK: jr $16 # encoding: [0x08,0x00,0x00,0x02]
34 # WARNINGS: :[[@LINE+2]]:12: warning: Used $16 with ".set at=$16"
38 # CHECK: jr $16 # encoding: [0x08,0x00,0x00,0x02]
39 # WARNINGS: :[[@LINE+2]]:12: warning: Used $16 with ".set at=$16"
42 # WARNINGS-NOT: warning