diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-11-26 03:38:02 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-11-26 03:38:02 +0000 |
commit | 4455142a95bb3d0f6e6cbb336d6558919cb59bb8 (patch) | |
tree | fb1bf3eff271b4be5a374ffb3f6a4734075fcd07 /test | |
parent | 7c5025bbee35cc1ad44915414261bba8d652dccd (diff) | |
download | llvm-4455142a95bb3d0f6e6cbb336d6558919cb59bb8.tar.gz llvm-4455142a95bb3d0f6e6cbb336d6558919cb59bb8.tar.bz2 llvm-4455142a95bb3d0f6e6cbb336d6558919cb59bb8.tar.xz |
Fix APFloat::convert so that it handles narrowing conversions correctly; it
was returning incorrect values in rare cases, and incorrectly marking
exact conversions as inexact in some more common cases. Fixes PR11406, and a
missed optimization in test/CodeGen/X86/fp-stack-O0.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/fp-stack-O0.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fp-stack-O0.ll b/test/CodeGen/X86/fp-stack-O0.ll index b9cb5d7894..df90254dbd 100644 --- a/test/CodeGen/X86/fp-stack-O0.ll +++ b/test/CodeGen/X86/fp-stack-O0.ll @@ -10,7 +10,7 @@ declare i32 @x2(x86_fp80, x86_fp80) nounwind ; Pass arguments on the stack. ; CHECK-NEXT: movq %rsp, [[RCX:%r..]] ; Copy constant-pool value. -; CHECK-NEXT: fldt LCPI +; CHECK-NEXT: fldl LCPI ; CHECK-NEXT: fstpt 16([[RCX]]) ; Copy x1 return value. ; CHECK-NEXT: fstpt ([[RCX]]) |