aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/all.txt
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@orange.com>2019-10-18 14:45:31 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-10-25 18:16:59 +0200
commit713f727d983ec2c0c8307a7dcafc270aeee900dd (patch)
tree6f3d539931db47b892b5eecafd8a890a1cb9faf4 /pkg/compiler/testdata/all.txt
parentced0f73a673b1ab94725fe1710dcf7105015eb74 (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/testdata/all.txt')
-rw-r--r--pkg/compiler/testdata/all.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt
index 9bb2c3d16..82aad66f4 100644
--- a/pkg/compiler/testdata/all.txt
+++ b/pkg/compiler/testdata/all.txt
@@ -12,6 +12,8 @@ foo$7(a int8[-20:20])
foo$8(a ptr[in, strings])
foo$9(a ptr[out, ptr[in, string]])
foo$10(a ptr[out, buffer[in]])
+foo$11(a int64[1:100, 2])
+foo$12(a int64[0:-1, 0x1000])
resource r0[intptr]
@@ -166,6 +168,9 @@ foo$void8(a ptr[in, void])
bitfield0 {
f1 int8:1
f2 int8:2
+ f3 int16:8[-255:0]
+ f4 int16:8[0:255]
+ f5 int64:64[-1:1]
}
foo$bitfield0(a ptr[in, bitfield0])