[flang]: This is to fix the HLFIR path for PPC Vector type intrinsics. (#66547)
commit0b3f9d8561226e3771db7f49dfb43d1301efc3c3
authorDaniel Chen <cdchen@ca.ibm.com>
Tue, 26 Sep 2023 14:36:13 +0000 (26 10:36 -0400)
committerGitHub <noreply@github.com>
Tue, 26 Sep 2023 14:36:13 +0000 (26 10:36 -0400)
tree8658dc66c41d54d26071a9a33690e43db2d2f26c
parent03647e2e4b68056851a4410d2f129ebc28162de9
[flang]: This is to fix the HLFIR path for PPC Vector type intrinsics. (#66547)

PowerPC Vector type intrinsics currently crashes with
`-flang-experimental-hlfir` is specified.

This patch is to fix the HLFIR path for PowerPC Vector type intrinsics.

The patch:
1. Added the `flang-experimental-hlfir` option to all PowerPC vector intrinsic testing.
2. Removed the FIR/MLIR testing to reduce the maintenance cost.
3. Fixed a few verification IR for some non-functional changes in LLVM IR in HLFIR path.
41 files changed:
flang/include/flang/Optimizer/Dialect/FIRType.h
flang/lib/Lower/ConvertCall.cpp
flang/lib/Optimizer/HLFIR/IR/HLFIRDialect.cpp
flang/test/Lower/PowerPC/ppc-intrinsics.f90
flang/test/Lower/PowerPC/ppc-mma-accumulator-move-clear.f90
flang/test/Lower/PowerPC/ppc-mma-assemble-disassemble.f90
flang/test/Lower/PowerPC/ppc-mma-outer-product-1.f90
flang/test/Lower/PowerPC/ppc-mma-outer-product-2.f90
flang/test/Lower/PowerPC/ppc-pwr10-vec-intrinsics.f90
flang/test/Lower/PowerPC/ppc-vec-abs.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-add-and-mul-sub-xor.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-any.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-cmp.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-convert.f90
flang/test/Lower/PowerPC/ppc-vec-cvf-elem-order.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-extract-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-extract.f90
flang/test/Lower/PowerPC/ppc-vec-insert-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-insert.f90
flang/test/Lower/PowerPC/ppc-vec-load-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-load.f90
flang/test/Lower/PowerPC/ppc-vec-max-min-madd-nmsub.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-merge-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-merge.f90
flang/test/Lower/PowerPC/ppc-vec-perm-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-perm.f90
flang/test/Lower/PowerPC/ppc-vec-sel.f90 [new file with mode: 0644]
flang/test/Lower/PowerPC/ppc-vec-shift-be-le.f90
flang/test/Lower/PowerPC/ppc-vec-shift.f90
flang/test/Lower/PowerPC/ppc-vec-splat-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-splat.f90
flang/test/Lower/PowerPC/ppc-vec-store-elem-order.f90
flang/test/Lower/PowerPC/ppc-vec-store.f90
flang/test/Lower/PowerPC/ppc-vec_abs.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vec_add-and-mul-sub-xor.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vec_any.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vec_cmp.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vec_cvf-elem-order.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vec_max-min-madd-nmsub.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vec_sel.f90 [deleted file]
flang/test/Lower/PowerPC/ppc-vector-types.f90