diff options
| author | Paul Chaignon <paul.chaignon@orange.com> | 2019-10-18 14:45:31 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-10-25 18:16:59 +0200 |
| commit | 713f727d983ec2c0c8307a7dcafc270aeee900dd (patch) | |
| tree | 6f3d539931db47b892b5eecafd8a890a1cb9faf4 /pkg/compiler/consts_test.go | |
| parent | ced0f73a673b1ab94725fe1710dcf7105015eb74 (diff) | |
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 <paul.chaignon@orange.com>
Diffstat (limited to 'pkg/compiler/consts_test.go')
| -rw-r--r-- | pkg/compiler/consts_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |
