llvm.org GIT mirror llvm / 6140039
[PlaceSafepoints] Clean up tests; NFC Use `opt < %s` instead of `opt %s` as specified in http://llvm.org/docs/TestingGuide.html#fragile-tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259062 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 3 years ago
10 changed file(s) with 11 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt %s -S -place-safepoints | FileCheck %s
0 ; RUN: opt < %s -S -place-safepoints | FileCheck %s
11
22
33 ; Do we insert a simple entry safepoint?
0 ; If there's a call in the loop which dominates the backedge, we
11 ; don't need a safepoint poll (since the callee must contain a
22 ; poll test).
3 ;; RUN: opt %s -place-safepoints -S | FileCheck %s
3 ;; RUN: opt < %s -place-safepoints -S | FileCheck %s
44
55 declare void @foo()
66
None ;; RUN: opt %s -place-safepoints -S | FileCheck %s
0 ;; RUN: opt < %s -place-safepoints -S | FileCheck %s
11
22 ;; This test is to verify that gc_result from a call statepoint
33 ;; can have preceding phis in its parent basic block. Unlike
0 ; Tests to ensure that we are not placing backedge safepoints in
11 ; loops which are clearly finite.
2 ;; RUN: opt %s -place-safepoints -spp-counted-loop-trip-width=32 -S | FileCheck %s
3 ;; RUN: opt %s -place-safepoints -spp-counted-loop-trip-width=64 -S | FileCheck %s -check-prefix=COUNTED-64
2 ;; RUN: opt < %s -place-safepoints -spp-counted-loop-trip-width=32 -S | FileCheck %s
3 ;; RUN: opt < %s -place-safepoints -spp-counted-loop-trip-width=64 -S | FileCheck %s -check-prefix=COUNTED-64
44
55
66 ; A simple counted loop with trivially known range
None ; RUN: opt %s -S -place-safepoints | FileCheck %s
0 ; RUN: opt < %s -S -place-safepoints | FileCheck %s
11
22 declare i64 addrspace(1)* @some_call(i64 addrspace(1)*)
33 declare i32 @personality_function()
None ; RUN: opt %s -S -place-safepoints | FileCheck %s
0 ; RUN: opt < %s -S -place-safepoints | FileCheck %s
11
22 declare void @foo() "gc-leaf-function"
33 declare void @bar()
None ; RUN: opt -S -place-safepoints %s | FileCheck %s
0 ; RUN: opt < %s -S -place-safepoints | FileCheck %s
11
22 define void @test(i32, i8 addrspace(1)* %ptr) gc "statepoint-example" {
33 ; CHECK-LABEL: @test
0 ;; A very basic test to make sure that splitting the backedge keeps working
1 ;; RUN: opt -place-safepoints -spp-split-backedge=1 -S %s | FileCheck %s
1 ;; RUN: opt < %s -place-safepoints -spp-split-backedge=1 -S | FileCheck %s
22
33 define void @test(i32, i1 %cond) gc "statepoint-example" {
44 ; CHECK-LABEL: @test
None ; RUN: opt %s -S -place-safepoints | FileCheck %s
0 ; RUN: opt < %s -S -place-safepoints | FileCheck %s
11
22 ; Basic test to make sure that safepoints are placed
33 ; for CoreCLR GC
None ; RUN: opt %s -S -place-safepoints | FileCheck %s
0 ; RUN: opt < %s -S -place-safepoints | FileCheck %s
11
22 declare void @llvm.localescape(...)
33