]> granicus.if.org Git - llvm/commit
[Mips] Instruction `sc` now accepts symbol as an argument
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 7 Aug 2019 12:21:26 +0000 (12:21 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 7 Aug 2019 12:21:26 +0000 (12:21 +0000)
commitde0cf9041ae9ced931db86e2dec756e2294a888c
tree407941d89db5f3ab06b8b28bb27438113f2c5a60
parent02e4b162370e8b748f3fe1e65b3fc97fce3ebda5
[Mips] Instruction `sc` now accepts symbol as an argument

Function MipsAsmParser::expandMemInst() did not properly handle
instruction `sc` with a symbol as an argument because first argument
would be counted twice. We add additional checks and handle this case
separately.

Patch by Mirko Brkusanin.

Differential Revision: https://reviews.llvm.org/D64252

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsTargetStreamer.h
test/MC/Mips/sym-sc.s [new file with mode: 0644]