[clang] [llvm] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)
Nemanja Ivanovic via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 11 04:27:19 PST 2024
================
@@ -1,11 +1,16 @@
-// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm < %s| FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm < %s | FileCheck %s \
+// RUN: --check-prefix=CHECK-X86
+// RUN: %clang_cc1 -triple ppc64le-linux-gnu -emit-llvm < %s | FileCheck %s \
+// RUN: --check-prefix=CHECK-PPC
+
+#ifndef __PPC__
----------------
nemanjai wrote:
If you feel strongly about this, I don't mind doing it. However, I did it this way to keep the test in the target-independent directory as these are now target-independent builtins.
https://github.com/llvm/llvm-project/pull/68919
More information about the cfe-commits
mailing list