1 ; RUN: llc < %s -mtriple=x86_64-pc-windows-msvc | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-w64-windows-gnu | FileCheck %s
4 ; Check how constant function pointer casts are handled.
6 declare void @unprototyped(...)
8 define i32 @call_unprototyped() {
9 call void @unprototyped()
13 ; CHECK-LABEL: call_unprototyped:
14 ; CHECK: callq unprototyped
15 ; CHECK: xorl %eax, %eax
18 declare void @escaped_cast()
20 define i32 @escape_it_with_cast(ptr %p) {
21 store ptr @escaped_cast, ptr %p
25 declare void @dead_constant()
27 !llvm.module.flags = !{!0}
28 !0 = !{i32 2, !"cfguard", i32 1}
30 !dead_constant_root = !{!1}
31 !1 = !DITemplateValueParameter(name: "dead_constant", value: ptr @dead_constant)
33 ; CHECK-LABEL: .section .gfids$y,"dr"
34 ; CHECK-NEXT: .symidx escaped_cast