================ @@ -0,0 +1,96 @@ +; Testfile that verifies positive case (0 or 1 only) for BCD builtins national2packed, packed2zoned and zoned2packed. +; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64le-unknown-unknown \ +; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s + +; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64-unknown-unknown \ +; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s + +; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc-unknown-unknown \ +; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s + +; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64-ibm-aix-xcoff \ +; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s + +; CHECK-LABEL: tBcd_National2packed_imm0 +; CHECK: bcdcfn. v2, v2, 0 +; CHECK-NEXT: blr + +; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(none) +declare <16 x i8> @llvm.ppc.national2packed(<16 x i8>, i32 immarg) + +; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) +define <16 x i8> @tBcd_National2packed_imm0(<16 x i8> noundef %a) { +entry: + %0 = tail call <16 x i8> @llvm.ppc.national2packed(<16 x i8> %a, i32 0) ---------------- redstar wrote:
Simplify the test by removing `tail`. This has no influence on the test. ```suggestion %0 = call <16 x i8> @llvm.ppc.national2packed(<16 x i8> %a, i32 0) ``` Applies to all calls in this test. https://github.com/llvm/llvm-project/pull/142723 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits