[clang] [llvm] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)
Amy Kwan via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 11:32:57 PST 2023
================
@@ -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__
----------------
amy-kwan wrote:
It might be better to have the PPC checks in a separate file from the x86 RUN lines so we don't need to do the `ifndef`/`else`.
https://github.com/llvm/llvm-project/pull/68919
More information about the llvm-commits
mailing list