[mips] Add initial support for NaN2008 in the back-end.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Wed, 16 Apr 2014 15:48:55 +0000 (15:48 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Wed, 16 Apr 2014 15:48:55 +0000 (15:48 +0000)
commitc308f165a0e981280a6e35d81282aad533b29684
tree6cf35a988534a9e2187fafb5a81f02954653d402
parent92d2f986649fd7dae4a894d3b023b9affc7ec6b6
[mips] Add initial support for NaN2008 in the back-end.

This is so that EF_MIPS_NAN2008 is set if we are using IEEE 754-2008
NaN encoding (-mnan=2008). This patch also adds support for parsing
'.nan legacy' and '.nan 2008' assembly directives. The handling of
these directives should match GAS' behaviour i.e., the last directive
in use sets the ELF header bit (EF_MIPS_NAN2008).

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206396 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Support/ELF.h
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/Mips.td
lib/Target/Mips/MipsAsmPrinter.cpp
lib/Target/Mips/MipsSubtarget.cpp
lib/Target/Mips/MipsSubtarget.h
lib/Target/Mips/MipsTargetStreamer.h
test/CodeGen/Mips/start-asm-file.ll [new file with mode: 0644]
test/MC/Mips/elf_eflags.s
test/MC/Mips/elf_eflags_nan2008.s [new file with mode: 0644]
test/MC/Mips/elf_eflags_nanlegacy.s [new file with mode: 0644]