| ... | ... | @@ -5218,6 +5218,7 @@ pub const FuncGen = struct { |
| 5218 | 5218 | |
| 5219 | 5219 | const ty = self.air.typeOfIndex(inst); |
| 5220 | 5220 | const llvm_ty = try self.dg.llvmType(ty); |
| 5221 | const scalar_ty = ty.scalarType(); |
| 5221 | 5222 | const target = self.dg.module.getTarget(); |
| 5222 | 5223 | |
| 5223 | 5224 | const Strat = union(enum) { |
| ... | ... | @@ -5225,11 +5226,6 @@ pub const FuncGen = struct { |
| 5225 | 5226 | libc: [*:0]const u8, |
| 5226 | 5227 | }; |
| 5227 | 5228 | |
| 5228 | | const scalar_ty = if (ty.zigTypeTag() == .Vector) |
| 5229 | | ty.elemType() |
| 5230 | | else |
| 5231 | | ty; |
| 5232 | | |
| 5233 | 5229 | const strat: Strat = switch (scalar_ty.floatBits(target)) { |
| 5234 | 5230 | 16, 32, 64 => Strat.intrinsic, |
| 5235 | 5231 | 80 => if (CType.longdouble.sizeInBits(target) == 80) Strat{ .intrinsic = {} } else Strat{ .libc = "__fmax" }, |