HomePhabricator

[X86] Passing union type through register

Authored by LiuChen3 on Oct 8 2020, 8:20 PM.

Description

[X86] Passing union type through register

For example:

union M256 {
  double d;
  __m256 m;
};
extern void foo1(union M256 A);
union M256 m1;
void test() {
  foo1(m1);
}

clang will pass m1 through stack which does not follow the ABI.

Differential Revision: https://reviews.llvm.org/D78699

Details

Committed
LiuChen3Oct 8 2020, 8:24 PM
Differential Revision
D78699: [X86] Passing union type through register.
Parents
rGc1489ee5a773: [llvm-dwarfdump][test] Rewrite verify_die_ranges.s in YAML. NFC.
Branches
Unknown
Tags
Unknown