diff options
-rw-r--r-- | test/CodeGen/SparcV9/2004-06-10-SpillNull.llx | 11 |
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 +} |