diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-20 00:23:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-20 00:23:20 +0000 |
commit | 8014e865800cc911697a4c0c42f077df9fcc9805 (patch) | |
tree | a145ed8e527f2d3531b9bdb57d4a22c8196e5c2c /test/CodeGen | |
parent | bdedd4477331b3b0d28d74658baf05f675f2d195 (diff) | |
download | external_llvm-8014e865800cc911697a4c0c42f077df9fcc9805.zip external_llvm-8014e865800cc911697a4c0c42f077df9fcc9805.tar.gz external_llvm-8014e865800cc911697a4c0c42f077df9fcc9805.tar.bz2 |
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')
-rw-r--r-- | test/CodeGen/X86/fast-isel.ll | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fast-isel.ll b/test/CodeGen/X86/fast-isel.ll index 1b0d5b2..b0be56b 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 +} + |