From 8014e865800cc911697a4c0c42f077df9fcc9805 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Aug 2008 00:23:20 +0000 Subject: Add FastISel support for floating-point operations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55021 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/fast-isel.ll | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'test/CodeGen/X86/fast-isel.ll') diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll index 1b0d5b2f8f..b0be56b64b 100644 --- a/test/CodeGen/X86/fast-isel.ll +++ b/test/CodeGen/X86/fast-isel.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -fast-isel | grep add | count 1 +; RUN: llvm-as < %s | llc -fast-isel ; This tests very minimal fast-isel functionality. @@ -21,3 +21,19 @@ exit: ret i32 %t5 } +define double @bar(double* %p, double* %q) { +entry: + %r = load double* %p + %s = load double* %q + br label %fast + +fast: + %t0 = add double %r, %s + %t1 = mul double %t0, %s + %t2 = sub double %t1, %s + br label %exit + +exit: + ret double %t2 +} + -- cgit v1.2.3