Skip to content

Commit e9617fb

Browse files
authored
[SOL] Associate features for sbpfv3 and v4 (#183)
1 parent eea5c02 commit e9617fb

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

llvm/lib/Target/SBF/SBFTargetFeatures.td

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ def : Proc<"v2", [FeatureDynamicFrames, FeatureDisableLddw,
7272
FeatureNewMemEncoding, FeatureCallxRegSrc, FeaturePqrInstr, FeatureExplicitSext,
7373
FeatureDisableNeg, FeatureReverseSubImm, ALU32]>;
7474

75-
def : Proc<"v3", [FeatureDynamicFrames, FeatureDisableLddw,
76-
FeatureNewMemEncoding, FeatureCallxRegDst, FeaturePqrInstr, FeatureExplicitSext,
77-
FeatureDisableNeg, FeatureReverseSubImm, ALU32, FeatureStaticSyscalls, FeatureRelocAbs64]>;
78-
79-
def : Proc<"v4", [FeatureDynamicFrames, FeatureDisableLddw,
80-
FeatureNewMemEncoding, FeatureCallxRegDst, FeaturePqrInstr, FeatureExplicitSext,
81-
FeatureDisableNeg, FeatureReverseSubImm, ALU32, FeatureStaticSyscalls, FeatureRelocAbs64,
82-
FeatureAbiV2]>;
75+
def : Proc<"v3", [ALU32, FeatureStaticSyscalls, FeatureRelocAbs64, FeatureJmp32,
76+
FeatureDynamicFramesV3, FeatureCallxRegDst]>;
77+
78+
def : Proc<"v4", [ALU32, FeatureStaticSyscalls, FeatureRelocAbs64, FeatureJmp32,
79+
FeatureDynamicFramesV3, FeatureCallxRegDst]>;

llvm/test/CodeGen/SBF/32-bit-subreg-alu.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -O2 -march=sbf -mattr=+alu32 < %s | FileCheck --check-prefixes=CHECK,CHECK-V0 %s
2-
; RUN: llc -O2 -march=sbf -mcpu=v3 < %s | FileCheck --check-prefixes=CHECK,CHECK-V3 %s
2+
; RUN: llc -O2 -march=sbf -mcpu=v2 < %s | FileCheck --check-prefixes=CHECK,CHECK-V3 %s
33
;
44
; int mov(int a)
55
; {

llvm/test/CodeGen/SBF/CORE/simplifypatable-nullptr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -sbf-enable-btf-emission -O2 -march=sbf -mcpu=v3 < %s | FileCheck %s
1+
; RUN: llc -sbf-enable-btf-emission -O2 -march=sbf -mcpu=v2 < %s | FileCheck %s
22
; Source code:
33
; struct t3 {
44
; int i;

llvm/test/CodeGen/SBF/objdump_trivial.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: llc -march=sbf -mcpu=v3 -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s
22

3-
; CHECK: jslt r1, 0x0,
3+
; CHECK: jslt32 w1, 0x0,
44
; CHECK: call 0x1
55
; CHECK: exit
66
; CHECK: call 0x2

llvm/test/CodeGen/SBF/unreachable_return.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare void @dummy_func(i8, ptr, ptr, ptr, ptr, ptr, ptr)
55

66
define internal fastcc void @test_func(ptr %0, ptr %1, ptr %args, ptr %2) {
77
start:
8-
; CHECK: add64 r10, -64
8+
; CHECK-NOT: add64 r10, -64
99
%right = alloca [8 x i8], align 8
1010
%left = alloca [8 x i8], align 8
1111
store ptr %0, ptr %left, align 8

0 commit comments

Comments
 (0)