summaryrefslogtreecommitdiff
path: root/test/MC/Mips
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2013-03-21 21:44:16 +0000
committerJack Carter <jack.carter@imgtec.com>2013-03-21 21:44:16 +0000
commitc91b5e197bb41ccb2f9f78b6176e61c848df9e15 (patch)
tree24c78089aaa4fe82c41a362412e19f53e049a57a /test/MC/Mips
parent7ee74a663a3b4d4ee6b55d23362f347ed1d390c2 (diff)
downloadllvm-c91b5e197bb41ccb2f9f78b6176e61c848df9e15.tar.gz
llvm-c91b5e197bb41ccb2f9f78b6176e61c848df9e15.tar.bz2
llvm-c91b5e197bb41ccb2f9f78b6176e61c848df9e15.tar.xz
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')
-rw-r--r--test/MC/Mips/mips_directives.s6
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