aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-27 22:43:37 +0000
committerChris Lattner <sabre@nondot.org>2007-11-27 22:43:37 +0000
commita5d4a4e33ef9496143b933ef18fa3671bb9b1bf0 (patch)
treeaf3653821fe99ea331b21f3d762953da0bde267a /test/CodeGen/ARM
parenta3f61df4ff4549da3cef1ae70427a4c8ca858c69 (diff)
downloadexternal_llvm-a5d4a4e33ef9496143b933ef18fa3671bb9b1bf0.zip
external_llvm-a5d4a4e33ef9496143b933ef18fa3671bb9b1bf0.tar.gz
external_llvm-a5d4a4e33ef9496143b933ef18fa3671bb9b1bf0.tar.bz2
commit testcase I forgot to svn add.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r--test/CodeGen/ARM/fmdrr-fmrrd.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fmdrr-fmrrd.ll b/test/CodeGen/ARM/fmdrr-fmrrd.ll
new file mode 100644
index 0000000..315e623
--- /dev/null
+++ b/test/CodeGen/ARM/fmdrr-fmrrd.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=arm -mattr=vfp2 | not grep fmdrr
+; RUN: llvm-as < %s | llc -march=arm -mattr=vfp2 | not grep fmrrd
+
+; naive codegen for this is:
+; _i:
+; fmdrr d0, r0, r1
+; fmrrd r0, r1, d0
+; bx lr
+
+define i64 @test(double %X) {
+ %Y = bitcast double %X to i64
+ ret i64 %Y
+}