[PATCH] D76614: [PowerPC]: e500 target can't use lwsync, use msync instead

Justin Hibbits via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 15:17:28 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf0990e104b08: [PowerPC]: e500 target can't use lwsync, use msync instead (authored by jhibbits).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76614/new/

https://reviews.llvm.org/D76614

Files:
  llvm/lib/Target/PowerPC/PPC.td
  llvm/test/CodeGen/PowerPC/atomics-fences.ll


Index: llvm/test/CodeGen/PowerPC/atomics-fences.ll
===================================================================
--- llvm/test/CodeGen/PowerPC/atomics-fences.ll
+++ llvm/test/CodeGen/PowerPC/atomics-fences.ll
@@ -1,6 +1,7 @@
 ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -verify-machineinstrs | FileCheck %s
 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -verify-machineinstrs | FileCheck %s
 ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=440 | FileCheck %s --check-prefix=PPC440
+; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=e500 | FileCheck %s --check-prefix=PPC440
 
 ; Fences
 define void @fence_acquire() {
Index: llvm/lib/Target/PowerPC/PPC.td
===================================================================
--- llvm/lib/Target/PowerPC/PPC.td
+++ llvm/lib/Target/PowerPC/PPC.td
@@ -463,7 +463,7 @@
 def : ProcessorModel<"e500", PPCE500Model,
                   [DirectiveE500,
                    FeatureICBT, FeatureBookE,
-                   FeatureISEL, FeatureMFTB, FeatureSPE]>;
+                   FeatureISEL, FeatureMFTB, FeatureMSYNC, FeatureSPE]>;
 def : ProcessorModel<"e500mc", PPCE500mcModel,
                   [DirectiveE500mc,
                    FeatureSTFIWX, FeatureICBT, FeatureBookE,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76614.252156.patch
Type: text/x-patch
Size: 1257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200323/d2e53875/attachment.bin>


More information about the llvm-commits mailing list