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 | b16a7783c5ce292443cbef50cc8deaf97811477f (patch) | |
tree | 82b940d55e3227195cbc61459c3fe5c112e093b1 /llvm/test/CodeGen/X86/fast-isel.ll | |
parent | a3e4d5a5e149e2e222b84f10faed665fbc088119 (diff) | |
download | bcm5719-llvm-b16a7783c5ce292443cbef50cc8deaf97811477f.tar.gz bcm5719-llvm-b16a7783c5ce292443cbef50cc8deaf97811477f.zip |
Add FastISel support for floating-point operations.
llvm-svn: 55021
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel.ll | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel.ll b/llvm/test/CodeGen/X86/fast-isel.ll index 1b0d5b2f8f6..b0be56b64b2 100644 --- a/llvm/test/CodeGen/X86/fast-isel.ll +++ b/llvm/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 +} + |