[mips] Assembly parser must invoke the target streamer to handle .set reorder macro.

llvm-svn: 203459
This commit is contained in:
Matheus Almeida 2014-03-10 13:21:10 +00:00
parent 2f522988cc
commit 4fff721d3a
2 changed files with 2 additions and 0 deletions

View File

@ -2331,6 +2331,7 @@ bool MipsAsmParser::parseSetReorderDirective() {
return false;
}
Options.setReorder();
getTargetStreamer().emitDirectiveSetReorder();
Parser.Lex(); // Consume the EndOfStatement.
return false;
}

View File

@ -28,6 +28,7 @@ $JTI0_0:
# CHECK: .4byte 2013265916
.set at=$12
.set macro
# CHECK: .set reorder
# CHECK: b 1332 # encoding: [0x10,0x00,0x01,0x4d]
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
# CHECK: j 1328 # encoding: [0x08,0x00,0x01,0x4c]