summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-07-08 05:04:38 +0000
committervisa <visa@openbsd.org>2019-07-08 05:04:38 +0000
commit8f05d8533ea8eed23c7119ca1b6dc65faf92bccf (patch)
tree2b8c9671140ff728b14cd41e296e52cd1e4016e6 /gnu/llvm/lib
parentremove duplicate hdmi.h include (diff)
downloadwireguard-openbsd-8f05d8533ea8eed23c7119ca1b6dc65faf92bccf.tar.xz
wireguard-openbsd-8f05d8533ea8eed23c7119ca1b6dc65faf92bccf.zip
Fix instruction guard. This prevents the compiler from using
the MIPS64 mul instruction on pre-MIPS64 subtargets.
Diffstat (limited to 'gnu/llvm/lib')
-rw-r--r--gnu/llvm/lib/Target/Mips/Mips64InstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/llvm/lib/Target/Mips/Mips64InstrInfo.td b/gnu/llvm/lib/Target/Mips/Mips64InstrInfo.td
index 52b58124d6f..69b773416b5 100644
--- a/gnu/llvm/lib/Target/Mips/Mips64InstrInfo.td
+++ b/gnu/llvm/lib/Target/Mips/Mips64InstrInfo.td
@@ -845,7 +845,7 @@ def : MipsPat<(i64 (sext (i32 (sub GPR32:$src, GPR32:$src2)))),
(SUBu GPR32:$src, GPR32:$src2), sub_32)>;
def : MipsPat<(i64 (sext (i32 (mul GPR32:$src, GPR32:$src2)))),
(INSERT_SUBREG (i64 (IMPLICIT_DEF)),
- (MUL GPR32:$src, GPR32:$src2), sub_32)>, ISA_MIPS3_NOT_32R6_64R6;
+ (MUL GPR32:$src, GPR32:$src2), sub_32)>, ISA_MIPS32_NOT_32R6_64R6;
def : MipsPat<(i64 (sext (i32 (MipsMFHI ACC64:$src)))),
(INSERT_SUBREG (i64 (IMPLICIT_DEF)),
(PseudoMFHI ACC64:$src), sub_32)>;