avoid ambiguity in target selection
[oota-llvm.git] / test / CodeGen / Generic / stacksave-restore.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc
2
3 declare sbyte* %llvm.stacksave()
4 declare void %llvm.stackrestore(sbyte*)
5
6 int *%test(uint %N) {
7         %tmp = call sbyte* %llvm.stacksave()
8         %P = alloca int, uint %N
9         call void %llvm.stackrestore(sbyte* %tmp)
10         %Q = alloca int, uint %N
11         ret int* %P
12 }