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-2.ll | |
parent | e93f5db6e5f4cf87c5a6cb9d8f25d9808b9a82d6 (diff) | |
download | llvm-2df5eec2ff25cbb7e5fd4848e667fb9f854d3339.tar.gz llvm-2df5eec2ff25cbb7e5fd4848e667fb9f854d3339.tar.bz2 llvm-2df5eec2ff25cbb7e5fd4848e667fb9f854d3339.tar.xz |
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-2.ll')
-rw-r--r-- | test/CodeGen/X86/2008-10-06-x87ld-nan-2.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-10-06-x87ld-nan-2.ll b/test/CodeGen/X86/2008-10-06-x87ld-nan-2.ll new file mode 100644 index 0000000000..d2e9b45751 --- /dev/null +++ b/test/CodeGen/X86/2008-10-06-x87ld-nan-2.ll @@ -0,0 +1,18 @@ +; 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 fldt | count 3 +; it is not safe to shorten any of these NaNs. + +declare x86_stdcallcc void @_D3nan5printFeZv(x86_fp80 %f) + +@_D3nan4rvale = global x86_fp80 0xK7FFF8001234000000000 ; <x86_fp80*> [#uses=1] + +define i32 @main() { +entry_nan.main: + %tmp = load x86_fp80* @_D3nan4rvale ; <x86_fp80> [#uses=1] + call x86_stdcallcc void @_D3nan5printFeZv(x86_fp80 %tmp) + call x86_stdcallcc void @_D3nan5printFeZv(x86_fp80 0xK7FFF8001234000000000) + call x86_stdcallcc void @_D3nan5printFeZv(x86_fp80 0xK7FFFC001234000000400) + ret i32 0 +} |