[llvm] 77b0009 - [PS5] Use same debug trap instruction as PS4
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 11:03:12 PDT 2022
Author: Paul Robinson
Date: 2022-06-16T11:03:03-07:00
New Revision: 77b00098f2908cbef5a92135dd9b80a6db514c7c
URL: https://github.com/llvm/llvm-project/commit/77b00098f2908cbef5a92135dd9b80a6db514c7c
DIFF: https://github.com/llvm/llvm-project/commit/77b00098f2908cbef5a92135dd9b80a6db514c7c.diff
LOG: [PS5] Use same debug trap instruction as PS4
Added:
Modified:
llvm/lib/Target/X86/X86InstrInfo.td
llvm/lib/Target/X86/X86InstrSystem.td
llvm/lib/Target/X86/X86Subtarget.h
llvm/test/CodeGen/X86/trap.ll
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td
index bc0dccf99f0d..fab6ccd108a6 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.td
+++ b/llvm/lib/Target/X86/X86InstrInfo.td
@@ -1013,8 +1013,8 @@ def NotWin64WithoutFP : Predicate<"!Subtarget->isTargetWin64() ||"
"Subtarget->getFrameLowering()->hasFP(*MF)"> {
let RecomputePerFunction = 1;
}
-def IsPS4 : Predicate<"Subtarget->isTargetPS4()">;
-def NotPS4 : Predicate<"!Subtarget->isTargetPS4()">;
+def IsPS : Predicate<"Subtarget->isTargetPS()">;
+def NotPS : Predicate<"!Subtarget->isTargetPS()">;
def IsNaCl : Predicate<"Subtarget->isTargetNaCl()">;
def NotNaCl : Predicate<"!Subtarget->isTargetNaCl()">;
def SmallCode : Predicate<"TM.getCodeModel() == CodeModel::Small">;
diff --git a/llvm/lib/Target/X86/X86InstrSystem.td b/llvm/lib/Target/X86/X86InstrSystem.td
index 5ec0e9b979fa..3a653a56e534 100644
--- a/llvm/lib/Target/X86/X86InstrSystem.td
+++ b/llvm/lib/Target/X86/X86InstrSystem.td
@@ -71,9 +71,9 @@ def SYSEXIT64 :RI<0x35, RawFrm, (outs), (ins), "sysexitq", []>, TB,
} // SchedRW
def : Pat<(debugtrap),
- (INT3)>, Requires<[NotPS4]>;
+ (INT3)>, Requires<[NotPS]>;
def : Pat<(debugtrap),
- (INT (i8 0x41))>, Requires<[IsPS4]>;
+ (INT (i8 0x41))>, Requires<[IsPS]>;
//===----------------------------------------------------------------------===//
// Input/Output Instructions.
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index e66acfc767e2..09a8b1f1aafb 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -271,7 +271,7 @@ class X86Subtarget final : public X86GenSubtargetInfo {
bool isTargetFreeBSD() const { return TargetTriple.isOSFreeBSD(); }
bool isTargetDragonFly() const { return TargetTriple.isOSDragonFly(); }
bool isTargetSolaris() const { return TargetTriple.isOSSolaris(); }
- bool isTargetPS4() const { return TargetTriple.isPS4(); }
+ bool isTargetPS() const { return TargetTriple.isPS(); }
bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
bool isTargetCOFF() const { return TargetTriple.isOSBinFormatCOFF(); }
diff --git a/llvm/test/CodeGen/X86/trap.ll b/llvm/test/CodeGen/X86/trap.ll
index 452be48a605e..1b1837a7c5a7 100644
--- a/llvm/test/CodeGen/X86/trap.ll
+++ b/llvm/test/CodeGen/X86/trap.ll
@@ -1,6 +1,7 @@
; RUN: llc < %s -mtriple=i686-apple-darwin8 -mcpu=yonah | FileCheck %s -check-prefix=DARWIN
; RUN: llc < %s -mtriple=i686-unknown-linux -mcpu=yonah | FileCheck %s -check-prefix=LINUX
; RUN: llc < %s -mtriple=x86_64-scei-ps4 | FileCheck %s -check-prefix=PS4
+; RUN: llc < %s -mtriple=x86_64-sie-ps5 | FileCheck %s -check-prefix=PS4
; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s -check-prefix=WIN64
; DARWIN-LABEL: test0:
More information about the llvm-commits
mailing list