<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - atomic_signal_fence should not generate a dmb on aarch64"
   href="https://bugs.llvm.org/show_bug.cgi?id=50564">50564</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>atomic_signal_fence should not generate a dmb on aarch64
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>11.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>saagar@saagarjha.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is related to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - atomic_signal_fence generates a dmb instruction on aarch64 and arm"
   href="show_bug.cgi?id=27545">https://bugs.llvm.org/show_bug.cgi?id=27545</a>, which is
fixed–but apparently only for optimized code. Without optimization I'm still
seeing a dmb ish for atomic_signal_fence on aarch64. The standard (7.17.4.2)
specifically mentions that "hardware fence instructions that
atomic_thread_fence would have inserted are not emitted", so this I think this
behavior is somewhat surprising if not incorrect. Here's a Godbolt link with
sample code compiled without optimization demonstrating this bug:
<a href="https://godbolt.org/z/qh55n184G">https://godbolt.org/z/qh55n184G</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>