devel/llvm1[123]: Fix VIA PadLock xstore

Pull in the code gen portion of upstream LLVM's 2d8c18fbbdd1.

MFH:		2021Q4
Sponsored by:	DARPA
This commit is contained in:
Brooks Davis 2021-10-28 19:48:53 +01:00
parent d6cffd5d1e
commit 0cb1a5fe81
6 changed files with 36 additions and 3 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= llvm
DISTVERSION= 11.0.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}

View File

@ -0,0 +1,11 @@
--- lib/Target/X86/X86InstrSystem.td.orig
+++ lib/Target/X86/X86InstrSystem.td
@@ -573,7 +573,7 @@
//===----------------------------------------------------------------------===//
// VIA PadLock crypto instructions
let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
- def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP;
+ def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
def : InstAlias<"xstorerng", (XSTORE)>;

View File

@ -1,6 +1,6 @@
PORTNAME= llvm
DISTVERSION= 12.0.1
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}

View File

@ -0,0 +1,11 @@
--- llvm/lib/Target/X86/X86InstrSystem.td.orig
+++ llvm/lib/Target/X86/X86InstrSystem.td
@@ -585,7 +585,7 @@
//===----------------------------------------------------------------------===//
// VIA PadLock crypto instructions
let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
- def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP;
+ def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
def : InstAlias<"xstorerng", (XSTORE)>;

View File

@ -1,6 +1,6 @@
PORTNAME= llvm
DISTVERSION= 13.0.0
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR}

View File

@ -0,0 +1,11 @@
--- llvm/lib/Target/X86/X86InstrSystem.td.orig
+++ llvm/lib/Target/X86/X86InstrSystem.td
@@ -585,7 +585,7 @@
//===----------------------------------------------------------------------===//
// VIA PadLock crypto instructions
let Defs = [RAX, RDI], Uses = [RDX, RDI], SchedRW = [WriteSystem] in
- def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB, REP;
+ def XSTORE : I<0xa7, MRM_C0, (outs), (ins), "xstore", []>, TB;
def : InstAlias<"xstorerng", (XSTORE)>;