[PATCH] D59744: Fix i386 ABI "__m64" type bug

Wei Xiao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 23 21:08:36 PDT 2019


wxiao3 created this revision.
wxiao3 added reviewers: annita.zhang, LuoYuanke, smaslov, craig.topper, hjl.tools.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

According to System V i386 ABI: the "__m64" type paramater and return va
passed by MMX registers. But current implementation treats "__m64" as "i
which results in parameter passing by stack and returning by EDX and EAX

This patch fixes the bug (https://bugs.llvm.org/show_bug.cgi?id=41029).


Repository:
  rC Clang

https://reviews.llvm.org/D59744

Files:
  lib/CodeGen/TargetInfo.cpp
  test/CodeGen/x86_32-arguments-linux.c
  test/CodeGen/x86_32-mmx-linux.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59744.192021.patch
Type: text/x-patch
Size: 6003 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190324/8c5dfd63/attachment.bin>


More information about the cfe-commits mailing list