summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-args.ll
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-06-12 20:12:34 +0000
committerJuergen Ributzka <juergen@apple.com>2014-06-12 20:12:34 +0000
commita13cab5b74b927f5da9bedbe76667579cc608465 (patch)
treeb5c3171949def75e8182febb4846727d0b910e98 /llvm/test/CodeGen/X86/fast-isel-args.ll
parent65ca57a41815af432ff428d3383b0c23d0ea7677 (diff)
downloadbcm5719-llvm-a13cab5b74b927f5da9bedbe76667579cc608465.tar.gz
bcm5719-llvm-a13cab5b74b927f5da9bedbe76667579cc608465.zip
[FastIsel][X86] Add support for lowering the first 8 floating-point arguments.
Recommit with fixed argument attribute checking code, which is required to bail out of all the cases we don't handle yet. llvm-svn: 210815
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-args.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-args.ll24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-args.ll b/llvm/test/CodeGen/X86/fast-isel-args.ll
index 0f3626565e7..8c86a9cc01d 100644
--- a/llvm/test/CodeGen/X86/fast-isel-args.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud