llvm.org GIT mirror llvm / 7b763c6
[PlaceSafepoints] Minor test cleanup; NFC There is no need to place quotes around some_call and personality_function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259055 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 3 years ago
1 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt %s -S -place-safepoints | FileCheck %s
11
2 declare i64 addrspace(1)* @"some_call"(i64 addrspace(1)*)
3 declare i32 @"personality_function"()
2 declare i64 addrspace(1)* @some_call(i64 addrspace(1)*)
3 declare i32 @personality_function()
44
5 define i64 addrspace(1)* @test_basic(i64 addrspace(1)* %obj, i64 addrspace(1)* %obj1) gc "statepoint-example" personality i32 ()* @"personality_function" {
5 define i64 addrspace(1)* @test_basic(i64 addrspace(1)* %obj, i64 addrspace(1)* %obj1) gc "statepoint-example" personality i32 ()* @personality_function {
66 ; CHECK-LABEL: entry:
77 entry:
88 ; CHECK: invoke
99 ; CHECK: statepoint
1010 ; CHECK: some_call
11 %ret_val = invoke i64 addrspace(1)* @"some_call"(i64 addrspace(1)* %obj)
11 %ret_val = invoke i64 addrspace(1)* @some_call(i64 addrspace(1)* %obj)
1212 to label %normal_return unwind label %exceptional_return
1313
1414 ; CHECK-LABEL: normal_return:
2828 ret i64 addrspace(1)* %obj1
2929 }
3030
31 define i64 addrspace(1)* @test_two_invokes(i64 addrspace(1)* %obj, i64 addrspace(1)* %obj1) gc "statepoint-example" personality i32 ()* @"personality_function" {
31 define i64 addrspace(1)* @test_two_invokes(i64 addrspace(1)* %obj, i64 addrspace(1)* %obj1) gc "statepoint-example" personality i32 ()* @personality_function {
3232 ; CHECK-LABEL: entry:
3333 entry:
3434 ; CHECK: invoke
3535 ; CHECK: statepoint
3636 ; CHECK: some_call
37 %ret_val1 = invoke i64 addrspace(1)* @"some_call"(i64 addrspace(1)* %obj)
37 %ret_val1 = invoke i64 addrspace(1)* @some_call(i64 addrspace(1)* %obj)
3838 to label %second_invoke unwind label %exceptional_return
3939
4040 ; CHECK-LABEL: second_invoke:
4242 ; CHECK: invoke
4343 ; CHECK: statepoint
4444 ; CHECK: some_call
45 %ret_val2 = invoke i64 addrspace(1)* @"some_call"(i64 addrspace(1)* %ret_val1)
45 %ret_val2 = invoke i64 addrspace(1)* @some_call(i64 addrspace(1)* %ret_val1)
4646 to label %normal_return unwind label %exceptional_return
4747
4848 ; CHECK-LABEL: normal_return:
6060 ret i64 addrspace(1)* %obj1
6161 }
6262
63 define i64 addrspace(1)* @test_phi_node(i1 %cond, i64 addrspace(1)* %obj) gc "statepoint-example" personality i32 ()* @"personality_function" {
63 define i64 addrspace(1)* @test_phi_node(i1 %cond, i64 addrspace(1)* %obj) gc "statepoint-example" personality i32 ()* @personality_function {
6464 ; CHECK-LABEL: @test_phi_node
6565 ; CHECK-LABEL: entry:
6666 entry:
6767 br i1 %cond, label %left, label %right
6868
6969 left:
70 %ret_val_left = invoke i64 addrspace(1)* @"some_call"(i64 addrspace(1)* %obj)
70 %ret_val_left = invoke i64 addrspace(1)* @some_call(i64 addrspace(1)* %obj)
7171 to label %merge unwind label %exceptional_return
7272
7373 right:
74 %ret_val_right = invoke i64 addrspace(1)* @"some_call"(i64 addrspace(1)* %obj)
74 %ret_val_right = invoke i64 addrspace(1)* @some_call(i64 addrspace(1)* %obj)
7575 to label %merge unwind label %exceptional_return
7676
7777 ; CHECK: merge[[A:[0-9]]]: