diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-03-25 13:01:06 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-03-25 13:01:06 +0000 |
commit | 3527e5fcb374ae48128a96935387490908a06b97 (patch) | |
tree | 7d96e9555ec75f165b4b240a9356dbfab3a4e2dd /test/MC/Mips/mips-noat.s | |
parent | 3ec862b7aed2e529bdd8ef8c060834136e598f06 (diff) |
[mips] '.set at=$0' should be equivalent to '.set noat'
Differential Revision: http://llvm-reviews.chandlerc.com/D3171
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips-noat.s')
-rw-r--r-- | test/MC/Mips/mips-noat.s | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/MC/Mips/mips-noat.s b/test/MC/Mips/mips-noat.s index 152a1ee4067..b83c5178077 100644 --- a/test/MC/Mips/mips-noat.s +++ b/test/MC/Mips/mips-noat.s @@ -1,7 +1,8 @@ # RUN: not llvm-mc %s -triple=mips-unknown-linux 2>%t0 | FileCheck %s # RUN: FileCheck -check-prefix=ERROR %s < %t0 +# Check that using the assembler temporary when .set noat is in effect is an error. -# We start with $at enabled +# We start with the assembler temporary enabled # CHECK-LABEL: test1: # CHECK: lui $1, 1 # CHECK: addu $1, $1, $2 @@ -9,10 +10,8 @@ test1: lw $2, 65536($2) -# Check that using $at when .set noat is in effect is an error. # FIXME: It would be better if the error pointed at the mnemonic instead of the newline -# ERROR: mips-noat.s:[[@LINE+5]]:1: error: Pseudo instruction requires $at, which is not available -# ERROR-NOT: error +# ERROR: mips-noat.s:[[@LINE+4]]:1: error: Pseudo instruction requires $at, which is not available test2: .set noat lw $2, 65536($2) @@ -25,3 +24,11 @@ test2: test3: .set at lw $2, 65536($2) + +# FIXME: It would be better if the error pointed at the mnemonic instead of the newline +# ERROR: mips-noat.s:[[@LINE+4]]:1: error: Pseudo instruction requires $at, which is not available +test4: + .set at=$0 + lw $2, 65536($2) + +# ERROR-NOT: error |