[clang] [compiler-rt] [llvm] [X86] Add initial support for Razor Lake (PR #248979)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 4 08:56:29 PST 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-x86
Author: Tomasz DoĊbniak (tomdol)
<details>
<summary>Changes</summary>
Adding support for Razor Lake according to the Intel Architecture Instruction Set Extensions Programming Reference rev. 63 https://cdrdv2.intel.com/v1/dl/getContent/671368
Razor Lake has the same ISA and tuning as Nova Lake. It gets its own CPU name and ProcModel, but shares Nova Lake's `__builtin_cpu_is` subtype value and cpu_dispatch mangling, matching libgcc.
---
Full diff: https://github.com/llvm/llvm-project/pull/248979.diff
19 Files Affected:
- (modified) clang/docs/ReleaseNotes.md (+1)
- (modified) clang/lib/Basic/Targets/X86.cpp (+2)
- (modified) clang/test/CIR/CodeGen/builtin-cpu-is-subtype.c (+12)
- (modified) clang/test/CIR/CodeGen/target-builtin-noerror.c (+1)
- (modified) clang/test/CodeGen/attr-target-mv.c (+7)
- (modified) clang/test/CodeGen/builtin-cpu-is-subtype.c (+5)
- (modified) clang/test/CodeGen/target-builtin-noerror.c (+1)
- (modified) clang/test/Driver/x86-march.c (+4)
- (modified) clang/test/Misc/target-invalid-cpu-note/x86.c (+4)
- (modified) clang/test/Preprocessor/predefined-arch-macros.c (+6)
- (modified) clang/test/Sema/attr-cpuspecific-cpus.c (+1)
- (modified) compiler-rt/lib/builtins/cpu_model/x86.c (+10)
- (modified) llvm/docs/ReleaseNotes.md (+1)
- (modified) llvm/include/llvm/TargetParser/X86TargetParser.def (+1)
- (modified) llvm/include/llvm/TargetParser/X86TargetParser.h (+1)
- (modified) llvm/lib/Target/X86/X86.td (+4-3)
- (modified) llvm/lib/TargetParser/Host.cpp (+10)
- (modified) llvm/lib/TargetParser/X86TargetParser.cpp (+2)
- (modified) llvm/test/CodeGen/X86/cpus-intel.ll (+2)
``````````diff
diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md
index cd7764af59db13..46ed3810a05a55 100644
--- a/clang/docs/ReleaseNotes.md
+++ b/clang/docs/ReleaseNotes.md
@@ -1556,6 +1556,7 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and
matching GCC, or when the `soft-float` target feature is set. `-msoft-float`
does not set that feature on x86 and still gives 2. `-ffp-eval-method=source`
no longer warns in these configurations. (#GH198405)
+- `-march=razorlake` is now supported.
#### Arm and AArch64 Support
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 27ff0e36f22c55..ebc1ea07f0fdcf 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -648,6 +648,7 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
case CK_Pantherlake:
case CK_Wildcatlake:
case CK_Novalake:
+ case CK_Razorlake:
case CK_Sierraforest:
case CK_Grandridge:
case CK_Graniterapids:
@@ -1661,6 +1662,7 @@ std::optional<unsigned> X86TargetInfo::getCPUCacheLineSize() const {
case CK_Pantherlake:
case CK_Wildcatlake:
case CK_Novalake:
+ case CK_Razorlake:
case CK_Sierraforest:
case CK_Grandridge:
case CK_Graniterapids:
diff --git a/clang/test/CIR/CodeGen/builtin-cpu-is-subtype.c b/clang/test/CIR/CodeGen/builtin-cpu-is-subtype.c
index 886bda7838d279..2c1aa44f841b3f 100644
--- a/clang/test/CIR/CodeGen/builtin-cpu-is-subtype.c
+++ b/clang/test/CIR/CodeGen/builtin-cpu-is-subtype.c
@@ -594,3 +594,15 @@ TEST_CPU_IS(lunarlake, "lunarlake")
// LLVM: [[LOAD:%[^ ]+]] = load i32, ptr getelementptr inbounds nuw (i8, ptr @__cpu_model, i64 8)
// LLVM: = icmp eq i32 [[LOAD]], 34
TEST_CPU_IS(wildcatlake, "wildcatlake")
+
+// CIR-LABEL: cir.func{{.*}} @test_razorlake(
+// CIR: %[[GET_MODEL:.*]] = cir.get_global @__cpu_model : !cir.ptr<![[MODEL_TY]]>
+// CIR: %[[GET_ST_PTR:.*]] = cir.get_member %[[GET_MODEL]][2] {name = "__cpu_subtype"} : !cir.ptr<![[MODEL_TY]]> -> !cir.ptr<!u32i>
+// CIR: %[[ST:.*]] = cir.load {{.*}}%[[GET_ST_PTR]] : !cir.ptr<!u32i>, !u32i
+// CIR: %[[MASK:.*]] = cir.const #cir.int<39> : !u32i
+// CIR: cir.cmp eq %[[ST]], %[[MASK]] : !u32i
+
+// LLVM-LABEL: define{{.*}} void @test_razorlake(
+// LLVM: [[LOAD:%[^ ]+]] = load i32, ptr getelementptr inbounds nuw (i8, ptr @__cpu_model, i64 8)
+// LLVM: = icmp eq i32 [[LOAD]], 39
+TEST_CPU_IS(razorlake, "razorlake")
diff --git a/clang/test/CIR/CodeGen/target-builtin-noerror.c b/clang/test/CIR/CodeGen/target-builtin-noerror.c
index 30161947a99eed..9209be6a13ae46 100644
--- a/clang/test/CIR/CodeGen/target-builtin-noerror.c
+++ b/clang/test/CIR/CodeGen/target-builtin-noerror.c
@@ -212,4 +212,5 @@ void verifycpustrings(void) {
(void)__builtin_cpu_is("c86-4g-m6");
(void)__builtin_cpu_is("c86-4g-m7");
(void)__builtin_cpu_is("c86-4g-m8");
+ (void)__builtin_cpu_is("razorlake");
}
diff --git a/clang/test/CodeGen/attr-target-mv.c b/clang/test/CodeGen/attr-target-mv.c
index 807093e51a7d0d..17cf5030d1e42c 100644
--- a/clang/test/CodeGen/attr-target-mv.c
+++ b/clang/test/CodeGen/attr-target-mv.c
@@ -48,6 +48,7 @@ int __attribute__((target("arch=skylake"))) foo(void) {return 42;}
int __attribute__((target("arch=skylake-avx512"))) foo(void) {return 43;}
int __attribute__((target("arch=cannonlake"))) foo(void) {return 44;}
int __attribute__((target("arch=cascadelake"))) foo(void) {return 45;}
+int __attribute__((target("arch=razorlake"))) foo(void) {return 47;}
int __attribute__((target("default"))) foo(void) { return 2; }
int bar(void) {
@@ -257,6 +258,8 @@ void calls_pr50025c(void) { pr50025c(); }
// ITANIUM: ret i32 44
// ITANIUM: define{{.*}} i32 @foo.arch_cascadelake()
// ITANIUM: ret i32 45
+// ITANIUM: define{{.*}} i32 @foo.arch_razorlake()
+// ITANIUM: ret i32 47
// ITANIUM: define{{.*}} i32 @foo()
// ITANIUM: ret i32 2
// ITANIUM: define{{.*}} i32 @bar()
@@ -352,6 +355,8 @@ void calls_pr50025c(void) { pr50025c(); }
// WINDOWS: ret i32 44
// WINDOWS: define dso_local i32 @foo.arch_cascadelake()
// WINDOWS: ret i32 45
+// WINDOWS: define dso_local i32 @foo.arch_razorlake()
+// WINDOWS: ret i32 47
// WINDOWS: define dso_local i32 @foo()
// WINDOWS: ret i32 2
// WINDOWS: define dso_local i32 @bar()
@@ -388,6 +393,7 @@ void calls_pr50025c(void) { pr50025c(); }
// ITANIUM: ret ptr @foo.arch_haswell
// ITANIUM: ret ptr @foo.arch_broadwell
// ITANIUM: ret ptr @foo.arch_skylake
+// ITANIUM: ret ptr @foo.arch_razorlake
// ITANIUM: ret ptr @foo.arch_sandybridge
// ITANIUM: ret ptr @foo.arch_ivybridge
// ITANIUM: ret ptr @foo.arch_westmere
@@ -438,6 +444,7 @@ void calls_pr50025c(void) { pr50025c(); }
// WINDOWS: call i32 @foo.arch_haswell
// WINDOWS: call i32 @foo.arch_broadwell
// WINDOWS: call i32 @foo.arch_skylake
+// WINDOWS: call i32 @foo.arch_razorlake
// WINDOWS: call i32 @foo.arch_sandybridge
// WINDOWS: call i32 @foo.arch_ivybridge
// WINDOWS: call i32 @foo.arch_westmere
diff --git a/clang/test/CodeGen/builtin-cpu-is-subtype.c b/clang/test/CodeGen/builtin-cpu-is-subtype.c
index fbda36db8e67e8..96616022c9371a 100644
--- a/clang/test/CodeGen/builtin-cpu-is-subtype.c
+++ b/clang/test/CodeGen/builtin-cpu-is-subtype.c
@@ -254,3 +254,8 @@ TEST_CPU_IS(lunarlake, "lunarlake")
// CHECK: [[LOAD:%[^ ]+]] = load i32, ptr getelementptr inbounds nuw (i8, ptr @__cpu_model, i64 8)
// CHECK: = icmp eq i32 [[LOAD]], 34
TEST_CPU_IS(wildcatlake, "wildcatlake")
+
+// CHECK-LABEL: define{{.*}} void @test_razorlake(
+// CHECK: [[LOAD:%[^ ]+]] = load i32, ptr getelementptr inbounds nuw (i8, ptr @__cpu_model, i64 8)
+// CHECK: = icmp eq i32 [[LOAD]], 39
+TEST_CPU_IS(razorlake, "razorlake")
diff --git a/clang/test/CodeGen/target-builtin-noerror.c b/clang/test/CodeGen/target-builtin-noerror.c
index 5de3c2bcfc183c..7c9c0a22fe6126 100644
--- a/clang/test/CodeGen/target-builtin-noerror.c
+++ b/clang/test/CodeGen/target-builtin-noerror.c
@@ -213,4 +213,5 @@ void verifycpustrings(void) {
(void)__builtin_cpu_is("c86-4g-m6");
(void)__builtin_cpu_is("c86-4g-m7");
(void)__builtin_cpu_is("c86-4g-m8");
+ (void)__builtin_cpu_is("razorlake");
}
diff --git a/clang/test/Driver/x86-march.c b/clang/test/Driver/x86-march.c
index 09a371e6a5e9cf..aa228ecdbe9fb8 100644
--- a/clang/test/Driver/x86-march.c
+++ b/clang/test/Driver/x86-march.c
@@ -124,6 +124,10 @@
// RUN: | FileCheck %s -check-prefix=novalake
// novalake: "-target-cpu" "novalake"
//
+// RUN: %clang --target=x86_64 -c -### %s -march=razorlake 2>&1 \
+// RUN: | FileCheck %s -check-prefix=razorlake
+// razorlake: "-target-cpu" "razorlake"
+//
// RUN: %clang --target=x86_64 -c -### %s -march=clearwaterforest 2>&1 \
// RUN: | FileCheck %s -check-prefix=clearwaterforest
// clearwaterforest: "-target-cpu" "clearwaterforest"
diff --git a/clang/test/Misc/target-invalid-cpu-note/x86.c b/clang/test/Misc/target-invalid-cpu-note/x86.c
index e2f833bccb7fb9..5a2ad6c8c2709c 100644
--- a/clang/test/Misc/target-invalid-cpu-note/x86.c
+++ b/clang/test/Misc/target-invalid-cpu-note/x86.c
@@ -65,6 +65,7 @@
// X86-SAME: {{^}}, pantherlake
// X86-SAME: {{^}}, wildcatlake
// X86-SAME: {{^}}, novalake
+// X86-SAME: {{^}}, razorlake
// X86-SAME: {{^}}, sierraforest
// X86-SAME: {{^}}, grandridge
// X86-SAME: {{^}}, graniterapids
@@ -159,6 +160,7 @@
// X86_64-SAME: {{^}}, pantherlake
// X86_64-SAME: {{^}}, wildcatlake
// X86_64-SAME: {{^}}, novalake
+// X86_64-SAME: {{^}}, razorlake
// X86_64-SAME: {{^}}, sierraforest
// X86_64-SAME: {{^}}, grandridge
// X86_64-SAME: {{^}}, graniterapids
@@ -263,6 +265,7 @@
// TUNE_X86-SAME: {{^}}, pantherlake
// TUNE_X86-SAME: {{^}}, wildcatlake
// TUNE_X86-SAME: {{^}}, novalake
+// TUNE_X86-SAME: {{^}}, razorlake
// TUNE_X86-SAME: {{^}}, sierraforest
// TUNE_X86-SAME: {{^}}, grandridge
// TUNE_X86-SAME: {{^}}, graniterapids
@@ -374,6 +377,7 @@
// TUNE_X86_64-SAME: {{^}}, pantherlake
// TUNE_X86_64-SAME: {{^}}, wildcatlake
// TUNE_X86_64-SAME: {{^}}, novalake
+// TUNE_X86_64-SAME: {{^}}, razorlake
// TUNE_X86_64-SAME: {{^}}, sierraforest
// TUNE_X86_64-SAME: {{^}}, grandridge
// TUNE_X86_64-SAME: {{^}}, graniterapids
diff --git a/clang/test/Preprocessor/predefined-arch-macros.c b/clang/test/Preprocessor/predefined-arch-macros.c
index 0447802fbd24c2..cff93b3d2a610f 100644
--- a/clang/test/Preprocessor/predefined-arch-macros.c
+++ b/clang/test/Preprocessor/predefined-arch-macros.c
@@ -2535,6 +2535,9 @@
// RUN: %clang -march=novalake -m32 -E -dM %s -o - 2>&1 \
// RUN: -target i386-unknown-linux \
// RUN: | FileCheck -match-full-lines %s -check-prefixes=CHECK_ARL_M32,CHECK_ARLS_M32,CHECK_CWF_M32,CHECK_NVL_M32,CHECK_NKL_M32
+// RUN: %clang -march=razorlake -m32 -E -dM %s -o - 2>&1 \
+// RUN: -target i386-unknown-linux \
+// RUN: | FileCheck -match-full-lines %s -check-prefixes=CHECK_ARL_M32,CHECK_ARLS_M32,CHECK_CWF_M32,CHECK_NVL_M32,CHECK_NKL_M32
// CHECK_ARL_M32: #define __ADX__ 1
// CHECK_ARL_M32: #define __AES__ 1
// CHECK_NVL_M32: #define __APX_F__ 1
@@ -2673,6 +2676,9 @@
// RUN: %clang -march=novalake -m64 -E -dM %s -o - 2>&1 \
// RUN: -target i386-unknown-linux \
// RUN: | FileCheck -match-full-lines %s -check-prefixes=CHECK_ARL_M64,CHECK_ARLS_M64,CHECK_CWF_M64,CHECK_NVL_M64,CHECK_NKL_M64
+// RUN: %clang -march=razorlake -m64 -E -dM %s -o - 2>&1 \
+// RUN: -target i386-unknown-linux \
+// RUN: | FileCheck -match-full-lines %s -check-prefixes=CHECK_ARL_M64,CHECK_ARLS_M64,CHECK_CWF_M64,CHECK_NVL_M64,CHECK_NKL_M64
// CHECK_ARL_M64: #define __ADX__ 1
// CHECK_ARL_M64: #define __AES__ 1
// CHECK_NVL_M64: #define __APX_F__ 1
diff --git a/clang/test/Sema/attr-cpuspecific-cpus.c b/clang/test/Sema/attr-cpuspecific-cpus.c
index 2360d861b91ae9..022b551e2fd33c 100644
--- a/clang/test/Sema/attr-cpuspecific-cpus.c
+++ b/clang/test/Sema/attr-cpuspecific-cpus.c
@@ -44,6 +44,7 @@ ATTR(cpu_specific(tigerlake)) void CPU(void){}
ATTR(cpu_specific(alderlake)) void CPU(void){}
ATTR(cpu_specific(sapphirerapids)) void CPU(void){}
ATTR(cpu_specific(diamondrapids)) void CPU(void){}
+ATTR(cpu_specific(razorlake)) void CPU(void){}
// ALIAS CPUs
ATTR(cpu_specific(pentium_iii_no_xmm_regs)) void CPU0(void){}
diff --git a/compiler-rt/lib/builtins/cpu_model/x86.c b/compiler-rt/lib/builtins/cpu_model/x86.c
index 57251d8d98cb71..9fba124933ef0a 100644
--- a/compiler-rt/lib/builtins/cpu_model/x86.c
+++ b/compiler-rt/lib/builtins/cpu_model/x86.c
@@ -680,6 +680,16 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
Type = INTEL_COREI7;
Subtype = INTEL_COREI7_NOVALAKE;
break;
+ // Razorlake desktop:
+ case 0x6:
+ case 0xa:
+ // Razorlake mobile:
+ case 0x7:
+ case 0x9:
+ CPU = "razorlake";
+ Type = INTEL_COREI7;
+ Subtype = INTEL_COREI7_NOVALAKE;
+ break;
default: // Unknown family 0x12 CPU.
break;
}
diff --git a/llvm/docs/ReleaseNotes.md b/llvm/docs/ReleaseNotes.md
index cfcad0c474f426..6764d52820a08f 100644
--- a/llvm/docs/ReleaseNotes.md
+++ b/llvm/docs/ReleaseNotes.md
@@ -472,6 +472,7 @@ Makes programs 10x faster by doing Special New Thing.
and the memory operations access only memory through their pointer
argument. Before, each one could read and write any memory, so loads of
loop-invariant values weren't hoisted out of loops of tile operations.
+* `-mcpu=razorlake` is now supported.
* Non-temporal stores (`!nontemporal` metadata) now have the same
memory-ordering semantics as normal stores, as is required by the LLVM IR
diff --git a/llvm/include/llvm/TargetParser/X86TargetParser.def b/llvm/include/llvm/TargetParser/X86TargetParser.def
index a1e8e444f45460..42862a43dc7b7b 100644
--- a/llvm/include/llvm/TargetParser/X86TargetParser.def
+++ b/llvm/include/llvm/TargetParser/X86TargetParser.def
@@ -118,6 +118,7 @@ X86_CPU_SUBTYPE(INTEL_COREI7_METEORLAKE, "meteorlake", 25)
X86_CPU_SUBTYPE(INTEL_COREI7_GRACEMONT, "gracemont", 25)
X86_CPU_SUBTYPE(INTEL_COREI7_LUNARLAKE, "lunarlake", 33)
X86_CPU_SUBTYPE(INTEL_COREI7_WILDCATLAKE, "wildcatlake", 34)
+X86_CPU_SUBTYPE(INTEL_COREI7_RAZORLAKE, "razorlake", 39)
#undef X86_CPU_SUBTYPE
diff --git a/llvm/include/llvm/TargetParser/X86TargetParser.h b/llvm/include/llvm/TargetParser/X86TargetParser.h
index 4552287507fd3c..2edc2ce77dbb44 100644
--- a/llvm/include/llvm/TargetParser/X86TargetParser.h
+++ b/llvm/include/llvm/TargetParser/X86TargetParser.h
@@ -103,6 +103,7 @@ enum CPUKind {
CK_Pantherlake,
CK_Wildcatlake,
CK_Novalake,
+ CK_Razorlake,
CK_Sierraforest,
CK_Grandridge,
CK_Graniterapids,
diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td
index 1eebc9ed022b20..54e9f654f113e4 100644
--- a/llvm/lib/Target/X86/X86.td
+++ b/llvm/lib/Target/X86/X86.td
@@ -2160,9 +2160,10 @@ foreach P = ["pantherlake", "wildcatlake"] in {
def : ProcModel<P, AlderlakePModel, ProcessorFeatures.PTLFeatures,
ProcessorFeatures.ADLTuning>;
}
-def : ProcModel<"novalake", AlderlakePModel, ProcessorFeatures.NVLFeatures,
- ProcessorFeatures.NVLTuning>;
-
+foreach P = ["novalake", "razorlake"] in {
+ def : ProcModel<P, AlderlakePModel, ProcessorFeatures.NVLFeatures,
+ ProcessorFeatures.NVLTuning>;
+}
def : ProcModel<"clearwaterforest", AlderlakePModel,
ProcessorFeatures.CWFFeatures, ProcessorFeatures.ADLTuning>;
def : ProcModel<"emeraldrapids", SapphireRapidsModel,
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index d6df84ef4a33e3..c2c9924818ca09 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -1182,6 +1182,16 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
*Type = X86::INTEL_COREI7;
*Subtype = X86::INTEL_COREI7_NOVALAKE;
break;
+ // Razorlake desktop:
+ case 0x6:
+ case 0xa:
+ // Razorlake mobile:
+ case 0x7:
+ case 0x9:
+ CPU = "razorlake";
+ *Type = X86::INTEL_COREI7;
+ *Subtype = X86::INTEL_COREI7_NOVALAKE;
+ break;
default: // Unknown family 0x12 CPU.
break;
}
diff --git a/llvm/lib/TargetParser/X86TargetParser.cpp b/llvm/lib/TargetParser/X86TargetParser.cpp
index 6a48fcf07fe0ff..45f660fc62a2f2 100644
--- a/llvm/lib/TargetParser/X86TargetParser.cpp
+++ b/llvm/lib/TargetParser/X86TargetParser.cpp
@@ -401,6 +401,8 @@ constexpr EnumStringDef<ProcInfo> ProcessorDefs[] = {
{ {"wildcatlake"}, {CK_Lunarlake, FEATURE_AVX2, FeaturesPantherlake, 'p', false} },
// Novalake microarchitecture based processors.
{ {"novalake"}, {CK_Novalake, FEATURE_AVX2, FeaturesNovalake, 'r', false} },
+ // Razorlake microarchitecture based processors.
+ { {"razorlake"}, {CK_Razorlake, FEATURE_AVX2, FeaturesNovalake, 'r', false} },
// Sierraforest microarchitecture based processors.
{ {"sierraforest"}, {CK_Sierraforest, FEATURE_AVX2, FeaturesSierraforest, 'p', false} },
// Grandridge microarchitecture based processors.
diff --git a/llvm/test/CodeGen/X86/cpus-intel.ll b/llvm/test/CodeGen/X86/cpus-intel.ll
index 646629d49ec843..59eea1d607622d 100644
--- a/llvm/test/CodeGen/X86/cpus-intel.ll
+++ b/llvm/test/CodeGen/X86/cpus-intel.ll
@@ -40,6 +40,7 @@
; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=pantherlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=wildcatlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=novalake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
+; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=razorlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=clearwaterforest 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=i686-unknown-unknown -mcpu=diamondrapids 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
@@ -108,6 +109,7 @@
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=pantherlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=wildcatlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=novalake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
+; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=razorlake 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=clearwaterforest 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
; RUN: llc < %s -o /dev/null -mtriple=x86_64-unknown-unknown -mcpu=diamondrapids 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ERROR --allow-empty
``````````
</details>
https://github.com/llvm/llvm-project/pull/248979
More information about the cfe-commits
mailing list