diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-06 22:59:10 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-06 22:59:10 +0000 |
commit | 2df5eec2ff25cbb7e5fd4848e667fb9f854d3339 (patch) | |
tree | b98d1b559d7f59f2a5a8dca054f290c62233a31b /test/CodeGen/X86/2008-10-06-x87ld-nan-1.ll | |
parent | e93f5db6e5f4cf87c5a6cb9d8f25d9808b9a82d6 (diff) | |
download | external_llvm-2df5eec2ff25cbb7e5fd4848e667fb9f854d3339.zip external_llvm-2df5eec2ff25cbb7e5fd4848e667fb9f854d3339.tar.gz external_llvm-2df5eec2ff25cbb7e5fd4848e667fb9f854d3339.tar.bz2 |
Be more precise about which conversions of NaNs
are Inexact. (These are not Inexact as defined
by IEEE754, but that seems like a reasonable way
to abstract what happens: information is lost.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-10-06-x87ld-nan-1.ll')
-rw-r--r-- | test/CodeGen/X86/2008-10-06-x87ld-nan-1.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-10-06-x87ld-nan-1.ll b/test/CodeGen/X86/2008-10-06-x87ld-nan-1.ll new file mode 100644 index 0000000..837aad5 --- /dev/null +++ b/test/CodeGen/X86/2008-10-06-x87ld-nan-1.ll @@ -0,0 +1,13 @@ +; ModuleID = 'nan.bc' +target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-f80:32:32-v64:64:64-v128:128:128-a0:0:64" +target triple = "i686-apple-darwin8" +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2,-sse3,-sse | grep fldl +; This NaN should be shortened to a double (not a float). + +declare x86_stdcallcc void @_D3nan5printFeZv(x86_fp80 %f) + +define i32 @main() { +entry_nan.main: + call x86_stdcallcc void @_D3nan5printFeZv(x86_fp80 0xK7FFFC001234000000800) + ret i32 0 +} |