From 713f727d983ec2c0c8307a7dcafc270aeee900dd Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Fri, 18 Oct 2019 14:45:31 +0200 Subject: prog, pkg/compiler: alignment for integer ranges Enables the syntax intN[start:end, alignment] for integer ranges. For instance, int32[0:10, 2] represents even 32-bit numbers between 0 and 10 included. With this change, two NEED tags in syscall descriptions can be addressed. Signed-off-by: Paul Chaignon --- pkg/compiler/consts_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/compiler/consts_test.go') diff --git a/pkg/compiler/consts_test.go b/pkg/compiler/consts_test.go index 37c2625d1..69810c877 100644 --- a/pkg/compiler/consts_test.go +++ b/pkg/compiler/consts_test.go @@ -37,7 +37,8 @@ func TestExtractConsts(t *testing.T) { "CONST6", "CONST7", "CONST8", "CONST9", "CONST10", "CONST11", "CONST12", "CONST13", "CONST14", "CONST15", "CONST16", "CONST17", "CONST18", "CONST19", "CONST20", - "CONST21", "CONST22", "CONST23", "CONST24", + "CONST21", "CONST22", "CONST23", "CONST24", "CONST25", + "CONST26", } sort.Strings(wantConsts) if !reflect.DeepEqual(info.Consts, wantConsts) { -- cgit mrf-deployment