[llvm-commits] [llvm] r91672 - in /llvm/trunk: lib/Target/X86/X86.td lib/Target/X86/X86InstrInfo.cpp lib/Target/X86/X86InstrInfo.td lib/Target/X86/X86InstrSSE.td lib/Target/X86/X86Subtarget.cpp lib/Target/X86/X86Subtarget.h test/CodeGen/X86/break

Eli Friedman eli.friedman at gmail.com
Fri Dec 18 00:07:41 PST 2009


On Thu, Dec 17, 2009 at 11:40 PM, Evan Cheng <evan.cheng at apple.com> wrote:
> --- llvm/trunk/test/CodeGen/X86/break-sse-dep.ll (added)
> +++ llvm/trunk/test/CodeGen/X86/break-sse-dep.ll Fri Dec 18 01:40:29 2009
> @@ -0,0 +1,28 @@
> +; RUN: llc < %s -march=x86-64 -mattr=+sse2,+break-sse-dep | FileCheck %s --check-prefix=YES
> +; RUN: llc < %s -march=x86-64 -mattr=+sse2,-break-sse-dep | FileCheck %s --check-prefix=NO
> +
> +define double @t1(float* nocapture %x) nounwind readonly ssp {
> +entry:
> +; YES: t1:
> +; YES: movss (%rdi), %xmm0
> +; YES; cvtss2sd %xmm0, %xmm0
> +
> +; NO: t1:
> +; NO; cvtss2sd (%rdi), %xmm0
> +  %0 = load float* %x, align 4
> +  %1 = fpext float %0 to double
> +  ret double %1
> +}
> +
> +define float @t2(double* nocapture %x) nounwind readonly ssp {
> +entry:
> +; YES: t2:
> +; YES: movsd (%rdi), %xmm0
> +; YES; cvtsd2ss %xmm0, %xmm0
> +
> +; NO: t2:
> +; NO; cvtsd2ss (%rdi), %xmm0
> +  %0 = load double* %x, align 8
> +  %1 = fptrunc double %0 to float
> +  ret float %1
> +}
>

There are some semi-colons where there should be colons.  (It'd be
nice if FileCheck gave an error for that...)

-Eli




More information about the llvm-commits mailing list