Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison test/CodeGen/AArch64/fcvt-int.ll @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | 54457678186b |
children |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
147 %res = bitcast i64 %in to double | 147 %res = bitcast i64 %in to double |
148 ; CHECK: fmov {{d[0-9]+}}, {{x[0-9]+}} | 148 ; CHECK: fmov {{d[0-9]+}}, {{x[0-9]+}} |
149 ret double %res | 149 ret double %res |
150 | 150 |
151 } | 151 } |
152 | |
153 define double @bitcast_fabs(double %x) { | |
154 ; CHECK-LABEL: bitcast_fabs: | |
155 ; CHECK: ; BB#0: | |
156 ; CHECK-NEXT: fabs d0, d0 | |
157 ; CHECK-NEXT: ret | |
158 ; | |
159 %bc1 = bitcast double %x to i64 | |
160 %and = and i64 %bc1, 9223372036854775807 | |
161 %bc2 = bitcast i64 %and to double | |
162 ret double %bc2 | |
163 } | |
164 | |
165 define float @bitcast_fneg(float %x) { | |
166 ; CHECK-LABEL: bitcast_fneg: | |
167 ; CHECK: ; BB#0: | |
168 ; CHECK-NEXT: fneg s0, s0 | |
169 ; CHECK-NEXT: ret | |
170 ; | |
171 %bc1 = bitcast float %x to i32 | |
172 %xor = xor i32 %bc1, 2147483648 | |
173 %bc2 = bitcast i32 %xor to float | |
174 ret float %bc2 | |
175 } | |
176 |