[llvm-bugs] [Bug 31130] New: [inline asm] Memory operand arithmetics support

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 23 01:27:14 PST 2016


            Bug ID: 31130
           Summary: [inline asm] Memory operand arithmetics support
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ziv.izhar at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Memory operand arithmetics are not supported and crashes llvm

int main(){
        __asm   lea     rcx, [rdi * (1<<2) ]
        __asm   lea     rcx, [rdi * (2*2) ]
        return 0;

the part of (1<<2) or (2*2) isn't supported, gcc and icc however are supporting
this kinds of calculations.
it does however works for IMM operands.

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/20161123/498642ee/attachment.html>

More information about the llvm-bugs mailing list