summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorgkoehler <gkoehler@openbsd.org>2020-08-14 18:57:06 +0000
committergkoehler <gkoehler@openbsd.org>2020-08-14 18:57:06 +0000
commit3abf65ea30ec5d5c6c02be19947ca3cc9d2899c8 (patch)
tree3e21087b2d95ef46ac8c145f11b5530d82ed8923 /gnu
parentRe-commit Exar XR17V35x serial port support previously backed out: (diff)
downloadwireguard-openbsd-3abf65ea30ec5d5c6c02be19947ca3cc9d2899c8.tar.xz
wireguard-openbsd-3abf65ea30ec5d5c6c02be19947ca3cc9d2899c8.zip
Remove local change to fix powerpc floating-point alignment
LLVM 10 includes a different fix (https://reviews.llvm.org/D71954), so this change (by kettenis on 2019-02-18) is no longer needed. Thanks to Brad Smith for providing the removal diff. ok kettenis@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.cpp8
-rw-r--r--gnu/llvm/llvm/lib/Target/PowerPC/PPCSubtarget.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/gnu/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/gnu/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index abbd94b55f0..b10490e3a1f 100644
--- a/gnu/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/gnu/llvm/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -15299,14 +15299,6 @@ bool PPCTargetLowering::allowsMisalignedMemoryAccesses(EVT VT,
if (VT == MVT::ppcf128)
return false;
- if (Subtarget.isTargetOpenBSD()) {
- // Traditional PowerPC does not support unaligned memory access
- // for floating-point and the OpenBSD kernel does not emulate
- // all possible floating-point load and store instructions.
- if (VT == MVT::f32 || VT == MVT::f64)
- return false;
- }
-
if (Fast)
*Fast = true;
diff --git a/gnu/llvm/llvm/lib/Target/PowerPC/PPCSubtarget.h b/gnu/llvm/llvm/lib/Target/PowerPC/PPCSubtarget.h
index 05506b3437f..044e982740e 100644
--- a/gnu/llvm/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/gnu/llvm/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -320,7 +320,6 @@ public:
bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
bool isTargetMachO() const { return TargetTriple.isOSBinFormatMachO(); }
bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
- bool isTargetOpenBSD() const { return TargetTriple.isOSOpenBSD(); }
bool isDarwinABI() const { return isTargetMachO() || isDarwin(); }
bool isAIXABI() const { return TargetTriple.isOSAIX(); }