[all-commits] [llvm/llvm-project] fa42f0: [PowerPC][FP128] Fix the incorrect calling convent...

QingShan Zhang via All-commits all-commits at lists.llvm.org
Tue Nov 24 17:44:08 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fa42f08b2643d0a2e53fde8949e7f88b6d965bb8
      https://github.com/llvm/llvm-project/commit/fa42f08b2643d0a2e53fde8949e7f88b6d965bb8
  Author: QingShan Zhang <qshanz at cn.ibm.com>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCCallingConv.td
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCInstrAltivec.td
    M llvm/test/CodeGen/PowerPC/f128-arith.ll

  Log Message:
  -----------
  [PowerPC][FP128] Fix the incorrect calling convention for IEEE long double on Power8

For now, we are using the GPR to pass the arguments/return value for fp128 on Power8,
which is incorrect. It should be VSR. The reason why we do it this way is that,
we are setting the fp128 as illegal which make LLVM try to emulate it with i128 on
Power8. So, we need to correct it as legal.

Reviewed By: Nemanjai

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




More information about the All-commits mailing list