1 # RUN: not llvm-mc %s -triple=mips-unknown-linux 2>%t0 | FileCheck %s
2 # RUN: FileCheck -check-prefix=ERROR %s < %t0
3 # Check that using the assembler temporary when .set noat is in effect is an error.
5 # We start with the assembler temporary enabled
8 # CHECK: addu $1, $1, $2
17 lw $
2, 65536($
2) # ERROR: mips-noat.s:[[@LINE]]:9: error: pseudo-instruction requires $at, which is not available
20 # Can we switch it back on successfully?
23 # CHECK: addu $1, $1, $2
33 lw $
2, 65536($
2) # ERROR: mips-noat.s:[[@LINE]]:9: error: pseudo-instruction requires $at, which is not available