OSDN Git Service

[mips][ias] Prevent double-filling of delay slots by generating '.set noreorder'...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 18 Apr 2016 12:35:36 +0000 (12:35 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 18 Apr 2016 12:35:36 +0000 (12:35 +0000)
commit92515596579b27e7d2bbf5f7c005f4ea7c9fc63e
tree3c51e05199e782882034f2b0aa99cb9bbb88ca02
parente87a43ef0312854da1dcfa0f8e6fd5497bcebaa3
[mips][ias] Prevent double-filling of delay slots by generating '.set noreorder' regions.

Summary:
When clang is given -save-temps or -via-file-asm, any inline assembly in
the source is parsed twice. Once by the compiler, and again by the
assembler. We must take care to ensure that this doesn't lead to
double-filling delay slots.

Reviewers: sdardis, vkalintiris

Subscribers: dsanders, sdardis, llvm-commits

Differential Revision: http://reviews.llvm.org/D19166

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