[llvm-bugs] [Bug 33310] New: The value of sizeof/offset/alignof of altivec is not correct when aligned attribute appears

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 5 01:33:36 PDT 2017


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

            Bug ID: 33310
           Summary: The value of sizeof/offset/alignof of altivec is not
                    correct when aligned attribute appears
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: westion717 at gmail.com
                CC: llvm-bugs at lists.llvm.org

int main(){
    vector int a __attribute((aligned(32)));
    vector int b __attribute((aligned(8)));
    __builtin_printf("%ld,%ld\n",__alignof__(a),__alignof__(b));
}


clang++ a.C;./a.out
32,8

g++ a.C;./a.out
32,16

-- 
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/20170605/b5c3e3de/attachment.html>


More information about the llvm-bugs mailing list