summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2014-04-16 15:48:55 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2014-04-16 15:48:55 +0000
commitc308f165a0e981280a6e35d81282aad533b29684 (patch)
tree6cf35a988534a9e2187fafb5a81f02954653d402 /include
parent92d2f986649fd7dae4a894d3b023b9affc7ec6b6 (diff)
downloadllvm-c308f165a0e981280a6e35d81282aad533b29684.tar.gz
llvm-c308f165a0e981280a6e35d81282aad533b29684.tar.bz2
llvm-c308f165a0e981280a6e35d81282aad533b29684.tar.xz
[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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/ELF.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index 7b10ebd23f..9448a820bf 100644
--- a/include/llvm/Support/ELF.h
+++ b/include/llvm/Support/ELF.h
@@ -807,6 +807,7 @@ enum : unsigned {
EF_MIPS_CPIC = 0x00000004, // Call object with Position independent code
EF_MIPS_ABI2 = 0x00000020,
EF_MIPS_32BITMODE = 0x00000100,
+ EF_MIPS_NAN2008 = 0x00000400, // Uses IEE 754-2008 NaN encoding
EF_MIPS_ABI_O32 = 0x00001000, // This file follows the first MIPS 32 bit ABI
//ARCH_ASE