[PATCH] D69957: [BPF] turn on -mattr=+alu32 for cpu version v3 and later

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 22:22:44 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rG6b8baf3062cd: [BPF] turn on -mattr=+alu32 for cpu version v3 and later (authored by yonghong-song).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69957

Files:
  llvm/lib/Target/BPF/BPFSubtarget.cpp
  llvm/test/CodeGen/BPF/32-bit-subreg-alu.ll


Index: llvm/test/CodeGen/BPF/32-bit-subreg-alu.ll
===================================================================
--- llvm/test/CodeGen/BPF/32-bit-subreg-alu.ll
+++ llvm/test/CodeGen/BPF/32-bit-subreg-alu.ll
@@ -1,4 +1,5 @@
 ; RUN: llc -O2 -march=bpfel -mattr=+alu32 < %s | FileCheck %s
+; RUN: llc -O2 -march=bpfel -mcpu=v3 < %s | FileCheck %s
 ;
 ; int mov(int a)
 ; {
Index: llvm/lib/Target/BPF/BPFSubtarget.cpp
===================================================================
--- llvm/lib/Target/BPF/BPFSubtarget.cpp
+++ llvm/lib/Target/BPF/BPFSubtarget.cpp
@@ -52,6 +52,7 @@
   if (CPU == "v3") {
     HasJmpExt = true;
     HasJmp32 = true;
+    HasAlu32 = true;
     return;
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69957.228367.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191108/8c382519/attachment.bin>


More information about the llvm-commits mailing list