Index: llvm/trunk/lib/Target/X86/X86.td =================================================================== --- llvm/trunk/lib/Target/X86/X86.td +++ llvm/trunk/lib/Target/X86/X86.td @@ -283,6 +283,9 @@ 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, Index: llvm/trunk/test/CodeGen/X86/lakemont.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/lakemont.ll +++ llvm/trunk/test/CodeGen/X86/lakemont.ll @@ -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 +}