From 729fc8facc5cbbe495b8c18c74a99d874e08a307 Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Thu, 12 Jun 2014 03:54:05 +0000 Subject: [PATCH] [FastISel][x86] Add testcase for r210719. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210746 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/fast-isel-args.ll | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/CodeGen/X86/fast-isel-args.ll b/test/CodeGen/X86/fast-isel-args.ll index 0f3626565e7..8c86a9cc01d 100644 --- a/test/CodeGen/X86/fast-isel-args.ll +++ b/test/CodeGen/X86/fast-isel-args.ll @@ -23,3 +23,27 @@ entry: %add2 = add nsw i64 %add, %conv1 ret i64 %add2 } + +define float @t4(float %a, float %b, float %c, float %d, float %e, float %f, float %g, float %h) { +entry: + %add1 = fadd float %a, %b + %add2 = fadd float %c, %d + %add3 = fadd float %e, %f + %add4 = fadd float %g, %h + %add5 = fadd float %add1, %add2 + %add6 = fadd float %add3, %add4 + %add7 = fadd float %add5, %add6 + ret float %add7 +} + +define double @t5(double %a, double %b, double %c, double %d, double %e, double %f, double %g, double %h) { +entry: + %add1 = fadd double %a, %b + %add2 = fadd double %c, %d + %add3 = fadd double %e, %f + %add4 = fadd double %g, %h + %add5 = fadd double %add1, %add2 + %add6 = fadd double %add3, %add4 + %add7 = fadd double %add5, %add6 + ret double %add7 +}