1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/CodeGen/WebAssembly/snan_literal.ll
Thomas Lively 81bb5f99ad [WebAssembly] Remove datalayout strings from llc tests
The data layout strings do not have any effect on llc tests and will become
misleadingly out of date as we continue to update the canonical data layout, so
remove them from the tests.

Differential Revision: https://reviews.llvm.org/D105842
2021-07-14 11:17:08 -07:00

28 lines
514 B
LLVM

; RUN: llc < %s --filetype=obj | llvm-objdump -d - | FileCheck %s
target triple = "wasm32-unknown-unknown"
define float @float_sNaN() #0 {
entry:
; CHECK: 00 00 a0 7f
ret float 0x7ff4000000000000
}
define float @float_qNaN() #0 {
entry:
; CHECK: 00 00 e0 7f
ret float 0x7ffc000000000000
}
define double @double_sNaN() #0 {
entry:
; CHECK: 00 00 00 00 00 00 f4 7f
ret double 0x7ff4000000000000
}
define double @double_qNaN() #0 {
entry:
; CHECK: 00 00 00 00 00 00 fc 7f
ret double 0x7ffc000000000000
}