[llvm-bugs] [Bug 36021] New: [feature request] nop intrinsic

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 19 14:07:30 PST 2018


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

            Bug ID: 36021
           Summary: [feature request] nop intrinsic
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jgorbe at google.com
                CC: llvm-bugs at lists.llvm.org

I need to align a function to a 16-byte boundary which is NOT 32-byte aligned.
That is, something like:

void my_function() __attribute__((aligned(32))) {
  asm("[16-byte nop]");

  ... my_function code goes here...
}

It would be nice to have a __builtin_nop(n) intrinsic that generated n-byte
nops.

-- 
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/20180119/8a9d1d54/attachment-0001.html>


More information about the llvm-bugs mailing list