Add testcase for register scanveger assertion fix in r72755
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 8 Jun 2009 22:54:15 +0000 (22:54 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 8 Jun 2009 22:54:15 +0000 (22:54 +0000)
(double def due to livevars)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73096 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/arguments_f64_backfill.ll [new file with mode: 0644]

diff --git a/test/CodeGen/ARM/arguments_f64_backfill.ll b/test/CodeGen/ARM/arguments_f64_backfill.ll
new file mode 100644 (file)
index 0000000..07d928a
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi -mattr=+vfp2 -float-abi=hard | grep {fcpys s0, s1}
+
+define float @f(float %z, double %a, float %b) {
+        %tmp = call float @g(float %b)
+        ret float %tmp
+}
+
+declare float @g(float)