brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 982a6ec Raw
24 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -passes=rewrite-statepoints-for-gc -S < %s | FileCheck %s3 4define void @test() gc "statepoint-example" personality ptr @zot{5; CHECK-LABEL: @test(6; CHECK-NEXT:  bb:7; CHECK-NEXT:    [[TMP:%.*]] = freeze ptr addrspace(1) undef8; CHECK-NEXT:    [[TMP3:%.*]] = getelementptr inbounds i8, ptr addrspace(1) [[TMP]], i64 169; CHECK-NEXT:    [[STATEPOINT_TOKEN:%.*]] = call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 2882400000, i32 0, ptr elementtype(void ()) @wibble, i32 0, i32 0, i32 0, i32 0) [ "deopt"() ]10; CHECK-NEXT:    [[TMP5:%.*]] = getelementptr inbounds i32, ptr addrspace(1) [[TMP3]], i64 undef11; CHECK-NEXT:    ret void12;13bb:14  %tmp = freeze ptr addrspace(1) undef15  %tmp3 = getelementptr inbounds i8, ptr addrspace(1) %tmp, i64 1616  call void @wibble() #3 [ "deopt"() ]17  %tmp5 = getelementptr inbounds i32, ptr addrspace(1) %tmp3, i64 undef18  ret void19}20 21declare ptr @zot()22 23declare void @wibble()24