forked from OSchip/llvm-project
parent
ccb70caa13
commit
e10c1125df
|
@ -2379,13 +2379,11 @@ bool MipsAsmParser::parseDirectiveGpWord() {
|
|||
// method to evaluate the expression.
|
||||
if (getParser().parseExpression(Value))
|
||||
return true;
|
||||
|
||||
getParser().getStreamer().EmitGPRel32Value(Value);
|
||||
Parser.Lex(); // Eat last token.
|
||||
|
||||
if (getLexer().is(AsmToken::EndOfStatement))
|
||||
if (getLexer().isNot(AsmToken::EndOfStatement))
|
||||
return Error(getLexer().getLoc(), "unexpected token in directive");
|
||||
|
||||
Parser.Lex(); // Eat EndOfStatement token.
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,10 +19,11 @@ $BB0_2:
|
|||
.set noat
|
||||
$JTI0_0:
|
||||
.gpword ($BB0_2)
|
||||
|
||||
.word 0x77fffffc
|
||||
# CHECK: $JTI0_0:
|
||||
# CHECK: .gpword ($BB0_2)
|
||||
# CHECK-NEXT: .4byte 2013265916
|
||||
# CHECK: .4byte 2013265916
|
||||
.set at=$12
|
||||
.set macro
|
||||
# CHECK: b 1332 # encoding: [0x10,0x00,0x01,0x4d]
|
||||
|
|
Loading…
Reference in New Issue