summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorVladimir Medic <Vladimir.Medic@imgtec.com>2013-12-09 11:03:25 +0000
committerVladimir Medic <Vladimir.Medic@imgtec.com>2013-12-09 11:03:25 +0000
commit84744f691666de0e9da311ad668e4d1f93c5efe9 (patch)
treea09c10f284c7682ca9b7d7bae524d820cf43599a /test/MC
parent4062ed87621c6b63aec12559880c7e5429964448 (diff)
downloadllvm-84744f691666de0e9da311ad668e4d1f93c5efe9.tar.gz
llvm-84744f691666de0e9da311ad668e4d1f93c5efe9.tar.bz2
llvm-84744f691666de0e9da311ad668e4d1f93c5efe9.tar.xz
Method parseSetAssignment treats every operand with '$' sign as register and the parsing is directed to set alias for register. This will result in errors reported when expressions containing label references are parsed(for example long jumps)
As we can't make a complete solution now it has been decided to enable .set directive to handle long jump expressions. This will cause parser to report errors when parsing integer based register assignments, for example: .set r3, will be reported as error. Still, the need for expressions is higher priority as the integer based register assignments are Mips specific and can be avoided using register names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/Mips/mips_directives.s8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/MC/Mips/mips_directives.s b/test/MC/Mips/mips_directives.s
index 44e707c894..7e4f937e90 100644
--- a/test/MC/Mips/mips_directives.s
+++ b/test/MC/Mips/mips_directives.s
@@ -33,15 +33,17 @@ $JTI0_0:
# CHECK: jal 1328 # encoding: [0x0c,0x00,0x01,0x4c]
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
.set reorder
+$BB0_4:
b 1332
j 1328
jal 1328
.set at=$a0
.set STORE_MASK,$t7
.set FPU_MASK,$f7
- .set r3,$3
+ .set $tmp7, $BB0_4-$BB0_2
.set f6,$f6
# CHECK: abs.s $f6, $f7 # encoding: [0x46,0x00,0x39,0x85]
-# CHECK: and $3, $15, $15 # encoding: [0x01,0xef,0x18,0x24]
+# CHECK: lui $1, %hi($tmp7) # encoding: [0x3c'A',0x01'A',0x00,0x00]
+# CHECK: # fixup A - offset: 0, value: ($tmp7)@ABS_HI, kind: fixup_Mips_HI16
abs.s f6,FPU_MASK
- and r3,$t7,STORE_MASK
+ lui $1, %hi($tmp7)