mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
94b64060af
Summary: Made the following changes: Added calls to emitDirectiveSetNoAt() and emitDirectiveSetAt(). Added special emit function for .set at=$reg, emitDirectiveSetAtWithArg(unsigned RegNo). Improved parsing error checks for .set at. Refactored parser code for .set at. Improved testing of both directives. Improved code readability and comments. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7176 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229097 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
678 B
ArmAsm
30 lines
678 B
ArmAsm
# RUN: not llvm-mc %s -triple=mips-unknown-unknown -mcpu=mips32 2>%t1
|
|
# RUN: FileCheck %s < %t1
|
|
|
|
.set at~
|
|
# CHECK: error: unexpected token, expected equals sign
|
|
|
|
.set at=
|
|
# CHECK: error: no register specified
|
|
|
|
.set at=~
|
|
# CHECK: error: unexpected token, expected dollar sign '$'
|
|
|
|
.set at=$
|
|
# CHECK: error: unexpected token, expected identifier or integer
|
|
|
|
.set at=$-4
|
|
# CHECK: error: unexpected token, expected identifier or integer
|
|
|
|
.set at=$1000
|
|
# CHECK: error: invalid register
|
|
|
|
.set at=$foo
|
|
# CHECK: error: invalid register
|
|
|
|
.set at=$2bar
|
|
# CHECK: error: unexpected token, expected end of statement
|
|
|
|
.set noat bar
|
|
# CHECK: error: unexpected token, expected end of statement
|