mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
5607900620
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 llvm-svn: 206396
13 lines
413 B
ArmAsm
13 lines
413 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux -mcpu=mips32 %s -o - | \
|
|
# RUN: llvm-readobj -h | \
|
|
# RUN: FileCheck %s -check-prefix=CHECK-OBJ
|
|
# RUN: llvm-mc -triple mipsel-unknown-linux -mcpu=mips32 %s -o -| \
|
|
# RUN: FileCheck %s -check-prefix=CHECK-ASM
|
|
|
|
# This *MUST* match the output of gas compiled with the same triple.
|
|
# CHECK-OBJ: Flags [ (0x50001400)
|
|
|
|
# CHECK-ASM: .nan 2008
|
|
|
|
.nan 2008
|