| ... | ... | @@ -20,10 +20,13 @@ comptime { |
| 20 | 20 | switch (arch) { |
| 21 | 21 | .i386, |
| 22 | 22 | .x86_64, |
| 23 | | => @export(@import("compiler_rt/stack_probe.zig").zig_probe_stack, .{ |
| 24 | | .name = "__zig_probe_stack", |
| 25 | | .linkage = linkage, |
| 26 | | }), |
| 23 | => { |
| 24 | const zig_probe_stack = @import("compiler_rt/stack_probe.zig").zig_probe_stack; |
| 25 | @export(zig_probe_stack, .{ |
| 26 | .name = "__zig_probe_stack", |
| 27 | .linkage = linkage, |
| 28 | }); |
| 29 | }, |
| 27 | 30 | |
| 28 | 31 | else => {}, |
| 29 | 32 | } |
| ... | ... | @@ -31,355 +34,567 @@ comptime { |
| 31 | 34 | // __clear_cache manages its own logic about whether to be exported or not. |
| 32 | 35 | _ = @import("compiler_rt/clear_cache.zig").clear_cache; |
| 33 | 36 | |
| 34 | | @export(@import("compiler_rt/compareXf2.zig").__lesf2, .{ .name = "__lesf2", .linkage = linkage }); |
| 35 | | @export(@import("compiler_rt/compareXf2.zig").__ledf2, .{ .name = "__ledf2", .linkage = linkage }); |
| 36 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__letf2", .linkage = linkage }); |
| 37 | const __lesf2 = @import("compiler_rt/compareXf2.zig").__lesf2; |
| 38 | @export(__lesf2, .{ .name = "__lesf2", .linkage = linkage }); |
| 39 | const __ledf2 = @import("compiler_rt/compareXf2.zig").__ledf2; |
| 40 | @export(__ledf2, .{ .name = "__ledf2", .linkage = linkage }); |
| 41 | const __letf2 = @import("compiler_rt/compareXf2.zig").__letf2; |
| 42 | @export(__letf2, .{ .name = "__letf2", .linkage = linkage }); |
| 37 | 43 | |
| 38 | | @export(@import("compiler_rt/compareXf2.zig").__gesf2, .{ .name = "__gesf2", .linkage = linkage }); |
| 39 | | @export(@import("compiler_rt/compareXf2.zig").__gedf2, .{ .name = "__gedf2", .linkage = linkage }); |
| 40 | | @export(@import("compiler_rt/compareXf2.zig").__getf2, .{ .name = "__getf2", .linkage = linkage }); |
| 44 | const __gesf2 = @import("compiler_rt/compareXf2.zig").__gesf2; |
| 45 | @export(__gesf2, .{ .name = "__gesf2", .linkage = linkage }); |
| 46 | const __gedf2 = @import("compiler_rt/compareXf2.zig").__gedf2; |
| 47 | @export(__gedf2, .{ .name = "__gedf2", .linkage = linkage }); |
| 48 | const __getf2 = @import("compiler_rt/compareXf2.zig").__getf2; |
| 49 | @export(__getf2, .{ .name = "__getf2", .linkage = linkage }); |
| 41 | 50 | |
| 42 | 51 | if (!is_test) { |
| 43 | | @export(@import("compiler_rt/compareXf2.zig").__lesf2, .{ .name = "__cmpsf2", .linkage = linkage }); |
| 44 | | @export(@import("compiler_rt/compareXf2.zig").__ledf2, .{ .name = "__cmpdf2", .linkage = linkage }); |
| 45 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__cmptf2", .linkage = linkage }); |
| 46 | | |
| 47 | | @export(@import("compiler_rt/compareXf2.zig").__eqsf2, .{ .name = "__eqsf2", .linkage = linkage }); |
| 48 | | @export(@import("compiler_rt/compareXf2.zig").__eqdf2, .{ .name = "__eqdf2", .linkage = linkage }); |
| 49 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__eqtf2", .linkage = linkage }); |
| 50 | | |
| 51 | | @export(@import("compiler_rt/compareXf2.zig").__ltsf2, .{ .name = "__ltsf2", .linkage = linkage }); |
| 52 | | @export(@import("compiler_rt/compareXf2.zig").__ltdf2, .{ .name = "__ltdf2", .linkage = linkage }); |
| 53 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__lttf2", .linkage = linkage }); |
| 54 | | |
| 55 | | @export(@import("compiler_rt/compareXf2.zig").__nesf2, .{ .name = "__nesf2", .linkage = linkage }); |
| 56 | | @export(@import("compiler_rt/compareXf2.zig").__nedf2, .{ .name = "__nedf2", .linkage = linkage }); |
| 57 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__netf2", .linkage = linkage }); |
| 58 | | |
| 59 | | @export(@import("compiler_rt/compareXf2.zig").__gtsf2, .{ .name = "__gtsf2", .linkage = linkage }); |
| 60 | | @export(@import("compiler_rt/compareXf2.zig").__gtdf2, .{ .name = "__gtdf2", .linkage = linkage }); |
| 61 | | @export(@import("compiler_rt/compareXf2.zig").__getf2, .{ .name = "__gttf2", .linkage = linkage }); |
| 62 | | |
| 63 | | @export(@import("compiler_rt/extendXfYf2.zig").__extendhfsf2, .{ .name = "__gnu_h2f_ieee", .linkage = linkage }); |
| 64 | | @export(@import("compiler_rt/truncXfYf2.zig").__truncsfhf2, .{ .name = "__gnu_f2h_ieee", .linkage = linkage }); |
| 52 | @export(__lesf2, .{ .name = "__cmpsf2", .linkage = linkage }); |
| 53 | @export(__ledf2, .{ .name = "__cmpdf2", .linkage = linkage }); |
| 54 | @export(__letf2, .{ .name = "__cmptf2", .linkage = linkage }); |
| 55 | |
| 56 | const __eqsf2 = @import("compiler_rt/compareXf2.zig").__eqsf2; |
| 57 | @export(__eqsf2, .{ .name = "__eqsf2", .linkage = linkage }); |
| 58 | const __eqdf2 = @import("compiler_rt/compareXf2.zig").__eqdf2; |
| 59 | @export(__eqdf2, .{ .name = "__eqdf2", .linkage = linkage }); |
| 60 | @export(__letf2, .{ .name = "__eqtf2", .linkage = linkage }); |
| 61 | |
| 62 | const __ltsf2 = @import("compiler_rt/compareXf2.zig").__ltsf2; |
| 63 | @export(__ltsf2, .{ .name = "__ltsf2", .linkage = linkage }); |
| 64 | const __ltdf2 = @import("compiler_rt/compareXf2.zig").__ltdf2; |
| 65 | @export(__ltdf2, .{ .name = "__ltdf2", .linkage = linkage }); |
| 66 | @export(__letf2, .{ .name = "__lttf2", .linkage = linkage }); |
| 67 | |
| 68 | const __nesf2 = @import("compiler_rt/compareXf2.zig").__nesf2; |
| 69 | @export(__nesf2, .{ .name = "__nesf2", .linkage = linkage }); |
| 70 | const __nedf2 = @import("compiler_rt/compareXf2.zig").__nedf2; |
| 71 | @export(__nedf2, .{ .name = "__nedf2", .linkage = linkage }); |
| 72 | @export(__letf2, .{ .name = "__netf2", .linkage = linkage }); |
| 73 | |
| 74 | const __gtsf2 = @import("compiler_rt/compareXf2.zig").__gtsf2; |
| 75 | @export(__gtsf2, .{ .name = "__gtsf2", .linkage = linkage }); |
| 76 | const __gtdf2 = @import("compiler_rt/compareXf2.zig").__gtdf2; |
| 77 | @export(__gtdf2, .{ .name = "__gtdf2", .linkage = linkage }); |
| 78 | @export(__getf2, .{ .name = "__gttf2", .linkage = linkage }); |
| 79 | |
| 80 | const __extendhfsf2 = @import("compiler_rt/extendXfYf2.zig").__extendhfsf2; |
| 81 | @export(__extendhfsf2, .{ .name = "__gnu_h2f_ieee", .linkage = linkage }); |
| 82 | const __truncsfhf2 = @import("compiler_rt/truncXfYf2.zig").__truncsfhf2; |
| 83 | @export(__truncsfhf2, .{ .name = "__gnu_f2h_ieee", .linkage = linkage }); |
| 65 | 84 | } |
| 66 | 85 | |
| 67 | | @export(@import("compiler_rt/compareXf2.zig").__unordsf2, .{ .name = "__unordsf2", .linkage = linkage }); |
| 68 | | @export(@import("compiler_rt/compareXf2.zig").__unorddf2, .{ .name = "__unorddf2", .linkage = linkage }); |
| 69 | | @export(@import("compiler_rt/compareXf2.zig").__unordtf2, .{ .name = "__unordtf2", .linkage = linkage }); |
| 70 | | |
| 71 | | @export(@import("compiler_rt/addXf3.zig").__addsf3, .{ .name = "__addsf3", .linkage = linkage }); |
| 72 | | @export(@import("compiler_rt/addXf3.zig").__adddf3, .{ .name = "__adddf3", .linkage = linkage }); |
| 73 | | @export(@import("compiler_rt/addXf3.zig").__addtf3, .{ .name = "__addtf3", .linkage = linkage }); |
| 74 | | @export(@import("compiler_rt/addXf3.zig").__subsf3, .{ .name = "__subsf3", .linkage = linkage }); |
| 75 | | @export(@import("compiler_rt/addXf3.zig").__subdf3, .{ .name = "__subdf3", .linkage = linkage }); |
| 76 | | @export(@import("compiler_rt/addXf3.zig").__subtf3, .{ .name = "__subtf3", .linkage = linkage }); |
| 77 | | |
| 78 | | @export(@import("compiler_rt/mulXf3.zig").__mulsf3, .{ .name = "__mulsf3", .linkage = linkage }); |
| 79 | | @export(@import("compiler_rt/mulXf3.zig").__muldf3, .{ .name = "__muldf3", .linkage = linkage }); |
| 80 | | @export(@import("compiler_rt/mulXf3.zig").__multf3, .{ .name = "__multf3", .linkage = linkage }); |
| 81 | | |
| 82 | | @export(@import("compiler_rt/divsf3.zig").__divsf3, .{ .name = "__divsf3", .linkage = linkage }); |
| 83 | | @export(@import("compiler_rt/divdf3.zig").__divdf3, .{ .name = "__divdf3", .linkage = linkage }); |
| 84 | | @export(@import("compiler_rt/divtf3.zig").__divtf3, .{ .name = "__divtf3", .linkage = linkage }); |
| 85 | | |
| 86 | | @export(@import("compiler_rt/shift.zig").__ashldi3, .{ .name = "__ashldi3", .linkage = linkage }); |
| 87 | | @export(@import("compiler_rt/shift.zig").__ashlti3, .{ .name = "__ashlti3", .linkage = linkage }); |
| 88 | | @export(@import("compiler_rt/shift.zig").__ashrdi3, .{ .name = "__ashrdi3", .linkage = linkage }); |
| 89 | | @export(@import("compiler_rt/shift.zig").__ashrti3, .{ .name = "__ashrti3", .linkage = linkage }); |
| 90 | | @export(@import("compiler_rt/shift.zig").__lshrdi3, .{ .name = "__lshrdi3", .linkage = linkage }); |
| 91 | | @export(@import("compiler_rt/shift.zig").__lshrti3, .{ .name = "__lshrti3", .linkage = linkage }); |
| 92 | | |
| 93 | | @export(@import("compiler_rt/floatsiXf.zig").__floatsidf, .{ .name = "__floatsidf", .linkage = linkage }); |
| 94 | | @export(@import("compiler_rt/floatsiXf.zig").__floatsisf, .{ .name = "__floatsisf", .linkage = linkage }); |
| 95 | | @export(@import("compiler_rt/floatdidf.zig").__floatdidf, .{ .name = "__floatdidf", .linkage = linkage }); |
| 96 | | @export(@import("compiler_rt/floatsiXf.zig").__floatsitf, .{ .name = "__floatsitf", .linkage = linkage }); |
| 97 | | |
| 98 | | @export(@import("compiler_rt/floatunsisf.zig").__floatunsisf, .{ .name = "__floatunsisf", .linkage = linkage }); |
| 99 | | @export(@import("compiler_rt/floatundisf.zig").__floatundisf, .{ .name = "__floatundisf", .linkage = linkage }); |
| 100 | | @export(@import("compiler_rt/floatunsidf.zig").__floatunsidf, .{ .name = "__floatunsidf", .linkage = linkage }); |
| 101 | | @export(@import("compiler_rt/floatundidf.zig").__floatundidf, .{ .name = "__floatundidf", .linkage = linkage }); |
| 102 | | |
| 103 | | @export(@import("compiler_rt/floatditf.zig").__floatditf, .{ .name = "__floatditf", .linkage = linkage }); |
| 104 | | @export(@import("compiler_rt/floattitf.zig").__floattitf, .{ .name = "__floattitf", .linkage = linkage }); |
| 105 | | @export(@import("compiler_rt/floattidf.zig").__floattidf, .{ .name = "__floattidf", .linkage = linkage }); |
| 106 | | @export(@import("compiler_rt/floatXisf.zig").__floattisf, .{ .name = "__floattisf", .linkage = linkage }); |
| 107 | | @export(@import("compiler_rt/floatXisf.zig").__floatdisf, .{ .name = "__floatdisf", .linkage = linkage }); |
| 108 | | |
| 109 | | @export(@import("compiler_rt/floatunditf.zig").__floatunditf, .{ .name = "__floatunditf", .linkage = linkage }); |
| 110 | | @export(@import("compiler_rt/floatunsitf.zig").__floatunsitf, .{ .name = "__floatunsitf", .linkage = linkage }); |
| 111 | | |
| 112 | | @export(@import("compiler_rt/floatuntitf.zig").__floatuntitf, .{ .name = "__floatuntitf", .linkage = linkage }); |
| 113 | | @export(@import("compiler_rt/floatuntidf.zig").__floatuntidf, .{ .name = "__floatuntidf", .linkage = linkage }); |
| 114 | | @export(@import("compiler_rt/floatuntisf.zig").__floatuntisf, .{ .name = "__floatuntisf", .linkage = linkage }); |
| 115 | | |
| 116 | | @export(@import("compiler_rt/extendXfYf2.zig").__extenddftf2, .{ .name = "__extenddftf2", .linkage = linkage }); |
| 117 | | @export(@import("compiler_rt/extendXfYf2.zig").__extendsftf2, .{ .name = "__extendsftf2", .linkage = linkage }); |
| 118 | | @export(@import("compiler_rt/extendXfYf2.zig").__extendhfsf2, .{ .name = "__extendhfsf2", .linkage = linkage }); |
| 119 | | @export(@import("compiler_rt/extendXfYf2.zig").__extendhftf2, .{ .name = "__extendhftf2", .linkage = linkage }); |
| 120 | | |
| 121 | | @export(@import("compiler_rt/truncXfYf2.zig").__truncsfhf2, .{ .name = "__truncsfhf2", .linkage = linkage }); |
| 122 | | @export(@import("compiler_rt/truncXfYf2.zig").__truncdfhf2, .{ .name = "__truncdfhf2", .linkage = linkage }); |
| 123 | | @export(@import("compiler_rt/truncXfYf2.zig").__trunctfhf2, .{ .name = "__trunctfhf2", .linkage = linkage }); |
| 124 | | @export(@import("compiler_rt/truncXfYf2.zig").__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = linkage }); |
| 125 | | @export(@import("compiler_rt/truncXfYf2.zig").__trunctfsf2, .{ .name = "__trunctfsf2", .linkage = linkage }); |
| 126 | | |
| 127 | | @export(@import("compiler_rt/truncXfYf2.zig").__truncdfsf2, .{ .name = "__truncdfsf2", .linkage = linkage }); |
| 128 | | |
| 129 | | @export(@import("compiler_rt/extendXfYf2.zig").__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = linkage }); |
| 130 | | |
| 131 | | @export(@import("compiler_rt/fixunssfsi.zig").__fixunssfsi, .{ .name = "__fixunssfsi", .linkage = linkage }); |
| 132 | | @export(@import("compiler_rt/fixunssfdi.zig").__fixunssfdi, .{ .name = "__fixunssfdi", .linkage = linkage }); |
| 133 | | @export(@import("compiler_rt/fixunssfti.zig").__fixunssfti, .{ .name = "__fixunssfti", .linkage = linkage }); |
| 134 | | |
| 135 | | @export(@import("compiler_rt/fixunsdfsi.zig").__fixunsdfsi, .{ .name = "__fixunsdfsi", .linkage = linkage }); |
| 136 | | @export(@import("compiler_rt/fixunsdfdi.zig").__fixunsdfdi, .{ .name = "__fixunsdfdi", .linkage = linkage }); |
| 137 | | @export(@import("compiler_rt/fixunsdfti.zig").__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = linkage }); |
| 138 | | |
| 139 | | @export(@import("compiler_rt/fixunstfsi.zig").__fixunstfsi, .{ .name = "__fixunstfsi", .linkage = linkage }); |
| 140 | | @export(@import("compiler_rt/fixunstfdi.zig").__fixunstfdi, .{ .name = "__fixunstfdi", .linkage = linkage }); |
| 141 | | @export(@import("compiler_rt/fixunstfti.zig").__fixunstfti, .{ .name = "__fixunstfti", .linkage = linkage }); |
| 142 | | |
| 143 | | @export(@import("compiler_rt/fixdfdi.zig").__fixdfdi, .{ .name = "__fixdfdi", .linkage = linkage }); |
| 144 | | @export(@import("compiler_rt/fixdfsi.zig").__fixdfsi, .{ .name = "__fixdfsi", .linkage = linkage }); |
| 145 | | @export(@import("compiler_rt/fixdfti.zig").__fixdfti, .{ .name = "__fixdfti", .linkage = linkage }); |
| 146 | | @export(@import("compiler_rt/fixsfdi.zig").__fixsfdi, .{ .name = "__fixsfdi", .linkage = linkage }); |
| 147 | | @export(@import("compiler_rt/fixsfsi.zig").__fixsfsi, .{ .name = "__fixsfsi", .linkage = linkage }); |
| 148 | | @export(@import("compiler_rt/fixsfti.zig").__fixsfti, .{ .name = "__fixsfti", .linkage = linkage }); |
| 149 | | @export(@import("compiler_rt/fixtfdi.zig").__fixtfdi, .{ .name = "__fixtfdi", .linkage = linkage }); |
| 150 | | @export(@import("compiler_rt/fixtfsi.zig").__fixtfsi, .{ .name = "__fixtfsi", .linkage = linkage }); |
| 151 | | @export(@import("compiler_rt/fixtfti.zig").__fixtfti, .{ .name = "__fixtfti", .linkage = linkage }); |
| 152 | | |
| 153 | | @export(@import("compiler_rt/int.zig").__udivmoddi4, .{ .name = "__udivmoddi4", .linkage = linkage }); |
| 154 | | @export(@import("compiler_rt/popcountdi2.zig").__popcountdi2, .{ .name = "__popcountdi2", .linkage = linkage }); |
| 155 | | |
| 156 | | @export(@import("compiler_rt/int.zig").__mulsi3, .{ .name = "__mulsi3", .linkage = linkage }); |
| 157 | | @export(@import("compiler_rt/muldi3.zig").__muldi3, .{ .name = "__muldi3", .linkage = linkage }); |
| 158 | | @export(@import("compiler_rt/int.zig").__divmoddi4, .{ .name = "__divmoddi4", .linkage = linkage }); |
| 159 | | @export(@import("compiler_rt/int.zig").__divsi3, .{ .name = "__divsi3", .linkage = linkage }); |
| 160 | | @export(@import("compiler_rt/int.zig").__divdi3, .{ .name = "__divdi3", .linkage = linkage }); |
| 161 | | @export(@import("compiler_rt/int.zig").__udivsi3, .{ .name = "__udivsi3", .linkage = linkage }); |
| 162 | | @export(@import("compiler_rt/int.zig").__udivdi3, .{ .name = "__udivdi3", .linkage = linkage }); |
| 163 | | @export(@import("compiler_rt/int.zig").__modsi3, .{ .name = "__modsi3", .linkage = linkage }); |
| 164 | | @export(@import("compiler_rt/int.zig").__moddi3, .{ .name = "__moddi3", .linkage = linkage }); |
| 165 | | @export(@import("compiler_rt/int.zig").__umodsi3, .{ .name = "__umodsi3", .linkage = linkage }); |
| 166 | | @export(@import("compiler_rt/int.zig").__umoddi3, .{ .name = "__umoddi3", .linkage = linkage }); |
| 167 | | @export(@import("compiler_rt/int.zig").__divmodsi4, .{ .name = "__divmodsi4", .linkage = linkage }); |
| 168 | | @export(@import("compiler_rt/int.zig").__udivmodsi4, .{ .name = "__udivmodsi4", .linkage = linkage }); |
| 169 | | |
| 170 | | @export(@import("compiler_rt/negXf2.zig").__negsf2, .{ .name = "__negsf2", .linkage = linkage }); |
| 171 | | @export(@import("compiler_rt/negXf2.zig").__negdf2, .{ .name = "__negdf2", .linkage = linkage }); |
| 172 | | |
| 173 | | @export(@import("compiler_rt/clzsi2.zig").__clzsi2, .{ .name = "__clzsi2", .linkage = linkage }); |
| 86 | const __unordsf2 = @import("compiler_rt/compareXf2.zig").__unordsf2; |
| 87 | @export(__unordsf2, .{ .name = "__unordsf2", .linkage = linkage }); |
| 88 | const __unorddf2 = @import("compiler_rt/compareXf2.zig").__unorddf2; |
| 89 | @export(__unorddf2, .{ .name = "__unorddf2", .linkage = linkage }); |
| 90 | const __unordtf2 = @import("compiler_rt/compareXf2.zig").__unordtf2; |
| 91 | @export(__unordtf2, .{ .name = "__unordtf2", .linkage = linkage }); |
| 92 | |
| 93 | const __addsf3 = @import("compiler_rt/addXf3.zig").__addsf3; |
| 94 | @export(__addsf3, .{ .name = "__addsf3", .linkage = linkage }); |
| 95 | const __adddf3 = @import("compiler_rt/addXf3.zig").__adddf3; |
| 96 | @export(__adddf3, .{ .name = "__adddf3", .linkage = linkage }); |
| 97 | const __addtf3 = @import("compiler_rt/addXf3.zig").__addtf3; |
| 98 | @export(__addtf3, .{ .name = "__addtf3", .linkage = linkage }); |
| 99 | const __subsf3 = @import("compiler_rt/addXf3.zig").__subsf3; |
| 100 | @export(__subsf3, .{ .name = "__subsf3", .linkage = linkage }); |
| 101 | const __subdf3 = @import("compiler_rt/addXf3.zig").__subdf3; |
| 102 | @export(__subdf3, .{ .name = "__subdf3", .linkage = linkage }); |
| 103 | const __subtf3 = @import("compiler_rt/addXf3.zig").__subtf3; |
| 104 | @export(__subtf3, .{ .name = "__subtf3", .linkage = linkage }); |
| 105 | |
| 106 | const __mulsf3 = @import("compiler_rt/mulXf3.zig").__mulsf3; |
| 107 | @export(__mulsf3, .{ .name = "__mulsf3", .linkage = linkage }); |
| 108 | const __muldf3 = @import("compiler_rt/mulXf3.zig").__muldf3; |
| 109 | @export(__muldf3, .{ .name = "__muldf3", .linkage = linkage }); |
| 110 | const __multf3 = @import("compiler_rt/mulXf3.zig").__multf3; |
| 111 | @export(__multf3, .{ .name = "__multf3", .linkage = linkage }); |
| 112 | |
| 113 | const __divsf3 = @import("compiler_rt/divsf3.zig").__divsf3; |
| 114 | @export(__divsf3, .{ .name = "__divsf3", .linkage = linkage }); |
| 115 | const __divdf3 = @import("compiler_rt/divdf3.zig").__divdf3; |
| 116 | @export(__divdf3, .{ .name = "__divdf3", .linkage = linkage }); |
| 117 | const __divtf3 = @import("compiler_rt/divtf3.zig").__divtf3; |
| 118 | @export(__divtf3, .{ .name = "__divtf3", .linkage = linkage }); |
| 119 | |
| 120 | const __ashldi3 = @import("compiler_rt/shift.zig").__ashldi3; |
| 121 | @export(__ashldi3, .{ .name = "__ashldi3", .linkage = linkage }); |
| 122 | const __ashlti3 = @import("compiler_rt/shift.zig").__ashlti3; |
| 123 | @export(__ashlti3, .{ .name = "__ashlti3", .linkage = linkage }); |
| 124 | const __ashrdi3 = @import("compiler_rt/shift.zig").__ashrdi3; |
| 125 | @export(__ashrdi3, .{ .name = "__ashrdi3", .linkage = linkage }); |
| 126 | const __ashrti3 = @import("compiler_rt/shift.zig").__ashrti3; |
| 127 | @export(__ashrti3, .{ .name = "__ashrti3", .linkage = linkage }); |
| 128 | const __lshrdi3 = @import("compiler_rt/shift.zig").__lshrdi3; |
| 129 | @export(__lshrdi3, .{ .name = "__lshrdi3", .linkage = linkage }); |
| 130 | const __lshrti3 = @import("compiler_rt/shift.zig").__lshrti3; |
| 131 | @export(__lshrti3, .{ .name = "__lshrti3", .linkage = linkage }); |
| 132 | |
| 133 | const __floatsidf = @import("compiler_rt/floatsiXf.zig").__floatsidf; |
| 134 | @export(__floatsidf, .{ .name = "__floatsidf", .linkage = linkage }); |
| 135 | const __floatsisf = @import("compiler_rt/floatsiXf.zig").__floatsisf; |
| 136 | @export(__floatsisf, .{ .name = "__floatsisf", .linkage = linkage }); |
| 137 | const __floatdidf = @import("compiler_rt/floatdidf.zig").__floatdidf; |
| 138 | @export(__floatdidf, .{ .name = "__floatdidf", .linkage = linkage }); |
| 139 | const __floatsitf = @import("compiler_rt/floatsiXf.zig").__floatsitf; |
| 140 | @export(__floatsitf, .{ .name = "__floatsitf", .linkage = linkage }); |
| 141 | |
| 142 | const __floatunsisf = @import("compiler_rt/floatunsisf.zig").__floatunsisf; |
| 143 | @export(__floatunsisf, .{ .name = "__floatunsisf", .linkage = linkage }); |
| 144 | const __floatundisf = @import("compiler_rt/floatundisf.zig").__floatundisf; |
| 145 | @export(__floatundisf, .{ .name = "__floatundisf", .linkage = linkage }); |
| 146 | const __floatunsidf = @import("compiler_rt/floatunsidf.zig").__floatunsidf; |
| 147 | @export(__floatunsidf, .{ .name = "__floatunsidf", .linkage = linkage }); |
| 148 | const __floatundidf = @import("compiler_rt/floatundidf.zig").__floatundidf; |
| 149 | @export(__floatundidf, .{ .name = "__floatundidf", .linkage = linkage }); |
| 150 | |
| 151 | const __floatditf = @import("compiler_rt/floatditf.zig").__floatditf; |
| 152 | @export(__floatditf, .{ .name = "__floatditf", .linkage = linkage }); |
| 153 | const __floattitf = @import("compiler_rt/floattitf.zig").__floattitf; |
| 154 | @export(__floattitf, .{ .name = "__floattitf", .linkage = linkage }); |
| 155 | const __floattidf = @import("compiler_rt/floattidf.zig").__floattidf; |
| 156 | @export(__floattidf, .{ .name = "__floattidf", .linkage = linkage }); |
| 157 | const __floattisf = @import("compiler_rt/floatXisf.zig").__floattisf; |
| 158 | @export(__floattisf, .{ .name = "__floattisf", .linkage = linkage }); |
| 159 | const __floatdisf = @import("compiler_rt/floatXisf.zig").__floatdisf; |
| 160 | @export(__floatdisf, .{ .name = "__floatdisf", .linkage = linkage }); |
| 161 | |
| 162 | const __floatunditf = @import("compiler_rt/floatunditf.zig").__floatunditf; |
| 163 | @export(__floatunditf, .{ .name = "__floatunditf", .linkage = linkage }); |
| 164 | const __floatunsitf = @import("compiler_rt/floatunsitf.zig").__floatunsitf; |
| 165 | @export(__floatunsitf, .{ .name = "__floatunsitf", .linkage = linkage }); |
| 166 | |
| 167 | const __floatuntitf = @import("compiler_rt/floatuntitf.zig").__floatuntitf; |
| 168 | @export(__floatuntitf, .{ .name = "__floatuntitf", .linkage = linkage }); |
| 169 | const __floatuntidf = @import("compiler_rt/floatuntidf.zig").__floatuntidf; |
| 170 | @export(__floatuntidf, .{ .name = "__floatuntidf", .linkage = linkage }); |
| 171 | const __floatuntisf = @import("compiler_rt/floatuntisf.zig").__floatuntisf; |
| 172 | @export(__floatuntisf, .{ .name = "__floatuntisf", .linkage = linkage }); |
| 173 | |
| 174 | const __extenddftf2 = @import("compiler_rt/extendXfYf2.zig").__extenddftf2; |
| 175 | @export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = linkage }); |
| 176 | const __extendsftf2 = @import("compiler_rt/extendXfYf2.zig").__extendsftf2; |
| 177 | @export(__extendsftf2, .{ .name = "__extendsftf2", .linkage = linkage }); |
| 178 | const __extendhfsf2 = @import("compiler_rt/extendXfYf2.zig").__extendhfsf2; |
| 179 | @export(__extendhfsf2, .{ .name = "__extendhfsf2", .linkage = linkage }); |
| 180 | const __extendhftf2 = @import("compiler_rt/extendXfYf2.zig").__extendhftf2; |
| 181 | @export(__extendhftf2, .{ .name = "__extendhftf2", .linkage = linkage }); |
| 182 | |
| 183 | const __truncsfhf2 = @import("compiler_rt/truncXfYf2.zig").__truncsfhf2; |
| 184 | @export(__truncsfhf2, .{ .name = "__truncsfhf2", .linkage = linkage }); |
| 185 | const __truncdfhf2 = @import("compiler_rt/truncXfYf2.zig").__truncdfhf2; |
| 186 | @export(__truncdfhf2, .{ .name = "__truncdfhf2", .linkage = linkage }); |
| 187 | const __trunctfhf2 = @import("compiler_rt/truncXfYf2.zig").__trunctfhf2; |
| 188 | @export(__trunctfhf2, .{ .name = "__trunctfhf2", .linkage = linkage }); |
| 189 | const __trunctfdf2 = @import("compiler_rt/truncXfYf2.zig").__trunctfdf2; |
| 190 | @export(__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = linkage }); |
| 191 | const __trunctfsf2 = @import("compiler_rt/truncXfYf2.zig").__trunctfsf2; |
| 192 | @export(__trunctfsf2, .{ .name = "__trunctfsf2", .linkage = linkage }); |
| 193 | |
| 194 | const __truncdfsf2 = @import("compiler_rt/truncXfYf2.zig").__truncdfsf2; |
| 195 | @export(__truncdfsf2, .{ .name = "__truncdfsf2", .linkage = linkage }); |
| 196 | |
| 197 | const __extendsfdf2 = @import("compiler_rt/extendXfYf2.zig").__extendsfdf2; |
| 198 | @export(__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = linkage }); |
| 199 | |
| 200 | const __fixunssfsi = @import("compiler_rt/fixunssfsi.zig").__fixunssfsi; |
| 201 | @export(__fixunssfsi, .{ .name = "__fixunssfsi", .linkage = linkage }); |
| 202 | const __fixunssfdi = @import("compiler_rt/fixunssfdi.zig").__fixunssfdi; |
| 203 | @export(__fixunssfdi, .{ .name = "__fixunssfdi", .linkage = linkage }); |
| 204 | const __fixunssfti = @import("compiler_rt/fixunssfti.zig").__fixunssfti; |
| 205 | @export(__fixunssfti, .{ .name = "__fixunssfti", .linkage = linkage }); |
| 206 | |
| 207 | const __fixunsdfsi = @import("compiler_rt/fixunsdfsi.zig").__fixunsdfsi; |
| 208 | @export(__fixunsdfsi, .{ .name = "__fixunsdfsi", .linkage = linkage }); |
| 209 | const __fixunsdfdi = @import("compiler_rt/fixunsdfdi.zig").__fixunsdfdi; |
| 210 | @export(__fixunsdfdi, .{ .name = "__fixunsdfdi", .linkage = linkage }); |
| 211 | const __fixunsdfti = @import("compiler_rt/fixunsdfti.zig").__fixunsdfti; |
| 212 | @export(__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = linkage }); |
| 213 | |
| 214 | const __fixunstfsi = @import("compiler_rt/fixunstfsi.zig").__fixunstfsi; |
| 215 | @export(__fixunstfsi, .{ .name = "__fixunstfsi", .linkage = linkage }); |
| 216 | const __fixunstfdi = @import("compiler_rt/fixunstfdi.zig").__fixunstfdi; |
| 217 | @export(__fixunstfdi, .{ .name = "__fixunstfdi", .linkage = linkage }); |
| 218 | const __fixunstfti = @import("compiler_rt/fixunstfti.zig").__fixunstfti; |
| 219 | @export(__fixunstfti, .{ .name = "__fixunstfti", .linkage = linkage }); |
| 220 | |
| 221 | const __fixdfdi = @import("compiler_rt/fixdfdi.zig").__fixdfdi; |
| 222 | @export(__fixdfdi, .{ .name = "__fixdfdi", .linkage = linkage }); |
| 223 | const __fixdfsi = @import("compiler_rt/fixdfsi.zig").__fixdfsi; |
| 224 | @export(__fixdfsi, .{ .name = "__fixdfsi", .linkage = linkage }); |
| 225 | const __fixdfti = @import("compiler_rt/fixdfti.zig").__fixdfti; |
| 226 | @export(__fixdfti, .{ .name = "__fixdfti", .linkage = linkage }); |
| 227 | const __fixsfdi = @import("compiler_rt/fixsfdi.zig").__fixsfdi; |
| 228 | @export(__fixsfdi, .{ .name = "__fixsfdi", .linkage = linkage }); |
| 229 | const __fixsfsi = @import("compiler_rt/fixsfsi.zig").__fixsfsi; |
| 230 | @export(__fixsfsi, .{ .name = "__fixsfsi", .linkage = linkage }); |
| 231 | const __fixsfti = @import("compiler_rt/fixsfti.zig").__fixsfti; |
| 232 | @export(__fixsfti, .{ .name = "__fixsfti", .linkage = linkage }); |
| 233 | const __fixtfdi = @import("compiler_rt/fixtfdi.zig").__fixtfdi; |
| 234 | @export(__fixtfdi, .{ .name = "__fixtfdi", .linkage = linkage }); |
| 235 | const __fixtfsi = @import("compiler_rt/fixtfsi.zig").__fixtfsi; |
| 236 | @export(__fixtfsi, .{ .name = "__fixtfsi", .linkage = linkage }); |
| 237 | const __fixtfti = @import("compiler_rt/fixtfti.zig").__fixtfti; |
| 238 | @export(__fixtfti, .{ .name = "__fixtfti", .linkage = linkage }); |
| 239 | |
| 240 | const __udivmoddi4 = @import("compiler_rt/int.zig").__udivmoddi4; |
| 241 | @export(__udivmoddi4, .{ .name = "__udivmoddi4", .linkage = linkage }); |
| 242 | const __popcountdi2 = @import("compiler_rt/popcountdi2.zig").__popcountdi2; |
| 243 | @export(__popcountdi2, .{ .name = "__popcountdi2", .linkage = linkage }); |
| 244 | |
| 245 | const __mulsi3 = @import("compiler_rt/int.zig").__mulsi3; |
| 246 | @export(__mulsi3, .{ .name = "__mulsi3", .linkage = linkage }); |
| 247 | const __muldi3 = @import("compiler_rt/muldi3.zig").__muldi3; |
| 248 | @export(__muldi3, .{ .name = "__muldi3", .linkage = linkage }); |
| 249 | const __divmoddi4 = @import("compiler_rt/int.zig").__divmoddi4; |
| 250 | @export(__divmoddi4, .{ .name = "__divmoddi4", .linkage = linkage }); |
| 251 | const __divsi3 = @import("compiler_rt/int.zig").__divsi3; |
| 252 | @export(__divsi3, .{ .name = "__divsi3", .linkage = linkage }); |
| 253 | const __divdi3 = @import("compiler_rt/int.zig").__divdi3; |
| 254 | @export(__divdi3, .{ .name = "__divdi3", .linkage = linkage }); |
| 255 | const __udivsi3 = @import("compiler_rt/int.zig").__udivsi3; |
| 256 | @export(__udivsi3, .{ .name = "__udivsi3", .linkage = linkage }); |
| 257 | const __udivdi3 = @import("compiler_rt/int.zig").__udivdi3; |
| 258 | @export(__udivdi3, .{ .name = "__udivdi3", .linkage = linkage }); |
| 259 | const __modsi3 = @import("compiler_rt/int.zig").__modsi3; |
| 260 | @export(__modsi3, .{ .name = "__modsi3", .linkage = linkage }); |
| 261 | const __moddi3 = @import("compiler_rt/int.zig").__moddi3; |
| 262 | @export(__moddi3, .{ .name = "__moddi3", .linkage = linkage }); |
| 263 | const __umodsi3 = @import("compiler_rt/int.zig").__umodsi3; |
| 264 | @export(__umodsi3, .{ .name = "__umodsi3", .linkage = linkage }); |
| 265 | const __umoddi3 = @import("compiler_rt/int.zig").__umoddi3; |
| 266 | @export(__umoddi3, .{ .name = "__umoddi3", .linkage = linkage }); |
| 267 | const __divmodsi4 = @import("compiler_rt/int.zig").__divmodsi4; |
| 268 | @export(__divmodsi4, .{ .name = "__divmodsi4", .linkage = linkage }); |
| 269 | const __udivmodsi4 = @import("compiler_rt/int.zig").__udivmodsi4; |
| 270 | @export(__udivmodsi4, .{ .name = "__udivmodsi4", .linkage = linkage }); |
| 271 | |
| 272 | const __negsf2 = @import("compiler_rt/negXf2.zig").__negsf2; |
| 273 | @export(__negsf2, .{ .name = "__negsf2", .linkage = linkage }); |
| 274 | const __negdf2 = @import("compiler_rt/negXf2.zig").__negdf2; |
| 275 | @export(__negdf2, .{ .name = "__negdf2", .linkage = linkage }); |
| 276 | |
| 277 | const __clzsi2 = @import("compiler_rt/clzsi2.zig").__clzsi2; |
| 278 | @export(__clzsi2, .{ .name = "__clzsi2", .linkage = linkage }); |
| 174 | 279 | |
| 175 | 280 | if (builtin.link_libc and os_tag == .openbsd) { |
| 176 | | @export(@import("compiler_rt/emutls.zig").__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = linkage }); |
| 281 | const __emutls_get_address = @import("compiler_rt/emutls.zig").__emutls_get_address; |
| 282 | @export(__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = linkage }); |
| 177 | 283 | } |
| 178 | 284 | |
| 179 | 285 | if ((arch.isARM() or arch.isThumb()) and !is_test) { |
| 180 | | @export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = linkage }); |
| 181 | | @export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = linkage }); |
| 182 | | @export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = linkage }); |
| 183 | | |
| 184 | | @export(@import("compiler_rt/muldi3.zig").__muldi3, .{ .name = "__aeabi_lmul", .linkage = linkage }); |
| 185 | | |
| 186 | | @export(@import("compiler_rt/arm.zig").__aeabi_ldivmod, .{ .name = "__aeabi_ldivmod", .linkage = linkage }); |
| 187 | | @export(@import("compiler_rt/arm.zig").__aeabi_uldivmod, .{ .name = "__aeabi_uldivmod", .linkage = linkage }); |
| 188 | | |
| 189 | | @export(@import("compiler_rt/int.zig").__divsi3, .{ .name = "__aeabi_idiv", .linkage = linkage }); |
| 190 | | @export(@import("compiler_rt/arm.zig").__aeabi_idivmod, .{ .name = "__aeabi_idivmod", .linkage = linkage }); |
| 191 | | @export(@import("compiler_rt/int.zig").__udivsi3, .{ .name = "__aeabi_uidiv", .linkage = linkage }); |
| 192 | | @export(@import("compiler_rt/arm.zig").__aeabi_uidivmod, .{ .name = "__aeabi_uidivmod", .linkage = linkage }); |
| 193 | | |
| 194 | | @export(@import("compiler_rt/arm.zig").__aeabi_memcpy, .{ .name = "__aeabi_memcpy", .linkage = linkage }); |
| 195 | | @export(@import("compiler_rt/arm.zig").__aeabi_memcpy, .{ .name = "__aeabi_memcpy4", .linkage = linkage }); |
| 196 | | @export(@import("compiler_rt/arm.zig").__aeabi_memcpy, .{ .name = "__aeabi_memcpy8", .linkage = linkage }); |
| 197 | | |
| 198 | | @export(@import("compiler_rt/arm.zig").__aeabi_memmove, .{ .name = "__aeabi_memmove", .linkage = linkage }); |
| 199 | | @export(@import("compiler_rt/arm.zig").__aeabi_memmove, .{ .name = "__aeabi_memmove4", .linkage = linkage }); |
| 200 | | @export(@import("compiler_rt/arm.zig").__aeabi_memmove, .{ .name = "__aeabi_memmove8", .linkage = linkage }); |
| 201 | | |
| 202 | | @export(@import("compiler_rt/arm.zig").__aeabi_memset, .{ .name = "__aeabi_memset", .linkage = linkage }); |
| 203 | | @export(@import("compiler_rt/arm.zig").__aeabi_memset, .{ .name = "__aeabi_memset4", .linkage = linkage }); |
| 204 | | @export(@import("compiler_rt/arm.zig").__aeabi_memset, .{ .name = "__aeabi_memset8", .linkage = linkage }); |
| 205 | | |
| 206 | | @export(@import("compiler_rt/arm.zig").__aeabi_memclr, .{ .name = "__aeabi_memclr", .linkage = linkage }); |
| 207 | | @export(@import("compiler_rt/arm.zig").__aeabi_memclr, .{ .name = "__aeabi_memclr4", .linkage = linkage }); |
| 208 | | @export(@import("compiler_rt/arm.zig").__aeabi_memclr, .{ .name = "__aeabi_memclr8", .linkage = linkage }); |
| 286 | const __aeabi_unwind_cpp_pr0 = @import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr0; |
| 287 | @export(__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = linkage }); |
| 288 | const __aeabi_unwind_cpp_pr1 = @import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr1; |
| 289 | @export(__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = linkage }); |
| 290 | const __aeabi_unwind_cpp_pr2 = @import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr2; |
| 291 | @export(__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = linkage }); |
| 292 | |
| 293 | @export(__muldi3, .{ .name = "__aeabi_lmul", .linkage = linkage }); |
| 294 | |
| 295 | const __aeabi_ldivmod = @import("compiler_rt/arm.zig").__aeabi_ldivmod; |
| 296 | @export(__aeabi_ldivmod, .{ .name = "__aeabi_ldivmod", .linkage = linkage }); |
| 297 | const __aeabi_uldivmod = @import("compiler_rt/arm.zig").__aeabi_uldivmod; |
| 298 | @export(__aeabi_uldivmod, .{ .name = "__aeabi_uldivmod", .linkage = linkage }); |
| 299 | |
| 300 | @export(__divsi3, .{ .name = "__aeabi_idiv", .linkage = linkage }); |
| 301 | const __aeabi_idivmod = @import("compiler_rt/arm.zig").__aeabi_idivmod; |
| 302 | @export(__aeabi_idivmod, .{ .name = "__aeabi_idivmod", .linkage = linkage }); |
| 303 | @export(__udivsi3, .{ .name = "__aeabi_uidiv", .linkage = linkage }); |
| 304 | const __aeabi_uidivmod = @import("compiler_rt/arm.zig").__aeabi_uidivmod; |
| 305 | @export(__aeabi_uidivmod, .{ .name = "__aeabi_uidivmod", .linkage = linkage }); |
| 306 | |
| 307 | const __aeabi_memcpy = @import("compiler_rt/arm.zig").__aeabi_memcpy; |
| 308 | @export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy", .linkage = linkage }); |
| 309 | @export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy4", .linkage = linkage }); |
| 310 | @export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy8", .linkage = linkage }); |
| 311 | |
| 312 | const __aeabi_memmove = @import("compiler_rt/arm.zig").__aeabi_memmove; |
| 313 | @export(__aeabi_memmove, .{ .name = "__aeabi_memmove", .linkage = linkage }); |
| 314 | @export(__aeabi_memmove, .{ .name = "__aeabi_memmove4", .linkage = linkage }); |
| 315 | @export(__aeabi_memmove, .{ .name = "__aeabi_memmove8", .linkage = linkage }); |
| 316 | |
| 317 | const __aeabi_memset = @import("compiler_rt/arm.zig").__aeabi_memset; |
| 318 | @export(__aeabi_memset, .{ .name = "__aeabi_memset", .linkage = linkage }); |
| 319 | @export(__aeabi_memset, .{ .name = "__aeabi_memset4", .linkage = linkage }); |
| 320 | @export(__aeabi_memset, .{ .name = "__aeabi_memset8", .linkage = linkage }); |
| 321 | |
| 322 | const __aeabi_memclr = @import("compiler_rt/arm.zig").__aeabi_memclr; |
| 323 | @export(__aeabi_memclr, .{ .name = "__aeabi_memclr", .linkage = linkage }); |
| 324 | @export(__aeabi_memclr, .{ .name = "__aeabi_memclr4", .linkage = linkage }); |
| 325 | @export(__aeabi_memclr, .{ .name = "__aeabi_memclr8", .linkage = linkage }); |
| 209 | 326 | |
| 210 | 327 | if (os_tag == .linux) { |
| 211 | | @export(@import("compiler_rt/arm.zig").__aeabi_read_tp, .{ .name = "__aeabi_read_tp", .linkage = linkage }); |
| 328 | const __aeabi_read_tp = @import("compiler_rt/arm.zig").__aeabi_read_tp; |
| 329 | @export(__aeabi_read_tp, .{ .name = "__aeabi_read_tp", .linkage = linkage }); |
| 212 | 330 | } |
| 213 | 331 | |
| 214 | | @export(@import("compiler_rt/extendXfYf2.zig").__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = linkage }); |
| 215 | | @export(@import("compiler_rt/floatsiXf.zig").__aeabi_i2d, .{ .name = "__aeabi_i2d", .linkage = linkage }); |
| 216 | | @export(@import("compiler_rt/floatdidf.zig").__aeabi_l2d, .{ .name = "__aeabi_l2d", .linkage = linkage }); |
| 217 | | @export(@import("compiler_rt/floatXisf.zig").__aeabi_l2f, .{ .name = "__aeabi_l2f", .linkage = linkage }); |
| 218 | | @export(@import("compiler_rt/floatunsidf.zig").__aeabi_ui2d, .{ .name = "__aeabi_ui2d", .linkage = linkage }); |
| 219 | | @export(@import("compiler_rt/floatundidf.zig").__aeabi_ul2d, .{ .name = "__aeabi_ul2d", .linkage = linkage }); |
| 220 | | @export(@import("compiler_rt/floatunsisf.zig").__aeabi_ui2f, .{ .name = "__aeabi_ui2f", .linkage = linkage }); |
| 221 | | @export(@import("compiler_rt/floatundisf.zig").__aeabi_ul2f, .{ .name = "__aeabi_ul2f", .linkage = linkage }); |
| 222 | | |
| 223 | | @export(@import("compiler_rt/negXf2.zig").__aeabi_fneg, .{ .name = "__aeabi_fneg", .linkage = linkage }); |
| 224 | | @export(@import("compiler_rt/negXf2.zig").__aeabi_dneg, .{ .name = "__aeabi_dneg", .linkage = linkage }); |
| 225 | | |
| 226 | | @export(@import("compiler_rt/mulXf3.zig").__aeabi_fmul, .{ .name = "__aeabi_fmul", .linkage = linkage }); |
| 227 | | @export(@import("compiler_rt/mulXf3.zig").__aeabi_dmul, .{ .name = "__aeabi_dmul", .linkage = linkage }); |
| 228 | | |
| 229 | | @export(@import("compiler_rt/truncXfYf2.zig").__aeabi_d2h, .{ .name = "__aeabi_d2h", .linkage = linkage }); |
| 230 | | |
| 231 | | @export(@import("compiler_rt/fixunssfdi.zig").__aeabi_f2ulz, .{ .name = "__aeabi_f2ulz", .linkage = linkage }); |
| 232 | | @export(@import("compiler_rt/fixunsdfdi.zig").__aeabi_d2ulz, .{ .name = "__aeabi_d2ulz", .linkage = linkage }); |
| 233 | | |
| 234 | | @export(@import("compiler_rt/fixsfdi.zig").__aeabi_f2lz, .{ .name = "__aeabi_f2lz", .linkage = linkage }); |
| 235 | | @export(@import("compiler_rt/fixdfdi.zig").__aeabi_d2lz, .{ .name = "__aeabi_d2lz", .linkage = linkage }); |
| 236 | | |
| 237 | | @export(@import("compiler_rt/fixunsdfsi.zig").__aeabi_d2uiz, .{ .name = "__aeabi_d2uiz", .linkage = linkage }); |
| 238 | | |
| 239 | | @export(@import("compiler_rt/extendXfYf2.zig").__aeabi_h2f, .{ .name = "__aeabi_h2f", .linkage = linkage }); |
| 240 | | @export(@import("compiler_rt/truncXfYf2.zig").__aeabi_f2h, .{ .name = "__aeabi_f2h", .linkage = linkage }); |
| 241 | | |
| 242 | | @export(@import("compiler_rt/floatsiXf.zig").__aeabi_i2f, .{ .name = "__aeabi_i2f", .linkage = linkage }); |
| 243 | | @export(@import("compiler_rt/truncXfYf2.zig").__aeabi_d2f, .{ .name = "__aeabi_d2f", .linkage = linkage }); |
| 244 | | |
| 245 | | @export(@import("compiler_rt/addXf3.zig").__aeabi_fadd, .{ .name = "__aeabi_fadd", .linkage = linkage }); |
| 246 | | @export(@import("compiler_rt/addXf3.zig").__aeabi_dadd, .{ .name = "__aeabi_dadd", .linkage = linkage }); |
| 247 | | @export(@import("compiler_rt/addXf3.zig").__aeabi_fsub, .{ .name = "__aeabi_fsub", .linkage = linkage }); |
| 248 | | @export(@import("compiler_rt/addXf3.zig").__aeabi_dsub, .{ .name = "__aeabi_dsub", .linkage = linkage }); |
| 249 | | |
| 250 | | @export(@import("compiler_rt/fixunssfsi.zig").__aeabi_f2uiz, .{ .name = "__aeabi_f2uiz", .linkage = linkage }); |
| 251 | | |
| 252 | | @export(@import("compiler_rt/fixsfsi.zig").__aeabi_f2iz, .{ .name = "__aeabi_f2iz", .linkage = linkage }); |
| 253 | | @export(@import("compiler_rt/fixdfsi.zig").__aeabi_d2iz, .{ .name = "__aeabi_d2iz", .linkage = linkage }); |
| 254 | | |
| 255 | | @export(@import("compiler_rt/divsf3.zig").__aeabi_fdiv, .{ .name = "__aeabi_fdiv", .linkage = linkage }); |
| 256 | | @export(@import("compiler_rt/divdf3.zig").__aeabi_ddiv, .{ .name = "__aeabi_ddiv", .linkage = linkage }); |
| 257 | | |
| 258 | | @export(@import("compiler_rt/shift.zig").__aeabi_llsl, .{ .name = "__aeabi_llsl", .linkage = linkage }); |
| 259 | | @export(@import("compiler_rt/shift.zig").__aeabi_lasr, .{ .name = "__aeabi_lasr", .linkage = linkage }); |
| 260 | | @export(@import("compiler_rt/shift.zig").__aeabi_llsr, .{ .name = "__aeabi_llsr", .linkage = linkage }); |
| 261 | | |
| 262 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_fcmpeq, .{ .name = "__aeabi_fcmpeq", .linkage = linkage }); |
| 263 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_fcmplt, .{ .name = "__aeabi_fcmplt", .linkage = linkage }); |
| 264 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_fcmple, .{ .name = "__aeabi_fcmple", .linkage = linkage }); |
| 265 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_fcmpge, .{ .name = "__aeabi_fcmpge", .linkage = linkage }); |
| 266 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_fcmpgt, .{ .name = "__aeabi_fcmpgt", .linkage = linkage }); |
| 267 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_fcmpun, .{ .name = "__aeabi_fcmpun", .linkage = linkage }); |
| 268 | | |
| 269 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_dcmpeq, .{ .name = "__aeabi_dcmpeq", .linkage = linkage }); |
| 270 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_dcmplt, .{ .name = "__aeabi_dcmplt", .linkage = linkage }); |
| 271 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_dcmple, .{ .name = "__aeabi_dcmple", .linkage = linkage }); |
| 272 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_dcmpge, .{ .name = "__aeabi_dcmpge", .linkage = linkage }); |
| 273 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_dcmpgt, .{ .name = "__aeabi_dcmpgt", .linkage = linkage }); |
| 274 | | @export(@import("compiler_rt/compareXf2.zig").__aeabi_dcmpun, .{ .name = "__aeabi_dcmpun", .linkage = linkage }); |
| 332 | const __aeabi_f2d = @import("compiler_rt/extendXfYf2.zig").__aeabi_f2d; |
| 333 | @export(__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = linkage }); |
| 334 | const __aeabi_i2d = @import("compiler_rt/floatsiXf.zig").__aeabi_i2d; |
| 335 | @export(__aeabi_i2d, .{ .name = "__aeabi_i2d", .linkage = linkage }); |
| 336 | const __aeabi_l2d = @import("compiler_rt/floatdidf.zig").__aeabi_l2d; |
| 337 | @export(__aeabi_l2d, .{ .name = "__aeabi_l2d", .linkage = linkage }); |
| 338 | const __aeabi_l2f = @import("compiler_rt/floatXisf.zig").__aeabi_l2f; |
| 339 | @export(__aeabi_l2f, .{ .name = "__aeabi_l2f", .linkage = linkage }); |
| 340 | const __aeabi_ui2d = @import("compiler_rt/floatunsidf.zig").__aeabi_ui2d; |
| 341 | @export(__aeabi_ui2d, .{ .name = "__aeabi_ui2d", .linkage = linkage }); |
| 342 | const __aeabi_ul2d = @import("compiler_rt/floatundidf.zig").__aeabi_ul2d; |
| 343 | @export(__aeabi_ul2d, .{ .name = "__aeabi_ul2d", .linkage = linkage }); |
| 344 | const __aeabi_ui2f = @import("compiler_rt/floatunsisf.zig").__aeabi_ui2f; |
| 345 | @export(__aeabi_ui2f, .{ .name = "__aeabi_ui2f", .linkage = linkage }); |
| 346 | const __aeabi_ul2f = @import("compiler_rt/floatundisf.zig").__aeabi_ul2f; |
| 347 | @export(__aeabi_ul2f, .{ .name = "__aeabi_ul2f", .linkage = linkage }); |
| 348 | |
| 349 | const __aeabi_fneg = @import("compiler_rt/negXf2.zig").__aeabi_fneg; |
| 350 | @export(__aeabi_fneg, .{ .name = "__aeabi_fneg", .linkage = linkage }); |
| 351 | const __aeabi_dneg = @import("compiler_rt/negXf2.zig").__aeabi_dneg; |
| 352 | @export(__aeabi_dneg, .{ .name = "__aeabi_dneg", .linkage = linkage }); |
| 353 | |
| 354 | const __aeabi_fmul = @import("compiler_rt/mulXf3.zig").__aeabi_fmul; |
| 355 | @export(__aeabi_fmul, .{ .name = "__aeabi_fmul", .linkage = linkage }); |
| 356 | const __aeabi_dmul = @import("compiler_rt/mulXf3.zig").__aeabi_dmul; |
| 357 | @export(__aeabi_dmul, .{ .name = "__aeabi_dmul", .linkage = linkage }); |
| 358 | |
| 359 | const __aeabi_d2h = @import("compiler_rt/truncXfYf2.zig").__aeabi_d2h; |
| 360 | @export(__aeabi_d2h, .{ .name = "__aeabi_d2h", .linkage = linkage }); |
| 361 | |
| 362 | const __aeabi_f2ulz = @import("compiler_rt/fixunssfdi.zig").__aeabi_f2ulz; |
| 363 | @export(__aeabi_f2ulz, .{ .name = "__aeabi_f2ulz", .linkage = linkage }); |
| 364 | const __aeabi_d2ulz = @import("compiler_rt/fixunsdfdi.zig").__aeabi_d2ulz; |
| 365 | @export(__aeabi_d2ulz, .{ .name = "__aeabi_d2ulz", .linkage = linkage }); |
| 366 | |
| 367 | const __aeabi_f2lz = @import("compiler_rt/fixsfdi.zig").__aeabi_f2lz; |
| 368 | @export(__aeabi_f2lz, .{ .name = "__aeabi_f2lz", .linkage = linkage }); |
| 369 | const __aeabi_d2lz = @import("compiler_rt/fixdfdi.zig").__aeabi_d2lz; |
| 370 | @export(__aeabi_d2lz, .{ .name = "__aeabi_d2lz", .linkage = linkage }); |
| 371 | |
| 372 | const __aeabi_d2uiz = @import("compiler_rt/fixunsdfsi.zig").__aeabi_d2uiz; |
| 373 | @export(__aeabi_d2uiz, .{ .name = "__aeabi_d2uiz", .linkage = linkage }); |
| 374 | |
| 375 | const __aeabi_h2f = @import("compiler_rt/extendXfYf2.zig").__aeabi_h2f; |
| 376 | @export(__aeabi_h2f, .{ .name = "__aeabi_h2f", .linkage = linkage }); |
| 377 | const __aeabi_f2h = @import("compiler_rt/truncXfYf2.zig").__aeabi_f2h; |
| 378 | @export(__aeabi_f2h, .{ .name = "__aeabi_f2h", .linkage = linkage }); |
| 379 | |
| 380 | const __aeabi_i2f = @import("compiler_rt/floatsiXf.zig").__aeabi_i2f; |
| 381 | @export(__aeabi_i2f, .{ .name = "__aeabi_i2f", .linkage = linkage }); |
| 382 | const __aeabi_d2f = @import("compiler_rt/truncXfYf2.zig").__aeabi_d2f; |
| 383 | @export(__aeabi_d2f, .{ .name = "__aeabi_d2f", .linkage = linkage }); |
| 384 | |
| 385 | const __aeabi_fadd = @import("compiler_rt/addXf3.zig").__aeabi_fadd; |
| 386 | @export(__aeabi_fadd, .{ .name = "__aeabi_fadd", .linkage = linkage }); |
| 387 | const __aeabi_dadd = @import("compiler_rt/addXf3.zig").__aeabi_dadd; |
| 388 | @export(__aeabi_dadd, .{ .name = "__aeabi_dadd", .linkage = linkage }); |
| 389 | const __aeabi_fsub = @import("compiler_rt/addXf3.zig").__aeabi_fsub; |
| 390 | @export(__aeabi_fsub, .{ .name = "__aeabi_fsub", .linkage = linkage }); |
| 391 | const __aeabi_dsub = @import("compiler_rt/addXf3.zig").__aeabi_dsub; |
| 392 | @export(__aeabi_dsub, .{ .name = "__aeabi_dsub", .linkage = linkage }); |
| 393 | |
| 394 | const __aeabi_f2uiz = @import("compiler_rt/fixunssfsi.zig").__aeabi_f2uiz; |
| 395 | @export(__aeabi_f2uiz, .{ .name = "__aeabi_f2uiz", .linkage = linkage }); |
| 396 | |
| 397 | const __aeabi_f2iz = @import("compiler_rt/fixsfsi.zig").__aeabi_f2iz; |
| 398 | @export(__aeabi_f2iz, .{ .name = "__aeabi_f2iz", .linkage = linkage }); |
| 399 | const __aeabi_d2iz = @import("compiler_rt/fixdfsi.zig").__aeabi_d2iz; |
| 400 | @export(__aeabi_d2iz, .{ .name = "__aeabi_d2iz", .linkage = linkage }); |
| 401 | |
| 402 | const __aeabi_fdiv = @import("compiler_rt/divsf3.zig").__aeabi_fdiv; |
| 403 | @export(__aeabi_fdiv, .{ .name = "__aeabi_fdiv", .linkage = linkage }); |
| 404 | const __aeabi_ddiv = @import("compiler_rt/divdf3.zig").__aeabi_ddiv; |
| 405 | @export(__aeabi_ddiv, .{ .name = "__aeabi_ddiv", .linkage = linkage }); |
| 406 | |
| 407 | const __aeabi_llsl = @import("compiler_rt/shift.zig").__aeabi_llsl; |
| 408 | @export(__aeabi_llsl, .{ .name = "__aeabi_llsl", .linkage = linkage }); |
| 409 | const __aeabi_lasr = @import("compiler_rt/shift.zig").__aeabi_lasr; |
| 410 | @export(__aeabi_lasr, .{ .name = "__aeabi_lasr", .linkage = linkage }); |
| 411 | const __aeabi_llsr = @import("compiler_rt/shift.zig").__aeabi_llsr; |
| 412 | @export(__aeabi_llsr, .{ .name = "__aeabi_llsr", .linkage = linkage }); |
| 413 | |
| 414 | const __aeabi_fcmpeq = @import("compiler_rt/compareXf2.zig").__aeabi_fcmpeq; |
| 415 | @export(__aeabi_fcmpeq, .{ .name = "__aeabi_fcmpeq", .linkage = linkage }); |
| 416 | const __aeabi_fcmplt = @import("compiler_rt/compareXf2.zig").__aeabi_fcmplt; |
| 417 | @export(__aeabi_fcmplt, .{ .name = "__aeabi_fcmplt", .linkage = linkage }); |
| 418 | const __aeabi_fcmple = @import("compiler_rt/compareXf2.zig").__aeabi_fcmple; |
| 419 | @export(__aeabi_fcmple, .{ .name = "__aeabi_fcmple", .linkage = linkage }); |
| 420 | const __aeabi_fcmpge = @import("compiler_rt/compareXf2.zig").__aeabi_fcmpge; |
| 421 | @export(__aeabi_fcmpge, .{ .name = "__aeabi_fcmpge", .linkage = linkage }); |
| 422 | const __aeabi_fcmpgt = @import("compiler_rt/compareXf2.zig").__aeabi_fcmpgt; |
| 423 | @export(__aeabi_fcmpgt, .{ .name = "__aeabi_fcmpgt", .linkage = linkage }); |
| 424 | const __aeabi_fcmpun = @import("compiler_rt/compareXf2.zig").__aeabi_fcmpun; |
| 425 | @export(__aeabi_fcmpun, .{ .name = "__aeabi_fcmpun", .linkage = linkage }); |
| 426 | |
| 427 | const __aeabi_dcmpeq = @import("compiler_rt/compareXf2.zig").__aeabi_dcmpeq; |
| 428 | @export(__aeabi_dcmpeq, .{ .name = "__aeabi_dcmpeq", .linkage = linkage }); |
| 429 | const __aeabi_dcmplt = @import("compiler_rt/compareXf2.zig").__aeabi_dcmplt; |
| 430 | @export(__aeabi_dcmplt, .{ .name = "__aeabi_dcmplt", .linkage = linkage }); |
| 431 | const __aeabi_dcmple = @import("compiler_rt/compareXf2.zig").__aeabi_dcmple; |
| 432 | @export(__aeabi_dcmple, .{ .name = "__aeabi_dcmple", .linkage = linkage }); |
| 433 | const __aeabi_dcmpge = @import("compiler_rt/compareXf2.zig").__aeabi_dcmpge; |
| 434 | @export(__aeabi_dcmpge, .{ .name = "__aeabi_dcmpge", .linkage = linkage }); |
| 435 | const __aeabi_dcmpgt = @import("compiler_rt/compareXf2.zig").__aeabi_dcmpgt; |
| 436 | @export(__aeabi_dcmpgt, .{ .name = "__aeabi_dcmpgt", .linkage = linkage }); |
| 437 | const __aeabi_dcmpun = @import("compiler_rt/compareXf2.zig").__aeabi_dcmpun; |
| 438 | @export(__aeabi_dcmpun, .{ .name = "__aeabi_dcmpun", .linkage = linkage }); |
| 275 | 439 | } |
| 276 | 440 | |
| 277 | 441 | if (arch == .i386 and abi == .msvc) { |
| 278 | 442 | // Don't let LLVM apply the stdcall name mangling on those MSVC builtins |
| 279 | | @export(@import("compiler_rt/aulldiv.zig")._alldiv, .{ .name = "\x01__alldiv", .linkage = strong_linkage }); |
| 280 | | @export(@import("compiler_rt/aulldiv.zig")._aulldiv, .{ .name = "\x01__aulldiv", .linkage = strong_linkage }); |
| 281 | | @export(@import("compiler_rt/aullrem.zig")._allrem, .{ .name = "\x01__allrem", .linkage = strong_linkage }); |
| 282 | | @export(@import("compiler_rt/aullrem.zig")._aullrem, .{ .name = "\x01__aullrem", .linkage = strong_linkage }); |
| 443 | const _alldiv = @import("compiler_rt/aulldiv.zig")._alldiv; |
| 444 | @export(_alldiv, .{ .name = "\x01__alldiv", .linkage = strong_linkage }); |
| 445 | const _aulldiv = @import("compiler_rt/aulldiv.zig")._aulldiv; |
| 446 | @export(_aulldiv, .{ .name = "\x01__aulldiv", .linkage = strong_linkage }); |
| 447 | const _allrem = @import("compiler_rt/aullrem.zig")._allrem; |
| 448 | @export(_allrem, .{ .name = "\x01__allrem", .linkage = strong_linkage }); |
| 449 | const _aullrem = @import("compiler_rt/aullrem.zig")._aullrem; |
| 450 | @export(_aullrem, .{ .name = "\x01__aullrem", .linkage = strong_linkage }); |
| 283 | 451 | } |
| 284 | 452 | |
| 285 | 453 | if (arch.isSPARC()) { |
| 286 | 454 | // SPARC systems use a different naming scheme |
| 287 | | @export(@import("compiler_rt/sparc.zig")._Qp_add, .{ .name = "_Qp_add", .linkage = linkage }); |
| 288 | | @export(@import("compiler_rt/sparc.zig")._Qp_div, .{ .name = "_Qp_div", .linkage = linkage }); |
| 289 | | @export(@import("compiler_rt/sparc.zig")._Qp_mul, .{ .name = "_Qp_mul", .linkage = linkage }); |
| 290 | | @export(@import("compiler_rt/sparc.zig")._Qp_sub, .{ .name = "_Qp_sub", .linkage = linkage }); |
| 291 | | |
| 292 | | @export(@import("compiler_rt/sparc.zig")._Qp_cmp, .{ .name = "_Qp_cmp", .linkage = linkage }); |
| 293 | | @export(@import("compiler_rt/sparc.zig")._Qp_feq, .{ .name = "_Qp_feq", .linkage = linkage }); |
| 294 | | @export(@import("compiler_rt/sparc.zig")._Qp_fne, .{ .name = "_Qp_fne", .linkage = linkage }); |
| 295 | | @export(@import("compiler_rt/sparc.zig")._Qp_flt, .{ .name = "_Qp_flt", .linkage = linkage }); |
| 296 | | @export(@import("compiler_rt/sparc.zig")._Qp_fle, .{ .name = "_Qp_fle", .linkage = linkage }); |
| 297 | | @export(@import("compiler_rt/sparc.zig")._Qp_fgt, .{ .name = "_Qp_fgt", .linkage = linkage }); |
| 298 | | @export(@import("compiler_rt/sparc.zig")._Qp_fge, .{ .name = "_Qp_fge", .linkage = linkage }); |
| 299 | | |
| 300 | | @export(@import("compiler_rt/sparc.zig")._Qp_itoq, .{ .name = "_Qp_itoq", .linkage = linkage }); |
| 301 | | @export(@import("compiler_rt/sparc.zig")._Qp_uitoq, .{ .name = "_Qp_uitoq", .linkage = linkage }); |
| 302 | | @export(@import("compiler_rt/sparc.zig")._Qp_xtoq, .{ .name = "_Qp_xtoq", .linkage = linkage }); |
| 303 | | @export(@import("compiler_rt/sparc.zig")._Qp_uxtoq, .{ .name = "_Qp_uxtoq", .linkage = linkage }); |
| 304 | | @export(@import("compiler_rt/sparc.zig")._Qp_stoq, .{ .name = "_Qp_stoq", .linkage = linkage }); |
| 305 | | @export(@import("compiler_rt/sparc.zig")._Qp_dtoq, .{ .name = "_Qp_dtoq", .linkage = linkage }); |
| 306 | | @export(@import("compiler_rt/sparc.zig")._Qp_qtoi, .{ .name = "_Qp_qtoi", .linkage = linkage }); |
| 307 | | @export(@import("compiler_rt/sparc.zig")._Qp_qtoui, .{ .name = "_Qp_qtoui", .linkage = linkage }); |
| 308 | | @export(@import("compiler_rt/sparc.zig")._Qp_qtox, .{ .name = "_Qp_qtox", .linkage = linkage }); |
| 309 | | @export(@import("compiler_rt/sparc.zig")._Qp_qtoux, .{ .name = "_Qp_qtoux", .linkage = linkage }); |
| 310 | | @export(@import("compiler_rt/sparc.zig")._Qp_qtos, .{ .name = "_Qp_qtos", .linkage = linkage }); |
| 311 | | @export(@import("compiler_rt/sparc.zig")._Qp_qtod, .{ .name = "_Qp_qtod", .linkage = linkage }); |
| 455 | const _Qp_add = @import("compiler_rt/sparc.zig")._Qp_add; |
| 456 | @export(_Qp_add, .{ .name = "_Qp_add", .linkage = linkage }); |
| 457 | const _Qp_div = @import("compiler_rt/sparc.zig")._Qp_div; |
| 458 | @export(_Qp_div, .{ .name = "_Qp_div", .linkage = linkage }); |
| 459 | const _Qp_mul = @import("compiler_rt/sparc.zig")._Qp_mul; |
| 460 | @export(_Qp_mul, .{ .name = "_Qp_mul", .linkage = linkage }); |
| 461 | const _Qp_sub = @import("compiler_rt/sparc.zig")._Qp_sub; |
| 462 | @export(_Qp_sub, .{ .name = "_Qp_sub", .linkage = linkage }); |
| 463 | |
| 464 | const _Qp_cmp = @import("compiler_rt/sparc.zig")._Qp_cmp; |
| 465 | @export(_Qp_cmp, .{ .name = "_Qp_cmp", .linkage = linkage }); |
| 466 | const _Qp_feq = @import("compiler_rt/sparc.zig")._Qp_feq; |
| 467 | @export(_Qp_feq, .{ .name = "_Qp_feq", .linkage = linkage }); |
| 468 | const _Qp_fne = @import("compiler_rt/sparc.zig")._Qp_fne; |
| 469 | @export(_Qp_fne, .{ .name = "_Qp_fne", .linkage = linkage }); |
| 470 | const _Qp_flt = @import("compiler_rt/sparc.zig")._Qp_flt; |
| 471 | @export(_Qp_flt, .{ .name = "_Qp_flt", .linkage = linkage }); |
| 472 | const _Qp_fle = @import("compiler_rt/sparc.zig")._Qp_fle; |
| 473 | @export(_Qp_fle, .{ .name = "_Qp_fle", .linkage = linkage }); |
| 474 | const _Qp_fgt = @import("compiler_rt/sparc.zig")._Qp_fgt; |
| 475 | @export(_Qp_fgt, .{ .name = "_Qp_fgt", .linkage = linkage }); |
| 476 | const _Qp_fge = @import("compiler_rt/sparc.zig")._Qp_fge; |
| 477 | @export(_Qp_fge, .{ .name = "_Qp_fge", .linkage = linkage }); |
| 478 | |
| 479 | const _Qp_itoq = @import("compiler_rt/sparc.zig")._Qp_itoq; |
| 480 | @export(_Qp_itoq, .{ .name = "_Qp_itoq", .linkage = linkage }); |
| 481 | const _Qp_uitoq = @import("compiler_rt/sparc.zig")._Qp_uitoq; |
| 482 | @export(_Qp_uitoq, .{ .name = "_Qp_uitoq", .linkage = linkage }); |
| 483 | const _Qp_xtoq = @import("compiler_rt/sparc.zig")._Qp_xtoq; |
| 484 | @export(_Qp_xtoq, .{ .name = "_Qp_xtoq", .linkage = linkage }); |
| 485 | const _Qp_uxtoq = @import("compiler_rt/sparc.zig")._Qp_uxtoq; |
| 486 | @export(_Qp_uxtoq, .{ .name = "_Qp_uxtoq", .linkage = linkage }); |
| 487 | const _Qp_stoq = @import("compiler_rt/sparc.zig")._Qp_stoq; |
| 488 | @export(_Qp_stoq, .{ .name = "_Qp_stoq", .linkage = linkage }); |
| 489 | const _Qp_dtoq = @import("compiler_rt/sparc.zig")._Qp_dtoq; |
| 490 | @export(_Qp_dtoq, .{ .name = "_Qp_dtoq", .linkage = linkage }); |
| 491 | const _Qp_qtoi = @import("compiler_rt/sparc.zig")._Qp_qtoi; |
| 492 | @export(_Qp_qtoi, .{ .name = "_Qp_qtoi", .linkage = linkage }); |
| 493 | const _Qp_qtoui = @import("compiler_rt/sparc.zig")._Qp_qtoui; |
| 494 | @export(_Qp_qtoui, .{ .name = "_Qp_qtoui", .linkage = linkage }); |
| 495 | const _Qp_qtox = @import("compiler_rt/sparc.zig")._Qp_qtox; |
| 496 | @export(_Qp_qtox, .{ .name = "_Qp_qtox", .linkage = linkage }); |
| 497 | const _Qp_qtoux = @import("compiler_rt/sparc.zig")._Qp_qtoux; |
| 498 | @export(_Qp_qtoux, .{ .name = "_Qp_qtoux", .linkage = linkage }); |
| 499 | const _Qp_qtos = @import("compiler_rt/sparc.zig")._Qp_qtos; |
| 500 | @export(_Qp_qtos, .{ .name = "_Qp_qtos", .linkage = linkage }); |
| 501 | const _Qp_qtod = @import("compiler_rt/sparc.zig")._Qp_qtod; |
| 502 | @export(_Qp_qtod, .{ .name = "_Qp_qtod", .linkage = linkage }); |
| 312 | 503 | } |
| 313 | 504 | |
| 314 | 505 | if ((arch == .powerpc or arch.isPPC64()) and !is_test) { |
| 315 | | @export(@import("compiler_rt/addXf3.zig").__addtf3, .{ .name = "__addkf3", .linkage = linkage }); |
| 316 | | @export(@import("compiler_rt/addXf3.zig").__subtf3, .{ .name = "__subkf3", .linkage = linkage }); |
| 317 | | @export(@import("compiler_rt/mulXf3.zig").__multf3, .{ .name = "__mulkf3", .linkage = linkage }); |
| 318 | | @export(@import("compiler_rt/divtf3.zig").__divtf3, .{ .name = "__divkf3", .linkage = linkage }); |
| 319 | | @export(@import("compiler_rt/extendXfYf2.zig").__extendsftf2, .{ .name = "__extendsfkf2", .linkage = linkage }); |
| 320 | | @export(@import("compiler_rt/extendXfYf2.zig").__extenddftf2, .{ .name = "__extenddfkf2", .linkage = linkage }); |
| 321 | | @export(@import("compiler_rt/truncXfYf2.zig").__trunctfsf2, .{ .name = "__trunckfsf2", .linkage = linkage }); |
| 322 | | @export(@import("compiler_rt/truncXfYf2.zig").__trunctfdf2, .{ .name = "__trunckfdf2", .linkage = linkage }); |
| 323 | | @export(@import("compiler_rt/fixtfdi.zig").__fixtfdi, .{ .name = "__fixkfdi", .linkage = linkage }); |
| 324 | | @export(@import("compiler_rt/fixtfsi.zig").__fixtfsi, .{ .name = "__fixkfsi", .linkage = linkage }); |
| 325 | | @export(@import("compiler_rt/fixunstfsi.zig").__fixunstfsi, .{ .name = "__fixunskfsi", .linkage = linkage }); |
| 326 | | @export(@import("compiler_rt/fixunstfdi.zig").__fixunstfdi, .{ .name = "__fixunskfdi", .linkage = linkage }); |
| 327 | | @export(@import("compiler_rt/floatsiXf.zig").__floatsitf, .{ .name = "__floatsikf", .linkage = linkage }); |
| 328 | | @export(@import("compiler_rt/floatditf.zig").__floatditf, .{ .name = "__floatdikf", .linkage = linkage }); |
| 329 | | @export(@import("compiler_rt/floatunditf.zig").__floatunditf, .{ .name = "__floatundikf", .linkage = linkage }); |
| 330 | | @export(@import("compiler_rt/floatunsitf.zig").__floatunsitf, .{ .name = "__floatunsikf", .linkage = linkage }); |
| 331 | | |
| 332 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__eqkf2", .linkage = linkage }); |
| 333 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__nekf2", .linkage = linkage }); |
| 334 | | @export(@import("compiler_rt/compareXf2.zig").__getf2, .{ .name = "__gekf2", .linkage = linkage }); |
| 335 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__ltkf2", .linkage = linkage }); |
| 336 | | @export(@import("compiler_rt/compareXf2.zig").__letf2, .{ .name = "__lekf2", .linkage = linkage }); |
| 337 | | @export(@import("compiler_rt/compareXf2.zig").__getf2, .{ .name = "__gtkf2", .linkage = linkage }); |
| 338 | | @export(@import("compiler_rt/compareXf2.zig").__unordtf2, .{ .name = "__unordkf2", .linkage = linkage }); |
| 506 | @export(__addtf3, .{ .name = "__addkf3", .linkage = linkage }); |
| 507 | @export(__subtf3, .{ .name = "__subkf3", .linkage = linkage }); |
| 508 | @export(__multf3, .{ .name = "__mulkf3", .linkage = linkage }); |
| 509 | @export(__divtf3, .{ .name = "__divkf3", .linkage = linkage }); |
| 510 | @export(__extendsftf2, .{ .name = "__extendsfkf2", .linkage = linkage }); |
| 511 | @export(__extenddftf2, .{ .name = "__extenddfkf2", .linkage = linkage }); |
| 512 | @export(__trunctfsf2, .{ .name = "__trunckfsf2", .linkage = linkage }); |
| 513 | @export(__trunctfdf2, .{ .name = "__trunckfdf2", .linkage = linkage }); |
| 514 | @export(__fixtfdi, .{ .name = "__fixkfdi", .linkage = linkage }); |
| 515 | @export(__fixtfsi, .{ .name = "__fixkfsi", .linkage = linkage }); |
| 516 | @export(__fixunstfsi, .{ .name = "__fixunskfsi", .linkage = linkage }); |
| 517 | @export(__fixunstfdi, .{ .name = "__fixunskfdi", .linkage = linkage }); |
| 518 | @export(__floatsitf, .{ .name = "__floatsikf", .linkage = linkage }); |
| 519 | @export(__floatditf, .{ .name = "__floatdikf", .linkage = linkage }); |
| 520 | @export(__floatunditf, .{ .name = "__floatundikf", .linkage = linkage }); |
| 521 | @export(__floatunsitf, .{ .name = "__floatunsikf", .linkage = linkage }); |
| 522 | |
| 523 | @export(__letf2, .{ .name = "__eqkf2", .linkage = linkage }); |
| 524 | @export(__letf2, .{ .name = "__nekf2", .linkage = linkage }); |
| 525 | @export(__getf2, .{ .name = "__gekf2", .linkage = linkage }); |
| 526 | @export(__letf2, .{ .name = "__ltkf2", .linkage = linkage }); |
| 527 | @export(__letf2, .{ .name = "__lekf2", .linkage = linkage }); |
| 528 | @export(__getf2, .{ .name = "__gtkf2", .linkage = linkage }); |
| 529 | @export(__unordtf2, .{ .name = "__unordkf2", .linkage = linkage }); |
| 339 | 530 | } |
| 340 | 531 | |
| 341 | 532 | if (builtin.os.tag == .windows) { |
| 342 | 533 | // Default stack-probe functions emitted by LLVM |
| 343 | 534 | if (is_mingw) { |
| 344 | | @export(@import("compiler_rt/stack_probe.zig")._chkstk, .{ .name = "_alloca", .linkage = strong_linkage }); |
| 345 | | @export(@import("compiler_rt/stack_probe.zig").___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = strong_linkage }); |
| 535 | const _chkstk = @import("compiler_rt/stack_probe.zig")._chkstk; |
| 536 | @export(_chkstk, .{ .name = "_alloca", .linkage = strong_linkage }); |
| 537 | const ___chkstk_ms = @import("compiler_rt/stack_probe.zig").___chkstk_ms; |
| 538 | @export(___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = strong_linkage }); |
| 346 | 539 | } else if (!builtin.link_libc) { |
| 347 | 540 | // This symbols are otherwise exported by MSVCRT.lib |
| 348 | | @export(@import("compiler_rt/stack_probe.zig")._chkstk, .{ .name = "_chkstk", .linkage = strong_linkage }); |
| 349 | | @export(@import("compiler_rt/stack_probe.zig").__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage }); |
| 541 | const _chkstk = @import("compiler_rt/stack_probe.zig")._chkstk; |
| 542 | @export(_chkstk, .{ .name = "_chkstk", .linkage = strong_linkage }); |
| 543 | const __chkstk = @import("compiler_rt/stack_probe.zig").__chkstk; |
| 544 | @export(__chkstk, .{ .name = "__chkstk", .linkage = strong_linkage }); |
| 350 | 545 | } |
| 351 | 546 | |
| 352 | 547 | switch (arch) { |
| 353 | 548 | .i386 => { |
| 354 | | @export(@import("compiler_rt/divti3.zig").__divti3, .{ .name = "__divti3", .linkage = linkage }); |
| 355 | | @export(@import("compiler_rt/modti3.zig").__modti3, .{ .name = "__modti3", .linkage = linkage }); |
| 356 | | @export(@import("compiler_rt/multi3.zig").__multi3, .{ .name = "__multi3", .linkage = linkage }); |
| 357 | | @export(@import("compiler_rt/udivti3.zig").__udivti3, .{ .name = "__udivti3", .linkage = linkage }); |
| 358 | | @export(@import("compiler_rt/udivmodti4.zig").__udivmodti4, .{ .name = "__udivmodti4", .linkage = linkage }); |
| 359 | | @export(@import("compiler_rt/umodti3.zig").__umodti3, .{ .name = "__umodti3", .linkage = linkage }); |
| 549 | const __divti3 = @import("compiler_rt/divti3.zig").__divti3; |
| 550 | @export(__divti3, .{ .name = "__divti3", .linkage = linkage }); |
| 551 | const __modti3 = @import("compiler_rt/modti3.zig").__modti3; |
| 552 | @export(__modti3, .{ .name = "__modti3", .linkage = linkage }); |
| 553 | const __multi3 = @import("compiler_rt/multi3.zig").__multi3; |
| 554 | @export(__multi3, .{ .name = "__multi3", .linkage = linkage }); |
| 555 | const __udivti3 = @import("compiler_rt/udivti3.zig").__udivti3; |
| 556 | @export(__udivti3, .{ .name = "__udivti3", .linkage = linkage }); |
| 557 | const __udivmodti4 = @import("compiler_rt/udivmodti4.zig").__udivmodti4; |
| 558 | @export(__udivmodti4, .{ .name = "__udivmodti4", .linkage = linkage }); |
| 559 | const __umodti3 = @import("compiler_rt/umodti3.zig").__umodti3; |
| 560 | @export(__umodti3, .{ .name = "__umodti3", .linkage = linkage }); |
| 360 | 561 | }, |
| 361 | 562 | .x86_64 => { |
| 362 | 563 | // The "ti" functions must use Vector(2, u64) parameter types to adhere to the ABI |
| 363 | 564 | // that LLVM expects compiler-rt to have. |
| 364 | | @export(@import("compiler_rt/divti3.zig").__divti3_windows_x86_64, .{ .name = "__divti3", .linkage = linkage }); |
| 365 | | @export(@import("compiler_rt/modti3.zig").__modti3_windows_x86_64, .{ .name = "__modti3", .linkage = linkage }); |
| 366 | | @export(@import("compiler_rt/multi3.zig").__multi3_windows_x86_64, .{ .name = "__multi3", .linkage = linkage }); |
| 367 | | @export(@import("compiler_rt/udivti3.zig").__udivti3_windows_x86_64, .{ .name = "__udivti3", .linkage = linkage }); |
| 368 | | @export(@import("compiler_rt/udivmodti4.zig").__udivmodti4_windows_x86_64, .{ .name = "__udivmodti4", .linkage = linkage }); |
| 369 | | @export(@import("compiler_rt/umodti3.zig").__umodti3_windows_x86_64, .{ .name = "__umodti3", .linkage = linkage }); |
| 565 | const __divti3_windows_x86_64 = @import("compiler_rt/divti3.zig").__divti3_windows_x86_64; |
| 566 | @export(__divti3_windows_x86_64, .{ .name = "__divti3", .linkage = linkage }); |
| 567 | const __modti3_windows_x86_64 = @import("compiler_rt/modti3.zig").__modti3_windows_x86_64; |
| 568 | @export(__modti3_windows_x86_64, .{ .name = "__modti3", .linkage = linkage }); |
| 569 | const __multi3_windows_x86_64 = @import("compiler_rt/multi3.zig").__multi3_windows_x86_64; |
| 570 | @export(__multi3_windows_x86_64, .{ .name = "__multi3", .linkage = linkage }); |
| 571 | const __udivti3_windows_x86_64 = @import("compiler_rt/udivti3.zig").__udivti3_windows_x86_64; |
| 572 | @export(__udivti3_windows_x86_64, .{ .name = "__udivti3", .linkage = linkage }); |
| 573 | const __udivmodti4_windows_x86_64 = @import("compiler_rt/udivmodti4.zig").__udivmodti4_windows_x86_64; |
| 574 | @export(__udivmodti4_windows_x86_64, .{ .name = "__udivmodti4", .linkage = linkage }); |
| 575 | const __umodti3_windows_x86_64 = @import("compiler_rt/umodti3.zig").__umodti3_windows_x86_64; |
| 576 | @export(__umodti3_windows_x86_64, .{ .name = "__umodti3", .linkage = linkage }); |
| 370 | 577 | }, |
| 371 | 578 | else => {}, |
| 372 | 579 | } |
| 373 | 580 | } else { |
| 374 | | @export(@import("compiler_rt/divti3.zig").__divti3, .{ .name = "__divti3", .linkage = linkage }); |
| 375 | | @export(@import("compiler_rt/modti3.zig").__modti3, .{ .name = "__modti3", .linkage = linkage }); |
| 376 | | @export(@import("compiler_rt/multi3.zig").__multi3, .{ .name = "__multi3", .linkage = linkage }); |
| 377 | | @export(@import("compiler_rt/udivti3.zig").__udivti3, .{ .name = "__udivti3", .linkage = linkage }); |
| 378 | | @export(@import("compiler_rt/udivmodti4.zig").__udivmodti4, .{ .name = "__udivmodti4", .linkage = linkage }); |
| 379 | | @export(@import("compiler_rt/umodti3.zig").__umodti3, .{ .name = "__umodti3", .linkage = linkage }); |
| 581 | const __divti3 = @import("compiler_rt/divti3.zig").__divti3; |
| 582 | @export(__divti3, .{ .name = "__divti3", .linkage = linkage }); |
| 583 | const __modti3 = @import("compiler_rt/modti3.zig").__modti3; |
| 584 | @export(__modti3, .{ .name = "__modti3", .linkage = linkage }); |
| 585 | const __multi3 = @import("compiler_rt/multi3.zig").__multi3; |
| 586 | @export(__multi3, .{ .name = "__multi3", .linkage = linkage }); |
| 587 | const __udivti3 = @import("compiler_rt/udivti3.zig").__udivti3; |
| 588 | @export(__udivti3, .{ .name = "__udivti3", .linkage = linkage }); |
| 589 | const __udivmodti4 = @import("compiler_rt/udivmodti4.zig").__udivmodti4; |
| 590 | @export(__udivmodti4, .{ .name = "__udivmodti4", .linkage = linkage }); |
| 591 | const __umodti3 = @import("compiler_rt/umodti3.zig").__umodti3; |
| 592 | @export(__umodti3, .{ .name = "__umodti3", .linkage = linkage }); |
| 380 | 593 | } |
| 381 | | @export(@import("compiler_rt/muloti4.zig").__muloti4, .{ .name = "__muloti4", .linkage = linkage }); |
| 382 | | @export(@import("compiler_rt/mulodi4.zig").__mulodi4, .{ .name = "__mulodi4", .linkage = linkage }); |
| 594 | const __muloti4 = @import("compiler_rt/muloti4.zig").__muloti4; |
| 595 | @export(__muloti4, .{ .name = "__muloti4", .linkage = linkage }); |
| 596 | const __mulodi4 = @import("compiler_rt/mulodi4.zig").__mulodi4; |
| 597 | @export(__mulodi4, .{ .name = "__mulodi4", .linkage = linkage }); |
| 383 | 598 | } |
| 384 | 599 | |
| 385 | 600 | pub usingnamespace @import("compiler_rt/atomics.zig"); |