1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/MC/Mips/elf_eflags_nan2008.s
Matheus Almeida 5607900620 [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

llvm-svn: 206396
2014-04-16 15:48:55 +00:00

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