mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
c308f165a0
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
16 lines
492 B
ArmAsm
16 lines
492 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 [ (0x50001000)
|
|
|
|
# CHECK-ASM: .nan 2008
|
|
# CHECK-ASM: .nan legacy
|
|
|
|
.nan 2008
|
|
// Let's override the previous directive!
|
|
.nan legacy
|