<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - 'register read -a' provides wrong values of FPU x87 Special Purpose Registers for x86_64-FreeBSD platform"
   href="https://llvm.org/bugs/show_bug.cgi?id=25050">25050</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'register read -a' provides wrong values of FPU x87 Special Purpose Registers for x86_64-FreeBSD platform
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>abhiinnitald@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15002" name="attach_15002" title="Source file (compiled to produce the failure)">attachment 15002</a> <a href="attachment.cgi?id=15002&action=edit" title="Source file (compiled to produce the failure)">[details]</a></span>
Source file (compiled to produce the failure)

Environment: FreeBSD 10.2-RELEASE on x86_64, Compiler: clang-3.7.0
LLDB : Built from source (Checked out from public repo; revision 248711)

Commands to compile inferior:
  clang++ -g -O0 -std=c++11 -fno-builtin -m64 source.cpp -o a.out



Commands executed to pose the bug:

$ lldb a.out
(lldb) b 7
(lldb) run
(lldb) register read -a
(lldb) next

  'next' instruction executes some assembly instructions to push float values
on 'st' stack

(lldb) register read -a



Value of fstat and ftag didn't change compared to their values in previous
register read -a command.

This bug is similar to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - register read --all provides wrong values of FPU flags for x86_64 Linux platform"
   href="show_bug.cgi?id=24457">bug 24457</a> but for FreeBSD platform.
I am working on it and submit a patch soon.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>