15 lines · plain
1; A call to a libcall function is not a statepoint.2; This test verifies that calls to libcalls functions do not get converted to3; statepoint calls.4; RUN: opt -S -passes=rewrite-statepoints-for-gc < %s | FileCheck %s5 6declare double @ldexp(double %x, i32 %n) nounwind readnone7 8define double @test_libcall(double %x) gc "statepoint-example" {9; CHECK-LABEL: test_libcall10; CHECK-NEXT: %res = call double @ldexp(double %x, i32 5)11; CHECK-NEXT: ret double %res12 %res = call double @ldexp(double %x, i32 5) nounwind readnone13 ret double %res14}15