aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-11 02:11:43 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-11 02:11:43 +0000
commit51f148f39427ef996d4a64d5cafa04788ee85c4a (patch)
tree660a327079f8416b16750f2ccbcb7020c0f0ee93
parent46bf5afa01b71f672bfc37166989884ea60647d1 (diff)
Test case for PR368
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14129 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/SparcV9/2004-06-10-SpillNull.llx11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/SparcV9/2004-06-10-SpillNull.llx b/test/CodeGen/SparcV9/2004-06-10-SpillNull.llx
new file mode 100644
index 0000000000..5e194c2779
--- /dev/null
+++ b/test/CodeGen/SparcV9/2004-06-10-SpillNull.llx
@@ -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
+}