[llvm-bugs] [Bug 25128] New: ISelLowering ignores -fno-builtin-memset

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 9 13:10:03 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25128

            Bug ID: 25128
           Summary: ISelLowering ignores -fno-builtin-memset
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: mcrosier at codeaurora.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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","", at progbits

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151009/a9f9bfca/attachment.html>


More information about the llvm-bugs mailing list