diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/ARM/fpmem.ll | |
download | src-009b1c42aa6266385f2c37e227516b24077e6dd7.tar.gz src-009b1c42aa6266385f2c37e227516b24077e6dd7.zip |
Import LLVM, at r72732.vendor/llvm/llvm-r72732
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=193323
svn path=/vendor/llvm/llvm-r72732/; revision=193324; tag=vendor/llvm/llvm-r72732
Diffstat (limited to 'test/CodeGen/ARM/fpmem.ll')
-rw-r--r-- | test/CodeGen/ARM/fpmem.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fpmem.ll b/test/CodeGen/ARM/fpmem.ll new file mode 100644 index 000000000000..48204ecdebf9 --- /dev/null +++ b/test/CodeGen/ARM/fpmem.ll @@ -0,0 +1,22 @@ +; RUN: llvm-as < %s | llc -march=arm | \ +; RUN: grep {mov r0, #0} | count 1 +; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | \ +; RUN: grep {flds.*\\\[} | count 1 +; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | \ +; RUN: grep {fsts.*\\\[} | count 1 + +define float @f1(float %a) { + ret float 0.000000e+00 +} + +define float @f2(float* %v, float %u) { + %tmp = load float* %v ; <float> [#uses=1] + %tmp1 = add float %tmp, %u ; <float> [#uses=1] + ret float %tmp1 +} + +define void @f3(float %a, float %b, float* %v) { + %tmp = add float %a, %b ; <float> [#uses=1] + store float %tmp, float* %v + ret void +} |