diff --git a/testsuite/poke.map/maps-uint-1.pk b/testsuite/poke.map/maps-uint-1.pk new file mode 100644 index 0000000..6c59273 --- /dev/null +++ b/testsuite/poke.map/maps-uint-1.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u16x\n", uint<16> @ 8#b } } */ +/* { dg-output "4523" } */ diff --git a/testsuite/poke.map/maps-uint-10.pk b/testsuite/poke.map/maps-uint-10.pk new file mode 100644 index 0000000..f6b204e --- /dev/null +++ b/testsuite/poke.map/maps-uint-10.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u22x\n", uint<22> @ 9#b } } */ +/* { dg-output "11a2b3" } */ diff --git a/testsuite/poke.map/maps-uint-11.pk b/testsuite/poke.map/maps-uint-11.pk new file mode 100644 index 0000000..28f6967 --- /dev/null +++ b/testsuite/poke.map/maps-uint-11.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u14x\n", uint<14> @ 15#b } } */ +/* { dg-output "28ac" } */ diff --git a/testsuite/poke.map/maps-uint-12.pk b/testsuite/poke.map/maps-uint-12.pk new file mode 100644 index 0000000..ef6bfce --- /dev/null +++ b/testsuite/poke.map/maps-uint-12.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u29x\n", uint<29> @ 8#b } } */ +/* { dg-output "11674523" } */ diff --git a/testsuite/poke.map/maps-uint-13.pk b/testsuite/poke.map/maps-uint-13.pk new file mode 100644 index 0000000..0fa725b --- /dev/null +++ b/testsuite/poke.map/maps-uint-13.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u29x\n", uint<29> @ 9#b } } */ +/* { dg-output "2cf8a46" } */ diff --git a/testsuite/poke.map/maps-uint-14.pk b/testsuite/poke.map/maps-uint-14.pk new file mode 100644 index 0000000..0d6e239 --- /dev/null +++ b/testsuite/poke.map/maps-uint-14.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u21x\n", uint<21> @ 15#b } } */ +/* { dg-output "18b3a2" } */ diff --git a/testsuite/poke.map/maps-uint-15.pk b/testsuite/poke.map/maps-uint-15.pk new file mode 100644 index 0000000..d7a4b43 --- /dev/null +++ b/testsuite/poke.map/maps-uint-15.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u29x\n", uint<29> @ 9#b } } */ +/* { dg-output "8d159e2" } */ diff --git a/testsuite/poke.map/maps-uint-16.pk b/testsuite/poke.map/maps-uint-16.pk new file mode 100644 index 0000000..e640c11 --- /dev/null +++ b/testsuite/poke.map/maps-uint-16.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u21x\n", uint<21> @ 15#b } } */ +/* { dg-output "145678" } */ diff --git a/testsuite/poke.map/maps-uint-17.pk b/testsuite/poke.map/maps-uint-17.pk new file mode 100644 index 0000000..327e8a7 --- /dev/null +++ b/testsuite/poke.map/maps-uint-17.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u37x\n", uint<37> @ 8#b } } */ +/* { dg-output "1589674523" } */ diff --git a/testsuite/poke.map/maps-uint-18.pk b/testsuite/poke.map/maps-uint-18.pk new file mode 100644 index 0000000..14b8c94 --- /dev/null +++ b/testsuite/poke.map/maps-uint-18.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u37x\n", uint<37> @ 9#b } } */ +/* { dg-output "13cf8a46" } */ diff --git a/testsuite/poke.map/maps-uint-19.pk b/testsuite/poke.map/maps-uint-19.pk new file mode 100644 index 0000000..f35e6d0 --- /dev/null +++ b/testsuite/poke.map/maps-uint-19.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u29x\n", uint<29> @ 15#b } } */ +/* { dg-output "1ac4b3a2" } */ diff --git a/testsuite/poke.map/maps-uint-2.pk b/testsuite/poke.map/maps-uint-2.pk new file mode 100644 index 0000000..8035a79 --- /dev/null +++ b/testsuite/poke.map/maps-uint-2.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u16x\n", uint<16> @ 8#b } } */ +/* { dg-output "2345" } */ diff --git a/testsuite/poke.map/maps-uint-20.pk b/testsuite/poke.map/maps-uint-20.pk new file mode 100644 index 0000000..2a91817 --- /dev/null +++ b/testsuite/poke.map/maps-uint-20.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u37x\n", uint<37> @ 9#b } } */ +/* { dg-output "8d159e26a" } */ diff --git a/testsuite/poke.map/maps-uint-21.pk b/testsuite/poke.map/maps-uint-21.pk new file mode 100644 index 0000000..3c3b81b --- /dev/null +++ b/testsuite/poke.map/maps-uint-21.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u29x\n", uint<29> @ 15#b } } */ +/* { dg-output "1456789a" } */ diff --git a/testsuite/poke.map/maps-uint-22.pk b/testsuite/poke.map/maps-uint-22.pk new file mode 100644 index 0000000..7de72af --- /dev/null +++ b/testsuite/poke.map/maps-uint-22.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u44x\n", uint<44> @ 8#b } } */ +/* { dg-output "cab89674523" } */ diff --git a/testsuite/poke.map/maps-uint-23.pk b/testsuite/poke.map/maps-uint-23.pk new file mode 100644 index 0000000..b554748 --- /dev/null +++ b/testsuite/poke.map/maps-uint-23.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u44x\n", uint<44> @ 9#b } } */ +/* { dg-output "95713cf8a46" } */ diff --git a/testsuite/poke.map/maps-uint-24.pk b/testsuite/poke.map/maps-uint-24.pk new file mode 100644 index 0000000..0dfd1ea --- /dev/null +++ b/testsuite/poke.map/maps-uint-24.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u38x\n", uint<38> @ 15#b } } */ +/* { dg-output "39d5c4b3a2" } */ diff --git a/testsuite/poke.map/maps-uint-25.pk b/testsuite/poke.map/maps-uint-25.pk new file mode 100644 index 0000000..1feafa6 --- /dev/null +++ b/testsuite/poke.map/maps-uint-25.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u44x\n", uint<44> @ 9#b } } */ +/* { dg-output "468acf13579" } */ diff --git a/testsuite/poke.map/maps-uint-26.pk b/testsuite/poke.map/maps-uint-26.pk new file mode 100644 index 0000000..8e37f21 --- /dev/null +++ b/testsuite/poke.map/maps-uint-26.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u38x\n", uint<38> @ 15#b } } */ +/* { dg-output "28acf13579" } */ diff --git a/testsuite/poke.map/maps-uint-27.pk b/testsuite/poke.map/maps-uint-27.pk new file mode 100644 index 0000000..c370f5f --- /dev/null +++ b/testsuite/poke.map/maps-uint-27.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u53x\n", uint<53> @ 8#b } } */ +/* { dg-output "1dcdab89674523" } */ diff --git a/testsuite/poke.map/maps-uint-28.pk b/testsuite/poke.map/maps-uint-28.pk new file mode 100644 index 0000000..3e6aa68 --- /dev/null +++ b/testsuite/poke.map/maps-uint-28.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u53x\n", uint<53> @ 9#b } } */ +/* { dg-output "1b9b5713cf8a46" } */ diff --git a/testsuite/poke.map/maps-uint-29.pk b/testsuite/poke.map/maps-uint-29.pk new file mode 100644 index 0000000..225d01d --- /dev/null +++ b/testsuite/poke.map/maps-uint-29.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u47x\n", uint<47> @ 15#b } } */ +/* { dg-output "7be6d5c4b3a2" } */ diff --git a/testsuite/poke.map/maps-uint-3.pk b/testsuite/poke.map/maps-uint-3.pk new file mode 100644 index 0000000..d5d1781 --- /dev/null +++ b/testsuite/poke.map/maps-uint-3.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u15x\n", uint<15> @ 9#b } } */ +/* { dg-output "2345" } */ diff --git a/testsuite/poke.map/maps-uint-30.pk b/testsuite/poke.map/maps-uint-30.pk new file mode 100644 index 0000000..59219d5 --- /dev/null +++ b/testsuite/poke.map/maps-uint-30.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u53x\n", uint<53> @ 9#b } } */ +/* { dg-output "8d159e26af37b" } */ diff --git a/testsuite/poke.map/maps-uint-31.pk b/testsuite/poke.map/maps-uint-31.pk new file mode 100644 index 0000000..afbd5e5 --- /dev/null +++ b/testsuite/poke.map/maps-uint-31.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u47x\n", uint<47> @ 15#b } } */ +/* { dg-output "5159e26af37b" } */ diff --git a/testsuite/poke.map/maps-uint-32.pk b/testsuite/poke.map/maps-uint-32.pk new file mode 100644 index 0000000..a5eed2c --- /dev/null +++ b/testsuite/poke.map/maps-uint-32.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u59x\n", uint<59> @ 8#b } } */ +/* { dg-output "2efcdab89674523" } */ diff --git a/testsuite/poke.map/maps-uint-33.pk b/testsuite/poke.map/maps-uint-33.pk new file mode 100644 index 0000000..7f30e2b --- /dev/null +++ b/testsuite/poke.map/maps-uint-33.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u59x\n", uint<59> @ 9#b } } */ +/* { dg-output "5de9b5713cf8a46" } */ diff --git a/testsuite/poke.map/maps-uint-34.pk b/testsuite/poke.map/maps-uint-34.pk new file mode 100644 index 0000000..29d0110 --- /dev/null +++ b/testsuite/poke.map/maps-uint-34.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u53x\n", uint<53> @ 15#b } } */ +/* { dg-output "15f7e6d5c4b3a2" } */ diff --git a/testsuite/poke.map/maps-uint-35.pk b/testsuite/poke.map/maps-uint-35.pk new file mode 100644 index 0000000..565c828 --- /dev/null +++ b/testsuite/poke.map/maps-uint-35.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u59x\n", uint<59> @ 9#b } } */ +/* { dg-output "23456789abcdef5" } */ diff --git a/testsuite/poke.map/maps-uint-36.pk b/testsuite/poke.map/maps-uint-36.pk new file mode 100644 index 0000000..61c88df --- /dev/null +++ b/testsuite/poke.map/maps-uint-36.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u53x\n", uint<53> @ 15#b } } */ +/* { dg-output "1456789abcdef5" } */ diff --git a/testsuite/poke.map/maps-uint-37.pk b/testsuite/poke.map/maps-uint-37.pk new file mode 100644 index 0000000..f7859ac --- /dev/null +++ b/testsuite/poke.map/maps-uint-37.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u59x\n", uint<59> @ 61#b } } */ +/* { dg-output "57935f1ac6824ea" } */ diff --git a/testsuite/poke.map/maps-uint-38.pk b/testsuite/poke.map/maps-uint-38.pk new file mode 100644 index 0000000..fb84a2a --- /dev/null +++ b/testsuite/poke.map/maps-uint-38.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u64x\n", uint<64> @ 60#b } } */ +/* { dg-output "debc9a78563412f5" } */ diff --git a/testsuite/poke.map/maps-uint-39.pk b/testsuite/poke.map/maps-uint-39.pk new file mode 100644 index 0000000..7a55264 --- /dev/null +++ b/testsuite/poke.map/maps-uint-39.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u59x\n", uint<59> @ 61#b } } */ +/* { dg-output "75123456789abcd" } */ diff --git a/testsuite/poke.map/maps-uint-4.pk b/testsuite/poke.map/maps-uint-4.pk new file mode 100644 index 0000000..a096ade --- /dev/null +++ b/testsuite/poke.map/maps-uint-4.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u9x\n", uint<9> @ 15#b } } */ +/* { dg-output "145" } */ diff --git a/testsuite/poke.map/maps-uint-40.pk b/testsuite/poke.map/maps-uint-40.pk new file mode 100644 index 0000000..54a9a7a --- /dev/null +++ b/testsuite/poke.map/maps-uint-40.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u64x\n", uint<64> @ 60#b } } */ +/* { dg-output "f5123456789abcde" } */ diff --git a/testsuite/poke.map/maps-uint-5.pk b/testsuite/poke.map/maps-uint-5.pk new file mode 100644 index 0000000..47e3ec0 --- /dev/null +++ b/testsuite/poke.map/maps-uint-5.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian big } } */ +/* { dg-command { printf "%u5x\n", uint<5> @ 10#b } } */ +/* { dg-output "11" } */ diff --git a/testsuite/poke.map/maps-uint-6.pk b/testsuite/poke.map/maps-uint-6.pk new file mode 100644 index 0000000..b62fc12 --- /dev/null +++ b/testsuite/poke.map/maps-uint-6.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u5x\n", uint<5> @ 10#b } } */ +/* { dg-output "11" } */ diff --git a/testsuite/poke.map/maps-uint-7.pk b/testsuite/poke.map/maps-uint-7.pk new file mode 100644 index 0000000..b2cd0a4 --- /dev/null +++ b/testsuite/poke.map/maps-uint-7.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u22x\n", uint<22> @ 8#b } } */ +/* { dg-output "194523" } */ diff --git a/testsuite/poke.map/maps-uint-8.pk b/testsuite/poke.map/maps-uint-8.pk new file mode 100644 index 0000000..83bcb56 --- /dev/null +++ b/testsuite/poke.map/maps-uint-8.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u22x\n", uint<22> @ 9#b } } */ +/* { dg-output "338a46" } */ diff --git a/testsuite/poke.map/maps-uint-9.pk b/testsuite/poke.map/maps-uint-9.pk new file mode 100644 index 0000000..ac49911 --- /dev/null +++ b/testsuite/poke.map/maps-uint-9.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef 0x51 0x23 0x45 0x67 0x89 0xab 0xcd 0xef} } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command { printf "%u14x\n", uint<14> @ 15#b } } */ +/* { dg-output "2ca2" } */ diff --git a/testsuite/poke.map/maps-uint-diag-1.pk b/testsuite/poke.map/maps-uint-diag-1.pk new file mode 100644 index 0000000..56c6504 --- /dev/null +++ b/testsuite/poke.map/maps-uint-diag-1.pk @@ -0,0 +1,6 @@ +/* { dg-do run } */ +/* { dg-data {c*} {0x51 0x23 } } */ + +/* { dg-command { .set endian little } } */ +/* { dg-command {try uint<16> @ 8#b; catch if E_eof { print ("catched\n"); } } } */ +/* { dg-output "catched" } */