<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 --- - ISelLowering ignores -fno-builtin-memset"
   href="https://llvm.org/bugs/show_bug.cgi?id=25128">25128</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ISelLowering ignores -fno-builtin-memset
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mcrosier@codeaurora.org
          </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>more memset.c 
void *test_memset(void *s) {
  return memset(s, 0, 16);
}

tranquillien{3286}> clang-aarch64-x -S -o - -fno-builtin -w -O3 memset.c
test_memset:                            // @test_memset
// BB#0:                                // %entry
        stp     x29, x30, [sp, #-16]!
        mov      x29, sp
        mov      w1, wzr
        orr     w2, wzr, #0x10
        bl      memset
        sxtw    x0, w0
        ldp     x29, x30, [sp], #16
        ret


tranquillien{3287}> clang-aarch64-x -S -o - -fno-builtin-memset -w -O3 memset.c
test_memset:                            // @test_memset
// BB#0:                                // %entry
        stp             xzr, xzr, [x0]
        ret


        .ident  "clang version 3.8.0 (trunk 249722) (llvm/trunk 249724)"
        .section        ".note.GNU-stack","",@progbits</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>