]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
1 | .text |
2 | .file "cbrt.c" | |
3 | .section .text.cbrtl,"ax",@progbits | |
4 | .hidden cbrtl # -- Begin function cbrtl | |
5 | .globl cbrtl | |
6 | .type cbrtl,@function | |
7 | cbrtl: # @cbrtl | |
8 | .param f64 | |
9 | .result f64 | |
10 | .local i64, i32, i32, f64, f64, i32 | |
11 | # BB#0: # %entry | |
12 | i32.const $push59=, 0 | |
13 | i32.load $push58=, __stack_pointer($pop59) | |
14 | i32.const $push60=, 16 | |
15 | i32.sub $push68=, $pop58, $pop60 | |
16 | tee_local $push67=, $6=, $pop68 | |
17 | f64.store 0($pop67), $0 | |
18 | i64.const $push0=, 0 | |
19 | i64.store 8($6), $pop0 | |
20 | block | |
21 | i64.reinterpret/f64 $push66=, $0 | |
22 | tee_local $push65=, $1=, $pop66 | |
23 | i64.const $push1=, 32 | |
24 | i64.shr_u $push2=, $pop65, $pop1 | |
25 | i32.wrap/i64 $push64=, $pop2 | |
26 | tee_local $push63=, $3=, $pop64 | |
27 | i32.const $push4=, 2147483647 | |
28 | i32.and $push62=, $pop63, $pop4 | |
29 | tee_local $push61=, $2=, $pop62 | |
30 | i32.const $push5=, 2146435072 | |
31 | i32.lt_u $push6=, $pop61, $pop5 | |
32 | br_if 0, $pop6 # 0: down to label0 | |
33 | # BB#1: # %if.then | |
34 | f64.add $push69=, $0, $0 | |
35 | return $pop69 | |
36 | .LBB0_2: # %if.end | |
37 | end_block # label0: | |
38 | block | |
39 | i32.wrap/i64 $push7=, $1 | |
40 | i32.or $push8=, $2, $pop7 | |
41 | i32.eqz $push89=, $pop8 | |
42 | br_if 0, $pop89 # 0: down to label1 | |
43 | # BB#3: # %if.end13 | |
44 | i32.const $push3=, -2147483648 | |
45 | i32.and $3=, $3, $pop3 | |
46 | i32.store 4($6), $2 | |
47 | block | |
48 | block | |
49 | i32.const $push9=, 1048575 | |
50 | i32.gt_u $push10=, $2, $pop9 | |
51 | br_if 0, $pop10 # 0: down to label3 | |
52 | # BB#4: # %if.then18 | |
53 | i32.const $push14=, 1129316352 | |
54 | i32.store 12($6), $pop14 | |
55 | f64.load $push15=, 8($6) | |
56 | f64.mul $push71=, $pop15, $0 | |
57 | tee_local $push70=, $5=, $pop71 | |
58 | f64.store 8($6), $pop70 | |
59 | i64.reinterpret/f64 $push16=, $5 | |
60 | i64.const $push17=, 32 | |
61 | i64.shr_u $push18=, $pop16, $pop17 | |
62 | i32.wrap/i64 $push19=, $pop18 | |
63 | i32.const $push20=, 3 | |
64 | i32.div_u $push21=, $pop19, $pop20 | |
65 | i32.const $push22=, 696219795 | |
66 | i32.add $2=, $pop21, $pop22 | |
67 | br 1 # 1: down to label2 | |
68 | .LBB0_5: # %if.else | |
69 | end_block # label3: | |
70 | i32.const $push11=, 3 | |
71 | i32.div_u $push12=, $2, $pop11 | |
72 | i32.const $push13=, 715094163 | |
73 | i32.add $2=, $pop12, $pop13 | |
74 | .LBB0_6: # %if.end31 | |
75 | end_block # label2: | |
76 | i32.store 12($6), $2 | |
77 | f64.load $push88=, 8($6) | |
78 | tee_local $push87=, $5=, $pop88 | |
79 | f64.const $push32=, 0x1.9b6db6db6db6ep0 | |
80 | f64.mul $push23=, $5, $5 | |
81 | f64.load $push86=, 0($6) | |
82 | tee_local $push85=, $4=, $pop86 | |
83 | f64.div $push24=, $pop23, $pop85 | |
84 | f64.mul $push25=, $5, $pop24 | |
85 | f64.const $push26=, 0x1.15f15f15f15f1p-1 | |
86 | f64.add $push84=, $pop25, $pop26 | |
87 | tee_local $push83=, $5=, $pop84 | |
88 | f64.const $push29=, 0x1.6a0ea0ea0ea0fp0 | |
89 | f64.add $push30=, $pop83, $pop29 | |
90 | f64.const $push27=, -0x1.691de2532c834p-1 | |
91 | f64.div $push28=, $pop27, $5 | |
92 | f64.add $push31=, $pop30, $pop28 | |
93 | f64.div $push33=, $pop32, $pop31 | |
94 | f64.const $push34=, 0x1.6db6db6db6db7p-2 | |
95 | f64.add $push35=, $pop33, $pop34 | |
96 | f64.mul $push82=, $pop87, $pop35 | |
97 | tee_local $push81=, $5=, $pop82 | |
98 | f64.store 8($6), $pop81 | |
99 | i32.const $push36=, 0 | |
100 | i32.store 8($6), $pop36 | |
101 | i64.reinterpret/f64 $push37=, $5 | |
102 | i64.const $push38=, 32 | |
103 | i64.shr_u $push39=, $pop37, $pop38 | |
104 | i32.wrap/i64 $push40=, $pop39 | |
105 | i32.const $push41=, 1 | |
106 | i32.add $push42=, $pop40, $pop41 | |
107 | i32.store 12($6), $pop42 | |
108 | f64.load $push80=, 8($6) | |
109 | tee_local $push79=, $5=, $pop80 | |
110 | f64.mul $push43=, $5, $5 | |
111 | f64.div $push78=, $4, $pop43 | |
112 | tee_local $push77=, $4=, $pop78 | |
113 | f64.sub $push46=, $pop77, $5 | |
114 | f64.add $push44=, $5, $5 | |
115 | f64.add $push45=, $pop44, $4 | |
116 | f64.div $push47=, $pop46, $pop45 | |
117 | f64.mul $push48=, $5, $pop47 | |
118 | f64.add $push76=, $pop79, $pop48 | |
119 | tee_local $push75=, $5=, $pop76 | |
120 | f64.store 8($6), $pop75 | |
121 | i64.reinterpret/f64 $push49=, $5 | |
122 | i64.const $push74=, 32 | |
123 | i64.shr_u $push50=, $pop49, $pop74 | |
124 | i32.wrap/i64 $push51=, $pop50 | |
125 | i32.or $push52=, $3, $pop51 | |
126 | i32.store 12($6), $pop52 | |
127 | f64.load $push73=, 8($6) | |
128 | tee_local $push72=, $5=, $pop73 | |
129 | f64.mul $push53=, $5, $5 | |
130 | f64.div $push54=, $0, $pop53 | |
131 | f64.sub $push55=, $5, $pop54 | |
132 | f64.const $push56=, -0x1.5555555555555p-2 | |
133 | f64.mul $push57=, $pop55, $pop56 | |
134 | f64.add $0=, $pop72, $pop57 | |
135 | .LBB0_7: # %cleanup | |
136 | end_block # label1: | |
137 | copy_local $push90=, $0 | |
138 | # fallthrough-return: $pop90 | |
139 | .endfunc | |
140 | .Lfunc_end0: | |
141 | .size cbrtl, .Lfunc_end0-cbrtl | |
142 | # -- End function | |
143 | .section .text.main,"ax",@progbits | |
144 | .hidden main # -- Begin function main | |
145 | .globl main | |
146 | .type main,@function | |
147 | main: # @main | |
148 | .result i32 | |
149 | # BB#0: # %if.end | |
150 | i32.const $push0=, 0 | |
151 | call exit@FUNCTION, $pop0 | |
152 | unreachable | |
153 | .endfunc | |
154 | .Lfunc_end1: | |
155 | .size main, .Lfunc_end1-main | |
156 | # -- End function | |
157 | ||
158 | .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)" | |
159 | .functype exit, void, i32 |