34 lines · plain
1# RUN: not llvm-mc %s -triple=mips-unknown-linux 2>%t0 | FileCheck %s2# RUN: FileCheck -check-prefix=ERROR %s < %t03# Check that using the assembler temporary when .set noat is in effect is an error.4 5# We start with the assembler temporary enabled6# CHECK-LABEL: test1:7# CHECK: lui $1, 18# CHECK: addu $1, $1, $29# CHECK: lw $2, 0($1)10# CHECK-LABEL: test2:11# CHECK: .set noat12test1:13 lw $2, 65536($2)14 15test2:16 .set noat17 lw $2, 65536($2) # ERROR: mips-noat.s:[[@LINE]]:9: error: pseudo-instruction requires $at, which is not available18 19 20# Can we switch it back on successfully?21# CHECK-LABEL: test3:22# CHECK: lui $1, 123# CHECK: addu $1, $1, $224# CHECK: lw $2, 0($1)25# CHECK-LABEL: test4:26# CHECK: .set at=$027test3:28 .set at29 lw $2, 65536($2)30 31test4:32 .set at=$033 lw $2, 65536($2) # ERROR: mips-noat.s:[[@LINE]]:9: error: pseudo-instruction requires $at, which is not available34