Skip to content

Conversation

@lei137
Copy link
Contributor

@lei137 lei137 commented Jul 21, 2025

Combining since these are testing the same err message with only difference being the target cpu.

@llvmbot llvmbot added clang Clang issues not falling into any other category backend:PowerPC labels Jul 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 21, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-backend-powerpc

Author: Lei Huang (lei137)

Changes

Combining since these are testing the same err message with only difference being the target cpu.


Full diff: https://github.com/llvm/llvm-project/pull/149875.diff

2 Files Affected:

  • (removed) clang/test/CodeGen/PowerPC/ppc-dmf-future-builtin-err.c (-15)
  • (modified) clang/test/CodeGen/PowerPC/ppc-dmf-mma-builtin-err.c (+2)
diff --git a/clang/test/CodeGen/PowerPC/ppc-dmf-future-builtin-err.c b/clang/test/CodeGen/PowerPC/ppc-dmf-future-builtin-err.c
deleted file mode 100644
index 9def39f5fa479..0000000000000
--- a/clang/test/CodeGen/PowerPC/ppc-dmf-future-builtin-err.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
-// RUN:   %s -emit-llvm-only 2>&1 | FileCheck %s
-
-__attribute__((target("no-mma")))
-void test_mma(unsigned char *vdmrp, unsigned char *vpp, vector unsigned char vc) {
-  __dmr1024 vdmr = *((__dmr1024 *)vdmrp);
-  __vector_pair vp = *((__vector_pair *)vpp);
-  __builtin_mma_dmsetdmrz(&vdmr);
-  __builtin_mma_dmmr(&vdmr, (__dmr1024*)vpp);
-  __builtin_mma_dmxor(&vdmr, (__dmr1024*)vpp);
-
-// CHECK: error: '__builtin_mma_dmsetdmrz' needs target feature mma,isa-future-instructions
-// CHECK: error: '__builtin_mma_dmmr' needs target feature mma,isa-future-instructions
-// CHECK: error: '__builtin_mma_dmxor' needs target feature mma,isa-future-instructions
-}
diff --git a/clang/test/CodeGen/PowerPC/ppc-dmf-mma-builtin-err.c b/clang/test/CodeGen/PowerPC/ppc-dmf-mma-builtin-err.c
index c02274696244a..5a92d6e982511 100644
--- a/clang/test/CodeGen/PowerPC/ppc-dmf-mma-builtin-err.c
+++ b/clang/test/CodeGen/PowerPC/ppc-dmf-mma-builtin-err.c
@@ -1,3 +1,5 @@
+// RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
+// RUN:   %s -emit-llvm-only 2>&1 | FileCheck %s
 // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu future \
 // RUN:   %s -emit-llvm-only 2>&1 | FileCheck %s
 

@lei137 lei137 merged commit 53f4abc into llvm:main Jul 21, 2025
10 of 12 checks passed
@lei137 lei137 self-assigned this Jul 21, 2025
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
Combining since these are testing the same err message with only
difference being the target cpu.
@lei137 lei137 deleted the combineFeatureCkforDMF branch September 5, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:PowerPC clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants