[llvm] [clang] [PowerPC][X86] Make cpu id builtins target independent and lower for PPC (PR #68919)

Amy Kwan via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 11:31:56 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__
----------------
amy-kwan wrote:

Ok sure, fair enough. Thanks for elaborating, Nemanja.

https://github.com/llvm/llvm-project/pull/68919


More information about the cfe-commits mailing list