mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
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
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
|