Test case for PR368
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 11 Jun 2004 02:11:43 +0000 (02:11 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 11 Jun 2004 02:11:43 +0000 (02:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14129 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/SparcV9/2004-06-10-SpillNull.llx [new file with mode: 0644]

diff --git a/test/CodeGen/SparcV9/2004-06-10-SpillNull.llx b/test/CodeGen/SparcV9/2004-06-10-SpillNull.llx
new file mode 100644 (file)
index 0000000..5e194c2
--- /dev/null
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=sparcv9 | not grep 'CPI'
+; PR368 - make sure nulls are not spilled to constant pool
+
+implementation
+
+declare void %foobar (sbyte* %arg)
+
+void %caller () {
+  call void %foobar (sbyte* null)
+  ret void
+}