From: Matheus Almeida Date: Mon, 10 Mar 2014 13:21:10 +0000 (+0000) Subject: [mips] Assembly parser must invoke the target streamer to handle .set reorder macro. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ffb6f6ed2a6818bbadb2692f62b77bd7960bcde9;p=oota-llvm.git [mips] Assembly parser must invoke the target streamer to handle .set reorder macro. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203459 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index d010a97ca50..8912243af09 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -2331,6 +2331,7 @@ bool MipsAsmParser::parseSetReorderDirective() { return false; } Options.setReorder(); + getTargetStreamer().emitDirectiveSetReorder(); Parser.Lex(); // Consume the EndOfStatement. return false; } diff --git a/test/MC/Mips/mips_directives.s b/test/MC/Mips/mips_directives.s index 074e59f5f41..1656c103b2b 100644 --- a/test/MC/Mips/mips_directives.s +++ b/test/MC/Mips/mips_directives.s @@ -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]