[PATCH] D101188: [PowerPC] Prevent argument promotion of types with size greater than 128 bits

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 29 06:40:29 PDT 2021


nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.

In the previous revision I suggested the following test case:

  #include <stdio.h>
  typedef int __attribute__((vector_size(64))) v8si;
  static void __attribute__((noinline)) printWideVec(v8si *ptr) {
    v8si WideVec = *ptr;
    printf("Vector: { ");
    for (int i = 0; i < 7; i++)
      printf("%d, ", WideVec[i]);
    printf("%d }\n", WideVec[7]);
  }
  
  void test(vector signed int a, vector signed int b) {
    v8si WideVec = (v8si) { a[0], a[1], a[2], a[3], b[0], b[1], b[2], b[3] };
    printWideVec(&WideVec);
  }

Can you please add it to this new test case to show that argument promotion is still happening for that case?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101188/new/

https://reviews.llvm.org/D101188



More information about the llvm-commits mailing list