Test case for PR368
[oota-llvm.git] / test / CodeGen / SparcV9 / 2004-06-10-SpillNull.llx
1 ; RUN: llvm-as < %s | llc -march=sparcv9 | not grep 'CPI'
2 ; PR368 - make sure nulls are not spilled to constant pool
3
4 implementation
5
6 declare void %foobar (sbyte* %arg)
7
8 void %caller () {
9   call void %foobar (sbyte* null)
10   ret void
11 }