1 ; RUN: llc -mtriple thumbv7--windows-itanium -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-GNU
2 ; RUN: llc -mtriple thumbv7--windows-gnu -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-GNU
3 ; RUN: llc -mtriple thumbv7--windows-msvc -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-MSVC
9 define dllexport void @g() {
13 define dllexport void @h() unnamed_addr {
17 declare dllexport void @i()
19 define linkonce_odr dllexport void @j() {
23 define linkonce_odr dllexport void @k() alwaysinline {
27 define weak_odr dllexport void @l() {
31 @m = dllexport global i32 0, align 4
32 @n = dllexport unnamed_addr constant i32 0
33 @o = common dllexport global i32 0, align 4
34 @p = weak_odr dllexport global i32 0, align 4
35 @q = weak_odr dllexport unnamed_addr constant i32 0
37 @r = dllexport alias void (), void () * @f
38 @s = dllexport alias void (), void () * @g
39 @t = dllexport alias void (), void () * @f
40 @u = weak_odr dllexport alias void (), void () * @g
42 ; CHECK: .section .drectve
43 ; CHECK-GNU-NOT: -export:f
44 ; CHECK-GNU: .ascii " -export:g"
45 ; CHECK-GNU: .ascii " -export:h"
46 ; CHECK-GNU-NOT: -export:i
47 ; CHECK-GNU: .ascii " -export:j"
48 ; CHECK-GNU: .ascii " -export:k"
49 ; CHECK-GNU: .ascii " -export:l"
50 ; CHECK-GNU: .ascii " -export:m,data"
51 ; CHECK-GNU: .ascii " -export:n,data"
52 ; CHECK-GNU: .ascii " -export:o,data"
53 ; CHECK-GNU: .ascii " -export:p,data"
54 ; CHECK-GNU: .ascii " -export:q,data"
55 ; CHECK-GNU: .ascii " -export:r"
56 ; CHECK-GNU: .ascii " -export:s"
57 ; CHECK-GNU: .ascii " -export:t"
58 ; CHECK-GNU: .ascii " -export:u"
59 ; CHECK-MSVC-NOT: /EXPORT:f
60 ; CHECK-MSVC: .ascii " /EXPORT:g"
61 ; CHECK-MSVC: .ascii " /EXPORT:h"
62 ; CHECK-MSVC-NOT: /EXPORT:i
63 ; CHECK-MSVC: .ascii " /EXPORT:j"
64 ; CHECK-MSVC: .ascii " /EXPORT:k"
65 ; CHECK-MSVC: .ascii " /EXPORT:l"
66 ; CHECK-MSVC: .ascii " /EXPORT:m,DATA"
67 ; CHECK-MSVC: .ascii " /EXPORT:n,DATA"
68 ; CHECK-MSVC: .ascii " /EXPORT:o,DATA"
69 ; CHECK-MSVC: .ascii " /EXPORT:p,DATA"
70 ; CHECK-MSVC: .ascii " /EXPORT:q,DATA"
71 ; CHECK-MSVC: .ascii " /EXPORT:r"
72 ; CHECK-MSVC: .ascii " /EXPORT:s"
73 ; CHECK-MSVC: .ascii " /EXPORT:t"
74 ; CHECK-MSVC: .ascii " /EXPORT:u"