summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fast-isel.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-20 00:23:20 +0000
committerDan Gohman <gohman@apple.com>2008-08-20 00:23:20 +0000
commit8014e865800cc911697a4c0c42f077df9fcc9805 (patch)
treea145ed8e527f2d3531b9bdb57d4a22c8196e5c2c /test/CodeGen/X86/fast-isel.ll
parentbdedd4477331b3b0d28d74658baf05f675f2d195 (diff)
downloadllvm-8014e865800cc911697a4c0c42f077df9fcc9805.tar.gz
llvm-8014e865800cc911697a4c0c42f077df9fcc9805.tar.bz2
llvm-8014e865800cc911697a4c0c42f077df9fcc9805.tar.xz
Add FastISel support for floating-point operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-isel.ll')
-rw-r--r--test/CodeGen/X86/fast-isel.ll18
1 files changed, 17 insertions, 1 deletions
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
+}
+