OSDN Git Service

[Statepoints] Test only change. Check that statepoint lowering didn't generate more...
authorIgor Laevsky <igmyrj@gmail.com>
Tue, 16 Jun 2015 19:07:05 +0000 (19:07 +0000)
committerIgor Laevsky <igmyrj@gmail.com>
Tue, 16 Jun 2015 19:07:05 +0000 (19:07 +0000)
See http://reviews.llvm.org/D10402 for related discussion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239842 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/statepoint-stack-usage.ll

index 2299d72..b8d7487 100644 (file)
@@ -14,6 +14,8 @@ define i32 @back_to_back_calls(i32 addrspace(1)* %a, i32 addrspace(1)* %b, i32 a
 ; CHECK: movq  %rdi, 16(%rsp)
 ; CHECK: movq  %rdx, 8(%rsp)
 ; CHECK: movq  %rsi, (%rsp)
+; There should be no more than three moves
+; CHECK-NOT: movq
   %safepoint_token = tail call i32 (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 0, i32 0, void ()* undef, i32 0, i32 0, i32 0, i32 5, i32 0, i32 -1, i32 0, i32 0, i32 0, i32 addrspace(1)* %a, i32 addrspace(1)* %b, i32 addrspace(1)* %c)
   %a1 = tail call coldcc i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(i32 %safepoint_token, i32 12, i32 12)
   %b1 = tail call coldcc i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(i32 %safepoint_token, i32 12, i32 13)