diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-03-21 21:44:16 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-03-21 21:44:16 +0000 |
commit | c91b5e197bb41ccb2f9f78b6176e61c848df9e15 (patch) | |
tree | 24c78089aaa4fe82c41a362412e19f53e049a57a /test/MC/Mips/mips_directives.s | |
parent | 7ee74a663a3b4d4ee6b55d23362f347ed1d390c2 (diff) |
This patch enables the Mips .set directive to define aliases
The .set directive in the Mips the assembler can be
used to set the value of a symbol to an expression.
This changes the symbol's value and type to conform
to the expression's.
Syntax: .set symbol, expression
This patch implements the parsing of the above syntax
and enables the parser to use defined symbols when
parsing operands.
Contributor: Vladimir Medic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips_directives.s')
-rw-r--r-- | test/MC/Mips/mips_directives.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/Mips/mips_directives.s b/test/MC/Mips/mips_directives.s index 65d584dfa8..df7e645633 100644 --- a/test/MC/Mips/mips_directives.s +++ b/test/MC/Mips/mips_directives.s @@ -17,3 +17,9 @@ $JTI0_0: .set macro .set reorder .set at=$a0 + .set STORE_MASK,$t7 + .set FPU_MASK,$f7 +#CHECK: abs.s $f6, $f7 # encoding: [0x46,0x00,0x39,0x85] +#CHECK: and $3, $15, $15 # encoding: [0x01,0xef,0x18,0x24] + abs.s $f6,FPU_MASK + and $3,$t7,STORE_MASK |