[llvm] r265128 - [X86] Introduce Lakemont CPU.
Andrey Turetskiy via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 03:16:15 PDT 2016
Author: aturetsk
Date: Fri Apr 1 05:16:15 2016
New Revision: 265128
URL: http://llvm.org/viewvc/llvm-project?rev=265128&view=rev
Log:
[X86] Introduce Lakemont CPU.
Add a new Intel MCU CPU Lakemont, which doesn't support X87.
Differential Revision: http://reviews.llvm.org/D18650
Added:
llvm/trunk/test/CodeGen/X86/lakemont.ll
Modified:
llvm/trunk/lib/Target/X86/X86.td
Modified: llvm/trunk/lib/Target/X86/X86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86.td?rev=265128&r1=265127&r2=265128&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86.td (original)
+++ llvm/trunk/lib/Target/X86/X86.td Fri Apr 1 05:16:15 2016
@@ -283,6 +283,9 @@ def : Proc<"pentium4", [FeatureX8
def : Proc<"pentium4m", [FeatureX87, FeatureSlowUAMem16, FeatureMMX,
FeatureSSE2, FeatureFXSR, FeatureSlowBTMem]>;
+// Intel Quark.
+def : Proc<"lakemont", []>;
+
// Intel Core Duo.
def : ProcessorModel<"yonah", SandyBridgeModel,
[FeatureX87, FeatureSlowUAMem16, FeatureMMX, FeatureSSE3,
Added: llvm/trunk/test/CodeGen/X86/lakemont.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/lakemont.ll?rev=265128&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/lakemont.ll (added)
+++ llvm/trunk/test/CodeGen/X86/lakemont.ll Fri Apr 1 05:16:15 2016
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=x86 -mcpu=lakemont | FileCheck %s
+
+; Make sure -mcpu=lakemont implies soft floats.
+define float @test(float %a, float %b) nounwind readnone {
+; CHECK-LABEL: test:
+; CHECK: __addsf3
+ %add = fadd float %a, %b
+ ret float %add
+}
More information about the llvm-commits
mailing list