aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/target.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-29 03:45:15 -0500
committerGitHub <noreply@github.com>2022-01-29 03:45:15 -0500
commit225910f9341fbc725ff5e0d2c653e29bc2f21cb8 (patch)
treeeac47d40ae555398c46e4ccdff9cace12eeabd3b /src/stage1/target.cpp
parent63ee6e662582ee75ac804eb1a4dbdf4457b8f2d0 (diff)
parenta0a71709bc2104c708f045fbb42c6247aff136ac (diff)
downloadzig-225910f9341fbc725ff5e0d2c653e29bc2f21cb8.tar.gz
zig-225910f9341fbc725ff5e0d2c653e29bc2f21cb8.zip
Merge pull request #10639 from Vexu/f80
Add f80
Diffstat (limited to 'src/stage1/target.cpp')
-rw-r--r--src/stage1/target.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stage1/target.cpp b/src/stage1/target.cpp
index feb2c7f143..a505b4bd21 100644
--- a/src/stage1/target.cpp
+++ b/src/stage1/target.cpp
@@ -1019,6 +1019,17 @@ bool target_long_double_is_f128(const ZigTarget *target) {
}
}
+bool target_has_f80(const ZigTarget *target) {
+ switch (target->arch) {
+ case ZigLLVM_x86:
+ case ZigLLVM_x86_64:
+ return true;
+
+ default:
+ return false;
+ }
+}
+
bool target_is_riscv(const ZigTarget *target) {
return target->arch == ZigLLVM_riscv32 || target->arch == ZigLLVM_riscv64;
}