summaryrefslogtreecommitdiff
path: root/tests/aslts/src/runtime/common
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aslts/src/runtime/common')
-rw-r--r--tests/aslts/src/runtime/common/TCI/tcicmd.asl1806
-rw-r--r--tests/aslts/src/runtime/common/conversion/oDECL.asl66
-rw-r--r--tests/aslts/src/runtime/common/conversion/oproc.asl2148
-rw-r--r--tests/aslts/src/runtime/common/conversion/otest.asl8898
-rw-r--r--tests/aslts/src/runtime/common/conversion/rDECL.asl64
-rw-r--r--tests/aslts/src/runtime/common/conversion/rproc.asl216
-rw-r--r--tests/aslts/src/runtime/common/conversion/rtest.asl2824
-rw-r--r--tests/aslts/src/runtime/common/data.asl558
-rw-r--r--tests/aslts/src/runtime/common/dataproc.asl1500
-rw-r--r--tests/aslts/src/runtime/common/datastproc.asl456
-rw-r--r--tests/aslts/src/runtime/common/mx_objects.asl3398
-rw-r--r--tests/aslts/src/runtime/common/operations.asl1534
12 files changed, 11734 insertions, 11734 deletions
diff --git a/tests/aslts/src/runtime/common/TCI/tcicmd.asl b/tests/aslts/src/runtime/common/TCI/tcicmd.asl
index b4da8ddeb..38111a9ee 100644
--- a/tests/aslts/src/runtime/common/TCI/tcicmd.asl
+++ b/tests/aslts/src/runtime/common/TCI/tcicmd.asl
@@ -1,903 +1,903 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * The Test Command Interface with the ACPICA (_TCI)
- *
- * Note: _TCI and TCI mean the same in comments below.
- * But, actually the name of the relevant predefined
- * Method is _TCI.
- */
-
-Name(z128, 128)
-
-Name(DE00, 0) // Disable reporting errors from m3a4, needed in m3aa (not enough params)
-Name(FOPT, 0) // Flag of optimization
-
-
-/*
- * Constants
- */
-
-// Opcodes of the Test Commands provided by _TCI
-
-Name(c200, 0xcd0000) // _TCI-end statistics
-Name(c201, 0xcd0001) // _TCI-begin statistics
-Name(c202, 0xcd0002) // TCI_CMD_CHECK_SUPPORTED
-Name(c203, 0xcd0003) // TCI_CMD_GET_ID_OF_THREADS
-
-// Tags of commands (to be filled into TCI Package by aslts)
-
-Name(c208, 0xeeee0596) // TCI_TAG_GET_MC_STAT_AFTER_TCI_TERM
-Name(c209, 0xbbbb063a) // TCI_TAG_GET_MC_STAT_BEFORE_TCI_RUN
-Name(c20a, 0xcccc07b9) // TCI_TAG_CHECK_SUPPORTED
-Name(c20b, 0xdddd01f5) // TCI_TAG_GET_ID_OF_THREADS
-
-/*
- * The layout of the Package for Memory Consumption Statistics
- * applied for TCI commands:
- * _TCI-end statistics (command TCI_CMD_GET_MC_STAT_AFTER_TCI_TERM)
- * _TCI-begin statistics (command TCI_CMD_GET_MC_STAT_BEFORE_TCI_RUN)
- */
-Name(c210, 0) // Tittle
-Name(c211, 4) // acq0
-Name(c212, 9) // acq1 (-)
-Name(c213, 14) // acq2 (-)
-Name(c214, 19) // acq3
-Name(c215, 24) // acq4 (-)
-Name(c216, 29) // acq5
-Name(c217, 34) // rel0
-Name(c218, 39) // rel1
-Name(c219, 44) // rel2 (-)
-Name(c21a, 49) // rel3
-Name(c21b, 54) // Created Objects
-Name(c21c, 84) // Deleted Objects
-Name(c21d, 114) // Miscellaneous Stat
-
-Name(c220, 121) // the length of the Package for
- // Memory Consumption Statistics.
-
-// The layout of header of the common _TCI Package
-
-// Input, data of header passed to ACPICA
-Name(c222, 0) // Tag of command (to be set up by aslts)
-
-// Output, data of header returned to aslts from ACPICA
-Name(c223, 1) // Size (number of elements actually packed into TCI package,
- // to be filled by ACPICA)
-Name(c224, 2) // Cmd (command has been executed, to be filled by ACPICA)
-Name(c225, 3) // CACHE_ENABLED (object cache is enabled info flag,
- // to be filled by ACPICA)
-Name(c22b, 4) // length of the common _TCI Package header
-
-
-// The layout of header of TCI_CMD_GET_ID_OF_THREADS command
-// (returned to aslts from ACPICA)
-Name(c22c, 4) // TCI_PACKAGE_THR_NUM
-Name(c22d, 5) // TCI_PACKAGE_THR_NUM_REAL
-Name(c22e, 6) // TCI_PACKAGE_THR_ID
-Name(c22f, 7) // length TCI_PACKAGE_THR_HEADER_SIZE
-
-
-Name(c221, 5) // CACHE_LISTS_NUMBER (Object Caches):
- // CLIST_ID_NAMESPACE 0 /* Acpi-Namespace */
- // CLIST_ID_STATE 1 /* Acpi-State */
- // CLIST_ID_OPERAND 2 /* Acpi-Operand */
- // CLIST_ID_PSNODE 3 /* Acpi-Parse */
- // CLIST_ID_PSNODE_EXT 4 /* Acpi-ParseExt */
-
-Name(c226, 0) // CLIST_ID_NAMESPACE
-Name(c227, 1) // CLIST_ID_STATE
-Name(c228, 2) // CLIST_ID_OPERAND
-Name(c229, 3) // CLIST_ID_PSNODE
-Name(c22a, 4) // CLIST_ID_PSNODE_EXT
-
-
-/*
- * The main Test Command interface with the ACPICA
- *
- * arg0 - opcode of the Test Command
- * arg1 - Package for different needs depending on the command.
- * So, in case of the Memory Consumption Statistics commands it
- * is filled by ACPICA with the Memory Consumption Statistics.
- * The length of package in this case should be not less than c220,
- * otherwise, no any failure arises but not all data are returned
- * by Package just only the relevant part of it. It is true for all
- * commands.
- * Note: use m3a0 or m165 to prepare the arg1-package.
- */
-Method(_TCI, 2)
-{
- /*
- * Before to run this method reset location
- * of Command which is to be filled by ACPICA
- * to acknowledge the interconnection.
- * It is performed in m3a0 and m3a4.
- */
- return (arg1)
-}
-
-/*
- * Create and initialize the Package for _TCI
- *
- * arg0 - opcode of the Test Command.
- * Use 0 for allocation without initialization.
- * arg1 - number of element of Package (for some of commands)
- *
- * Return the resulting Package:
- *
- * - if arg0 is zero - the Package of c220 length
- * - otherwise - the Package of length depending on
- * the command is additionally initialized
- */
-Method(m165, 2, Serialized)
-{
- Name(num, 0)
- Name(tag, 0)
-
- if (arg0) {
-
- Switch (ToInteger (arg0)) {
- Case (0xcd0000) {
- // _TCI-end statistics
- Store(c208, tag)
- Store(c220, num)
- }
- Case (0xcd0001) {
- // _TCI-begin statistics
- Store(c209, tag)
- Store(c220, num)
- }
- Case (0xcd0002) {
- // TCI_CMD_CHECK_SUPPORTED
- Store(c20a, tag)
- Store(c22b, num)
- }
- Case (0xcd0003) {
- // TCI_CMD_GET_ID_OF_THREADS
- Store(c20b, tag)
- Store(arg1, num)
- }
- Default {
- err("m165", z128, 0, 0, 0, arg0, 0)
- }
- }
-
- if (LLess(num, c22b)) {
- err("m165", z128, 0, 0, 0, num, c22b)
- } else {
- Name(p000, Package(num) {})
- Name(lpN0, 0)
- Name(lpC0, 0)
- Store(num, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- Store(0, Index(p000, lpC0))
- Decrement(lpN0)
- Increment(lpC0)
- }
- Store(tag, Index(p000, 0))
- Return (p000)
- }
- } else {
- Name(p001, Package(c220) {})
- Return (p001)
- }
-
- Return (0)
-}
-
-/*
- * Create and initialize the Package for simple cases
- * entirely specified by the opcode of command.
- *
- * a. for Memory Consumption Statistics
- * (_TCI-begin or _TCI-end statistics).
- *
- * b. TCI_CMD_CHECK_SUPPORTED
- *
- * arg0 - opcode of the Test Command.
- * Use 0 for allocation without initialization.
- *
- * Returns the TCI Package
- */
-Method(m3a0, 1)
-{
- Store(m165(arg0, 0), Local0)
-
- Return (Local0)
-}
-
-Method(m3a1, 2)
-{
- Store(DeRefOf(Index(NMTP, arg1)), Local0)
- Concatenate("", arg0, Local2)
- Concatenate(Local2, " ", Local1)
- Concatenate(Local1, Local0, Debug)
-}
-
-/*
- * Print out the Memory Consumption Statistics Package
- *
- * arg0 - Memory Consumption Statistics Package
- * arg1 - opcode of the tittle message
- */
-Method(m3a2, 2, Serialized)
-{
- if (LEqual(arg1, 0)) {
- Store("==== _TCI-end statistics", Debug)
- } elseif (LEqual(arg1, 1)) {
- Store("==== _TCI-begin statistics", Debug)
- } elseif (LEqual(arg1, 2)) {
- Store("==== _TCI-end-begin difference", Debug)
- } else {
- Store("???", Debug)
- }
-
- Name(lpN0, 0)
- Name(lpC0, 0)
-
- Store(c220, lpN0)
- Store(0, lpC0)
-
- Store(0, Local1)
- Store(0, Local2)
-
- While (lpN0) {
-
- if (LEqual(lpC0, c210)) {
- Store("Tittle:", Debug)
- } elseif (LEqual(lpC0, c211)) {
- Store("acq0: all calls to AcpiUtAcquireFromCache", Debug)
- } elseif (LEqual(lpC0, c212)) {
- Store("acq1: +AcpiUtAcquireMutex", Debug)
- } elseif (LEqual(lpC0, c213)) {
- Store("acq2: +there is a cache object available", Debug)
- } elseif (LEqual(lpC0, c214)) {
- Store("acq3: +AcpiUtReleaseMutex", Debug)
- } elseif (LEqual(lpC0, c215)) {
- Store("acq4: +otherwise, the cache is empty, create a new object", Debug)
- } elseif (LEqual(lpC0, c216)) {
- Store("acq5: +AcpiUtReleaseMutex", Debug)
- } elseif (LEqual(lpC0, c217)) {
- Store("rel0: all calls to AcpiUtReleaseToCache", Debug)
- } elseif (LEqual(lpC0, c218)) {
- Store("rel1: +walk cache is full, just free this object", Debug)
- } elseif (LEqual(lpC0, c219)) {
- Store("rel2: +otherwise, put this object back into the cache", Debug)
- } elseif (LEqual(lpC0, c21a)) {
- Store("rel3: +AcpiUtAcquireMutex", Debug)
- } elseif (LEqual(lpC0, c21b)) {
- Store("Created Objects:", Debug)
- } elseif (LEqual(lpC0, c21c)) {
- Store("Deleted Objects:", Debug)
- } elseif (LEqual(lpC0, c21d)) {
- Store("Miscellaneous Stat:", Debug)
- }
-
- if (LGreaterEqual(lpC0, c21d)) {
- Store(DerefOf(Index(arg0, lpC0)), Debug)
- } elseif (LGreaterEqual(lpC0, c21c)) {
- Store(DerefOf(Index(arg0, lpC0)), Local0)
- m3a1(Local0, Local1)
- Increment(Local1)
- } elseif (LGreaterEqual(lpC0, c21b)) {
- Store(DerefOf(Index(arg0, lpC0)), Local0)
- m3a1(Local0, Local2)
- Increment(Local2)
- } else {
- Store(DerefOf(Index(arg0, lpC0)), Debug)
- }
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-}
-
-/*
- * Calculate the difference between the two
- * Memory Consumption Statistics Packages.
- *
- * arg0 - Package of _TCI-end statistics
- * arg1 - Package of _TCI-begin statistics
- * arg2 - Package for _TCI-end-begin difference
- */
-Method(m3a3, 3, Serialized)
-{
- Name(lpN0, 0)
- Name(lpC0, 0)
-
- Store(c220, lpN0)
- Store(0, lpC0)
-
- While (lpN0) {
- Store(DerefOf(Index(arg0, lpC0)), Local0)
- Store(DerefOf(Index(arg1, lpC0)), Local1)
- Subtract(Local1, Local0, Local2)
- Store(Local2, Index(arg2, lpC0))
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-}
-
-/*
- * Verify difference of Memory Consumption Statistics between
- * two points: _TCI-end statistics and _TCI-begin statistics
- * (and reset locations of Command of arg0 and arg1 Packages
- * for the following run).
- *
- * Check that the Memory Consumption Statistics measured at the first point
- * as '_TCI-end statistics' was then changed as expected to the second point
- * where statistics was measured as '_TCI-begin statistics'. Between these
- * two points we initiate some AML activity which involves the memory
- * consumption acquire/release to be then analyzed and verified.
- *
- *
- * arg0 - Package of _TCI-end statistics
- * arg1 - Package of _TCI-begin statistics
- * arg2 - Package for _TCI-end-begin difference
- * arg3 - Package with the benchmark information on Created Objects
- * arg4 - Package with the benchmark information on Deleted Objects
- * (if non-Package, then arg3 is used)
- * arg5 - Package with the benchmark information on memory acq0 and rel0
- * (if non-Package, then compare acq0 and rel0 of arg2,
- * otherwise, arg5 is a Package with the expected per-memory
- * type differencies, expected: acq0[i] - rel0[i] = arg5[i])
- * arg6 - index of checking (inside the file)
- *
- * Return:
- * 0 - success
- * 1 - incorrect Memory Consumption Statistics encountered
- * otherwise - failed to determine the Memory Consumption Statistics
- *
- * See: the time of execution can be reduced (design and use additional flags):
- * - exclude initialization before each operation
- * (ACPICA writes all elements, benchmarks for the
- * following sub-test mostly differ previous ones)
- * - restrict checkings (use flag) by the acq0 & rel0,
- * and add & del.
- */
-Method(m3a4, 7, Serialized)
-{
-
- // Flag of printing
- Name(pr1, 0)
- Name(pr2, 0)
-
- Name(lpN0, 0)
- Name(lpC0, 0)
-
- if (pr1) {
- m3a2(arg0, 0)
- m3a2(arg1, 1)
- }
-
- if (pr2) {
- m3a2(arg2, 2)
- }
-
- Store(0, Local7)
-
-
- // Check headers of Packages
-
-
- if (m3a6(arg0, 0, arg6)) {
- Store(2, Local7)
- }
-
- if (m3a6(arg1, 1, arg6)) {
- Store(2, Local7)
- }
-
-
- // Check statistics specified by index
-
-
- if (m3a7(arg0, 0, arg6)) {
- Store(2, Local7)
- }
-
- if (m3a7(arg1, 0, arg6)) {
- Store(2, Local7)
- }
-
- if (m3a7(arg2, 1, arg6)) {
- Store(2, Local7)
- }
-
-
- /*
- * acq0 and rel0 of arg2-difference
- * are to be equal each to another
- * (or correspond to arg5):
- */
-
-
- if (LEqual(ObjectType(arg5), c00c)) {
- Store(c211, Local0)
- Store(c217, Local1)
- Store(0, Local4)
-
- Store(c221, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- Store(DerefOf(Index(arg2, Local0)), Local2)
- Store(DerefOf(Index(arg2, Local1)), Local3)
- Store(DerefOf(Index(arg5, Local4)), Local5)
-
- Subtract(Local2, Local3, Local6)
-
- if (LNotEqual(Local6, Local5)) {
- if (LNot(DE00)) {
- err("m3a4", z128, 1, 0, arg6, Local6, Local5)
- Store(lpC0, Debug)
- Store(Local0, Debug)
- Store(Local1, Debug)
- Store(Local4, Debug)
- Store(Local2, Debug)
- Store(Local3, Debug)
- Store(Local5, Debug)
- Store(Local6, Debug)
- }
- Store(1, Local7)
- }
-
- Increment(Local0)
- Increment(Local1)
- Increment(Local4)
-
- Decrement(lpN0)
- Increment(lpC0)
- }
- } else {
- Store(c211, Local0)
- Store(c217, Local1)
- Store(c221, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- Store(DerefOf(Index(arg2, Local0)), Local2)
- Store(DerefOf(Index(arg2, Local1)), Local3)
- if (LNotEqual(Local2, Local3)) {
- if (LNot(DE00)) {
- err("m3a4", z128, 2, 0, arg6, Local2, Local3)
- }
- Store(1, Local7)
- }
- Increment(Local0)
- Increment(Local1)
- Decrement(lpN0)
- Increment(lpC0)
- }
- }
-
-
- // arg2-difference: acq0 == acq3 + acq5
-
-
- Store(c211, Local0)
- Store(c214, Local1)
- Store(c216, Local2)
-
- Store(c221, lpN0)
- Store(0, lpC0)
-
- While (lpN0) {
- Store(DerefOf(Index(arg2, Local0)), Local3)
- Store(DerefOf(Index(arg2, Local1)), Local4)
- Store(DerefOf(Index(arg2, Local2)), Local5)
- Add(Local4, Local5, Local6)
- if (LNotEqual(Local3, Local6)) {
- if (LNot(DE00)) {
- err("m3a4", z128, 3, 0, arg6, Local3, Local6)
- }
- Store(1, Local7)
- }
- Increment(Local0)
- Increment(Local1)
- Increment(Local2)
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-
-
- // arg2-difference: rel0 == rel1 + rel3
-
-
- Store(c217, Local0)
- Store(c218, Local1)
- Store(c21a, Local2)
-
- Store(c221, lpN0)
- Store(0, lpC0)
-
- While (lpN0) {
- Store(DerefOf(Index(arg2, Local0)), Local3)
- Store(DerefOf(Index(arg2, Local1)), Local4)
- Store(DerefOf(Index(arg2, Local2)), Local5)
- Add(Local4, Local5, Local6)
- if (LNotEqual(Local3, Local6)) {
- if (LNot(DE00)) {
- err("m3a4", z128, 4, 0, arg6, Local3, Local6)
- }
- Store(1, Local7)
- }
- Increment(Local0)
- Increment(Local1)
- Increment(Local2)
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-
-
- // Check, created Objects are identical to the benchmark ones
-
-
- if (LEqual(ObjectType(arg3), c00c)) {
-
- Store(c027, lpN0)
- Store(c21b, Local0)
- Store(0, Local1)
- While (lpN0) {
- Store(DerefOf(Index(arg2, Local0)), Local2)
- Store(DerefOf(Index(arg3, Local1)), Local3)
- if (LNotEqual(Local2, Local3)) {
- if (LNot(DE00)) {
- err("m3a4", z128, 5, 0, arg6, Local2, Local3)
- }
- Store(1, Local7)
- }
-
- Increment(Local0)
- Increment(Local1)
-
- Decrement(lpN0)
- }
- }
-
-
- // Check, deleted Objects are identical to the benchmark ones
-
-
- Store(c027, lpN0)
-
- Store(c21c, Local0)
- Store(0, Local1)
- Store(0, Local4)
-
- if (Lequal(ObjectType(arg4), c00c)) {
- Store(arg4, Local4)
- } elseif (Lequal(ObjectType(arg3), c00c)) {
- Store(arg3, Local4)
- }
-
- if (Lequal(ObjectType(Local4), c00c)) {
- While (lpN0) {
- Store(DerefOf(Index(arg2, Local0)), Local2)
- Store(DerefOf(Index(Local4, Local1)), Local3)
- if (LNotEqual(Local2, Local3)) {
- if (LNot(DE00)) {
- err("m3a4", z128, 6, 0, arg6, Local2, Local3)
- }
- Store(1, Local7)
- }
-
- Increment(Local0)
- Increment(Local1)
-
- Decrement(lpN0)
- }
- }
-
- /*
- * Reset locations of Command of arg0 and arg1
- * Packages for the following run.
- * Store(0, Index(arg0, c224))
- * Store(0, Index(arg1, c224))
- */
-
- return (Local7)
-}
-
-/*
- * Return non-zero in case the Test Command interface
- * with the ACPICA (_TCI) is supported.
- */
-Method(m3a5)
-{
- Store(m3a0(c202), Local0) // TCI_CMD_CHECK_SUPPORTED
-
- _TCI(c202, Local0)
-
- Store(DerefOf(Index(Local0, c224)), Local1)
-
- if (LNotEqual(Local1, c202)) {
- return (0)
- }
-
- return (1)
-}
-
-/*
- * Check header of Memory Consumption Statistics Package
- * arg0 - Memory Consumption Statistics Package
- * arg1 - Means:
- * 0 - _TCI-end statistics
- * otherwise - _TCI-begin statistics
- * arg2 - index of checking (inside the file)
- */
-Method(m3a6, 3)
-{
- Store(0, Local7)
-
- // Tag of command
-
- if (arg1) {
- Store(c209, Local0)
- } else {
- Store(c208, Local0)
- }
-
- Store(DerefOf(Index(arg0, 0)), Local1)
- if (LNotEqual(Local1, Local0)) {
- err("m3a6", z128, 7, 0, arg2, Local1, Local0)
- Store(1, Local7)
- }
-
- // Number of elements actually packed
-
- Store(DerefOf(Index(arg0, 1)), Local1)
- if (LNotEqual(Local1, c220)) {
- err("m3a6", z128, 8, 0, arg2, Local1, c220)
- Store(1, Local7)
- }
-
- // Command has been executed
-
- if (arg1) {
- Store(c201, Local0)
- } else {
- Store(c200, Local0)
- }
-
- Store(DerefOf(Index(arg0, 2)), Local1)
- if (LNotEqual(Local1, Local0)) {
- err("m3a6", z128, 9, 0, arg2, Local1, Local0)
- Store(1, Local7)
- }
-
- // Object cache is enabled
-
- Store(DerefOf(Index(arg0, 3)), Local1)
- if (LNot(Local1)) {
- err("m3a6", z128, 10, 0, arg2, Local1, 1)
- Store(1, Local7)
- }
-
- return (Local7)
-}
-
-/*
- * Check statistics specified by index
- *
- * arg0 - Memory Consumption Statistics Package
- * arg1 - Means:
- * non-zero - _TCI-end-begin difference Package
- * otherwise - usual Memory Consumption Statistics Package
- * arg2 - index of checking (inside the file)
- */
-Method(m3a7, 3)
-{
- Store(0, Local7)
-
- if (arg1) {
-
-/*
- // ACPI_STAT_SUCCESS_FREE == ACPI_STAT_SUCCESS_ALLOC
-
- Add(c21d, 5, Local0)
- Store(DerefOf(Index(arg0, Local0)), Local1)
- Increment(Local0)
- Store(DerefOf(Index(arg0, Local0)), Local2)
-
- if (LNotEqual(Local2, Local1)) {
- err("m3a7", z128, 11, 0, arg2, Local2, Local1)
- Store(1, Local7)
- }
-*/
-
- } else {
-
- // ACPI_STAT_INVALID_EXBUF
-
- Store(c21d, Local0)
- Store(DerefOf(Index(arg0, Local0)), Local1)
- if (Local1) {
- err("m3a7", z128, 12, 0, arg2, Local1, 0)
- Store(1, Local7)
- }
-
- // ACPI_STAT_ZONE0_CORRUPTED
-
- Increment(Local0)
- Store(DerefOf(Index(arg0, Local0)), Local1)
- if (Local1) {
- err("m3a7", z128, 13, 0, arg2, Local1, 0)
- Store(1, Local7)
- }
-
- // ACPI_STAT_ZONE1_CORRUPTED
-
- Increment(Local0)
- Store(DerefOf(Index(arg0, Local0)), Local1)
- if (Local1) {
- err("m3a7", z128, 14, 0, arg2, Local1, 0)
- Store(1, Local7)
- }
-
- // ACPI_STAT_FAILED_ALLOC
-
- Increment(Local0)
- Store(DerefOf(Index(arg0, Local0)), Local1)
- if (Local1) {
- err("m3a7", z128, 15, 0, arg2, Local1, 0)
- Store(1, Local7)
- }
-
- // ACPI_STAT_NULL_FREE
-
- Increment(Local0)
- Store(DerefOf(Index(arg0, Local0)), Local1)
- if (Local1) {
- err("m3a7", z128, 16, 0, arg2, Local1, 0)
- Store(1, Local7)
- }
- }
-
- return (Local7)
-}
-
-/*
- * Create and initialize the sample Package for the
- * per-object type benchmark Memory Consumption Statistics
- */
-Method(m3a8,, Serialized)
-{
- Name(p000, Package() {
- 0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,
- 0,0})
-
- return (p000)
-}
-
-/*
- * Create and initialize the sample Package for the
- * per-memory type benchmark Memory Consumption Statistics
- */
-Method(m3a9,, Serialized)
-{
- Name(p000, Package() {0,0,0,0,0,0,0})
-
- return (p000)
-}
-
-/*
- * Determine the flag of optimization: check that
- * processing of the Add operation corresponds to
- * the expectation: optimized/non-optimized.
- *
- * Mode of run, optimized/non-optimized, is essential
- * for this kind tests (memory consumption).
- *
- * arg0 - Means:
- * 0 - check for Optimization is tuned off
- * otherwise - check for Optimization is tuned on
- */
-Method(m3aa,, Serialized)
-{
- Name(i000, 0)
- Name(p000, Package(1) {})
- Name(p00b, Package(1) {})
-
- Store(0xff, FOPT)
-
- Store(m3a0(c200), Local0) // _TCI-end statistics
- Store(m3a0(c201), p00b) // _TCI-begin statistics
- Store(m3a0(0), Local1) // difference
-
- _TCI(c200, Local0)
- Store(Add(3, 4), i000)
- _TCI(c201, p00b)
-
- m3a3(Local0, p00b, Local1)
-
- // Statistics expected in case Optimization is tuned off
- Store(m3a8(), p000)
- Store(4, Index(p000, c009)) // Integer
-
- Store(1, DE00)
- Store(m3a4(Local0, p00b, Local1, p000, 0, 0, 0), Local6)
- Store(0, DE00)
-
- if (LEqual(Local6, 2)) {
- Store("Failed to determine the flag of optimization", Debug)
- return
- } else {
- // Statistics expected in case Optimization is tuned on
- Store(m3a8(), p000)
- Store(1, Index(p000, c009)) // Integer
-
- Store(1, DE00)
- Store(m3a4(Local0, p00b, Local1, p000, 0, 0, 1), Local7)
- Store(0, DE00)
-
- if (LEqual(Local7, 2)) {
- Store("Failed to determine the flag of optimization", Debug)
- return
- }
- }
-
- if (LEqual(Local6, Local7)) {
- Store("Internal error 0", Debug)
- err("m3aa", z128, 17, 0, 0, Local6, Local7)
- } elseif (Local6) {
- Store(1, FOPT)
- } else {
- Store(0, FOPT)
- }
-}
-
-/*
- * Return Package with the array of thread indexes
- * otherwise Integer 0.
- *
- * arg0 - number of threads
- */
-Method(m163, 1, Serialized)
-{
- Name(size, 0)
-
- Add(c22f, arg0, size)
-
- Store(m165(c203, size), Local0) // TCI_CMD_GET_ID_OF_THREADS
-
- _TCI(c203, Local0)
-
- Store(DerefOf(Index(Local0, c224)), Local1)
-
- if (LNotEqual(Local1, c203)) {
- return (0)
- }
-
- return (Local0)
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * The Test Command Interface with the ACPICA (_TCI)
+ *
+ * Note: _TCI and TCI mean the same in comments below.
+ * But, actually the name of the relevant predefined
+ * Method is _TCI.
+ */
+
+Name(z128, 128)
+
+Name(DE00, 0) // Disable reporting errors from m3a4, needed in m3aa (not enough params)
+Name(FOPT, 0) // Flag of optimization
+
+
+/*
+ * Constants
+ */
+
+// Opcodes of the Test Commands provided by _TCI
+
+Name(c200, 0xcd0000) // _TCI-end statistics
+Name(c201, 0xcd0001) // _TCI-begin statistics
+Name(c202, 0xcd0002) // TCI_CMD_CHECK_SUPPORTED
+Name(c203, 0xcd0003) // TCI_CMD_GET_ID_OF_THREADS
+
+// Tags of commands (to be filled into TCI Package by aslts)
+
+Name(c208, 0xeeee0596) // TCI_TAG_GET_MC_STAT_AFTER_TCI_TERM
+Name(c209, 0xbbbb063a) // TCI_TAG_GET_MC_STAT_BEFORE_TCI_RUN
+Name(c20a, 0xcccc07b9) // TCI_TAG_CHECK_SUPPORTED
+Name(c20b, 0xdddd01f5) // TCI_TAG_GET_ID_OF_THREADS
+
+/*
+ * The layout of the Package for Memory Consumption Statistics
+ * applied for TCI commands:
+ * _TCI-end statistics (command TCI_CMD_GET_MC_STAT_AFTER_TCI_TERM)
+ * _TCI-begin statistics (command TCI_CMD_GET_MC_STAT_BEFORE_TCI_RUN)
+ */
+Name(c210, 0) // Tittle
+Name(c211, 4) // acq0
+Name(c212, 9) // acq1 (-)
+Name(c213, 14) // acq2 (-)
+Name(c214, 19) // acq3
+Name(c215, 24) // acq4 (-)
+Name(c216, 29) // acq5
+Name(c217, 34) // rel0
+Name(c218, 39) // rel1
+Name(c219, 44) // rel2 (-)
+Name(c21a, 49) // rel3
+Name(c21b, 54) // Created Objects
+Name(c21c, 84) // Deleted Objects
+Name(c21d, 114) // Miscellaneous Stat
+
+Name(c220, 121) // the length of the Package for
+ // Memory Consumption Statistics.
+
+// The layout of header of the common _TCI Package
+
+// Input, data of header passed to ACPICA
+Name(c222, 0) // Tag of command (to be set up by aslts)
+
+// Output, data of header returned to aslts from ACPICA
+Name(c223, 1) // Size (number of elements actually packed into TCI package,
+ // to be filled by ACPICA)
+Name(c224, 2) // Cmd (command has been executed, to be filled by ACPICA)
+Name(c225, 3) // CACHE_ENABLED (object cache is enabled info flag,
+ // to be filled by ACPICA)
+Name(c22b, 4) // length of the common _TCI Package header
+
+
+// The layout of header of TCI_CMD_GET_ID_OF_THREADS command
+// (returned to aslts from ACPICA)
+Name(c22c, 4) // TCI_PACKAGE_THR_NUM
+Name(c22d, 5) // TCI_PACKAGE_THR_NUM_REAL
+Name(c22e, 6) // TCI_PACKAGE_THR_ID
+Name(c22f, 7) // length TCI_PACKAGE_THR_HEADER_SIZE
+
+
+Name(c221, 5) // CACHE_LISTS_NUMBER (Object Caches):
+ // CLIST_ID_NAMESPACE 0 /* Acpi-Namespace */
+ // CLIST_ID_STATE 1 /* Acpi-State */
+ // CLIST_ID_OPERAND 2 /* Acpi-Operand */
+ // CLIST_ID_PSNODE 3 /* Acpi-Parse */
+ // CLIST_ID_PSNODE_EXT 4 /* Acpi-ParseExt */
+
+Name(c226, 0) // CLIST_ID_NAMESPACE
+Name(c227, 1) // CLIST_ID_STATE
+Name(c228, 2) // CLIST_ID_OPERAND
+Name(c229, 3) // CLIST_ID_PSNODE
+Name(c22a, 4) // CLIST_ID_PSNODE_EXT
+
+
+/*
+ * The main Test Command interface with the ACPICA
+ *
+ * arg0 - opcode of the Test Command
+ * arg1 - Package for different needs depending on the command.
+ * So, in case of the Memory Consumption Statistics commands it
+ * is filled by ACPICA with the Memory Consumption Statistics.
+ * The length of package in this case should be not less than c220,
+ * otherwise, no any failure arises but not all data are returned
+ * by Package just only the relevant part of it. It is true for all
+ * commands.
+ * Note: use m3a0 or m165 to prepare the arg1-package.
+ */
+Method(_TCI, 2)
+{
+ /*
+ * Before to run this method reset location
+ * of Command which is to be filled by ACPICA
+ * to acknowledge the interconnection.
+ * It is performed in m3a0 and m3a4.
+ */
+ return (arg1)
+}
+
+/*
+ * Create and initialize the Package for _TCI
+ *
+ * arg0 - opcode of the Test Command.
+ * Use 0 for allocation without initialization.
+ * arg1 - number of element of Package (for some of commands)
+ *
+ * Return the resulting Package:
+ *
+ * - if arg0 is zero - the Package of c220 length
+ * - otherwise - the Package of length depending on
+ * the command is additionally initialized
+ */
+Method(m165, 2, Serialized)
+{
+ Name(num, 0)
+ Name(tag, 0)
+
+ if (arg0) {
+
+ Switch (ToInteger (arg0)) {
+ Case (0xcd0000) {
+ // _TCI-end statistics
+ Store(c208, tag)
+ Store(c220, num)
+ }
+ Case (0xcd0001) {
+ // _TCI-begin statistics
+ Store(c209, tag)
+ Store(c220, num)
+ }
+ Case (0xcd0002) {
+ // TCI_CMD_CHECK_SUPPORTED
+ Store(c20a, tag)
+ Store(c22b, num)
+ }
+ Case (0xcd0003) {
+ // TCI_CMD_GET_ID_OF_THREADS
+ Store(c20b, tag)
+ Store(arg1, num)
+ }
+ Default {
+ err("m165", z128, 0, 0, 0, arg0, 0)
+ }
+ }
+
+ if (LLess(num, c22b)) {
+ err("m165", z128, 0, 0, 0, num, c22b)
+ } else {
+ Name(p000, Package(num) {})
+ Name(lpN0, 0)
+ Name(lpC0, 0)
+ Store(num, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ Store(0, Index(p000, lpC0))
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ Store(tag, Index(p000, 0))
+ Return (p000)
+ }
+ } else {
+ Name(p001, Package(c220) {})
+ Return (p001)
+ }
+
+ Return (0)
+}
+
+/*
+ * Create and initialize the Package for simple cases
+ * entirely specified by the opcode of command.
+ *
+ * a. for Memory Consumption Statistics
+ * (_TCI-begin or _TCI-end statistics).
+ *
+ * b. TCI_CMD_CHECK_SUPPORTED
+ *
+ * arg0 - opcode of the Test Command.
+ * Use 0 for allocation without initialization.
+ *
+ * Returns the TCI Package
+ */
+Method(m3a0, 1)
+{
+ Store(m165(arg0, 0), Local0)
+
+ Return (Local0)
+}
+
+Method(m3a1, 2)
+{
+ Store(DeRefOf(Index(NMTP, arg1)), Local0)
+ Concatenate("", arg0, Local2)
+ Concatenate(Local2, " ", Local1)
+ Concatenate(Local1, Local0, Debug)
+}
+
+/*
+ * Print out the Memory Consumption Statistics Package
+ *
+ * arg0 - Memory Consumption Statistics Package
+ * arg1 - opcode of the tittle message
+ */
+Method(m3a2, 2, Serialized)
+{
+ if (LEqual(arg1, 0)) {
+ Store("==== _TCI-end statistics", Debug)
+ } elseif (LEqual(arg1, 1)) {
+ Store("==== _TCI-begin statistics", Debug)
+ } elseif (LEqual(arg1, 2)) {
+ Store("==== _TCI-end-begin difference", Debug)
+ } else {
+ Store("???", Debug)
+ }
+
+ Name(lpN0, 0)
+ Name(lpC0, 0)
+
+ Store(c220, lpN0)
+ Store(0, lpC0)
+
+ Store(0, Local1)
+ Store(0, Local2)
+
+ While (lpN0) {
+
+ if (LEqual(lpC0, c210)) {
+ Store("Tittle:", Debug)
+ } elseif (LEqual(lpC0, c211)) {
+ Store("acq0: all calls to AcpiUtAcquireFromCache", Debug)
+ } elseif (LEqual(lpC0, c212)) {
+ Store("acq1: +AcpiUtAcquireMutex", Debug)
+ } elseif (LEqual(lpC0, c213)) {
+ Store("acq2: +there is a cache object available", Debug)
+ } elseif (LEqual(lpC0, c214)) {
+ Store("acq3: +AcpiUtReleaseMutex", Debug)
+ } elseif (LEqual(lpC0, c215)) {
+ Store("acq4: +otherwise, the cache is empty, create a new object", Debug)
+ } elseif (LEqual(lpC0, c216)) {
+ Store("acq5: +AcpiUtReleaseMutex", Debug)
+ } elseif (LEqual(lpC0, c217)) {
+ Store("rel0: all calls to AcpiUtReleaseToCache", Debug)
+ } elseif (LEqual(lpC0, c218)) {
+ Store("rel1: +walk cache is full, just free this object", Debug)
+ } elseif (LEqual(lpC0, c219)) {
+ Store("rel2: +otherwise, put this object back into the cache", Debug)
+ } elseif (LEqual(lpC0, c21a)) {
+ Store("rel3: +AcpiUtAcquireMutex", Debug)
+ } elseif (LEqual(lpC0, c21b)) {
+ Store("Created Objects:", Debug)
+ } elseif (LEqual(lpC0, c21c)) {
+ Store("Deleted Objects:", Debug)
+ } elseif (LEqual(lpC0, c21d)) {
+ Store("Miscellaneous Stat:", Debug)
+ }
+
+ if (LGreaterEqual(lpC0, c21d)) {
+ Store(DerefOf(Index(arg0, lpC0)), Debug)
+ } elseif (LGreaterEqual(lpC0, c21c)) {
+ Store(DerefOf(Index(arg0, lpC0)), Local0)
+ m3a1(Local0, Local1)
+ Increment(Local1)
+ } elseif (LGreaterEqual(lpC0, c21b)) {
+ Store(DerefOf(Index(arg0, lpC0)), Local0)
+ m3a1(Local0, Local2)
+ Increment(Local2)
+ } else {
+ Store(DerefOf(Index(arg0, lpC0)), Debug)
+ }
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+}
+
+/*
+ * Calculate the difference between the two
+ * Memory Consumption Statistics Packages.
+ *
+ * arg0 - Package of _TCI-end statistics
+ * arg1 - Package of _TCI-begin statistics
+ * arg2 - Package for _TCI-end-begin difference
+ */
+Method(m3a3, 3, Serialized)
+{
+ Name(lpN0, 0)
+ Name(lpC0, 0)
+
+ Store(c220, lpN0)
+ Store(0, lpC0)
+
+ While (lpN0) {
+ Store(DerefOf(Index(arg0, lpC0)), Local0)
+ Store(DerefOf(Index(arg1, lpC0)), Local1)
+ Subtract(Local1, Local0, Local2)
+ Store(Local2, Index(arg2, lpC0))
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+}
+
+/*
+ * Verify difference of Memory Consumption Statistics between
+ * two points: _TCI-end statistics and _TCI-begin statistics
+ * (and reset locations of Command of arg0 and arg1 Packages
+ * for the following run).
+ *
+ * Check that the Memory Consumption Statistics measured at the first point
+ * as '_TCI-end statistics' was then changed as expected to the second point
+ * where statistics was measured as '_TCI-begin statistics'. Between these
+ * two points we initiate some AML activity which involves the memory
+ * consumption acquire/release to be then analyzed and verified.
+ *
+ *
+ * arg0 - Package of _TCI-end statistics
+ * arg1 - Package of _TCI-begin statistics
+ * arg2 - Package for _TCI-end-begin difference
+ * arg3 - Package with the benchmark information on Created Objects
+ * arg4 - Package with the benchmark information on Deleted Objects
+ * (if non-Package, then arg3 is used)
+ * arg5 - Package with the benchmark information on memory acq0 and rel0
+ * (if non-Package, then compare acq0 and rel0 of arg2,
+ * otherwise, arg5 is a Package with the expected per-memory
+ * type differencies, expected: acq0[i] - rel0[i] = arg5[i])
+ * arg6 - index of checking (inside the file)
+ *
+ * Return:
+ * 0 - success
+ * 1 - incorrect Memory Consumption Statistics encountered
+ * otherwise - failed to determine the Memory Consumption Statistics
+ *
+ * See: the time of execution can be reduced (design and use additional flags):
+ * - exclude initialization before each operation
+ * (ACPICA writes all elements, benchmarks for the
+ * following sub-test mostly differ previous ones)
+ * - restrict checkings (use flag) by the acq0 & rel0,
+ * and add & del.
+ */
+Method(m3a4, 7, Serialized)
+{
+
+ // Flag of printing
+ Name(pr1, 0)
+ Name(pr2, 0)
+
+ Name(lpN0, 0)
+ Name(lpC0, 0)
+
+ if (pr1) {
+ m3a2(arg0, 0)
+ m3a2(arg1, 1)
+ }
+
+ if (pr2) {
+ m3a2(arg2, 2)
+ }
+
+ Store(0, Local7)
+
+
+ // Check headers of Packages
+
+
+ if (m3a6(arg0, 0, arg6)) {
+ Store(2, Local7)
+ }
+
+ if (m3a6(arg1, 1, arg6)) {
+ Store(2, Local7)
+ }
+
+
+ // Check statistics specified by index
+
+
+ if (m3a7(arg0, 0, arg6)) {
+ Store(2, Local7)
+ }
+
+ if (m3a7(arg1, 0, arg6)) {
+ Store(2, Local7)
+ }
+
+ if (m3a7(arg2, 1, arg6)) {
+ Store(2, Local7)
+ }
+
+
+ /*
+ * acq0 and rel0 of arg2-difference
+ * are to be equal each to another
+ * (or correspond to arg5):
+ */
+
+
+ if (LEqual(ObjectType(arg5), c00c)) {
+ Store(c211, Local0)
+ Store(c217, Local1)
+ Store(0, Local4)
+
+ Store(c221, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ Store(DerefOf(Index(arg2, Local0)), Local2)
+ Store(DerefOf(Index(arg2, Local1)), Local3)
+ Store(DerefOf(Index(arg5, Local4)), Local5)
+
+ Subtract(Local2, Local3, Local6)
+
+ if (LNotEqual(Local6, Local5)) {
+ if (LNot(DE00)) {
+ err("m3a4", z128, 1, 0, arg6, Local6, Local5)
+ Store(lpC0, Debug)
+ Store(Local0, Debug)
+ Store(Local1, Debug)
+ Store(Local4, Debug)
+ Store(Local2, Debug)
+ Store(Local3, Debug)
+ Store(Local5, Debug)
+ Store(Local6, Debug)
+ }
+ Store(1, Local7)
+ }
+
+ Increment(Local0)
+ Increment(Local1)
+ Increment(Local4)
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ } else {
+ Store(c211, Local0)
+ Store(c217, Local1)
+ Store(c221, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ Store(DerefOf(Index(arg2, Local0)), Local2)
+ Store(DerefOf(Index(arg2, Local1)), Local3)
+ if (LNotEqual(Local2, Local3)) {
+ if (LNot(DE00)) {
+ err("m3a4", z128, 2, 0, arg6, Local2, Local3)
+ }
+ Store(1, Local7)
+ }
+ Increment(Local0)
+ Increment(Local1)
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ }
+
+
+ // arg2-difference: acq0 == acq3 + acq5
+
+
+ Store(c211, Local0)
+ Store(c214, Local1)
+ Store(c216, Local2)
+
+ Store(c221, lpN0)
+ Store(0, lpC0)
+
+ While (lpN0) {
+ Store(DerefOf(Index(arg2, Local0)), Local3)
+ Store(DerefOf(Index(arg2, Local1)), Local4)
+ Store(DerefOf(Index(arg2, Local2)), Local5)
+ Add(Local4, Local5, Local6)
+ if (LNotEqual(Local3, Local6)) {
+ if (LNot(DE00)) {
+ err("m3a4", z128, 3, 0, arg6, Local3, Local6)
+ }
+ Store(1, Local7)
+ }
+ Increment(Local0)
+ Increment(Local1)
+ Increment(Local2)
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+
+
+ // arg2-difference: rel0 == rel1 + rel3
+
+
+ Store(c217, Local0)
+ Store(c218, Local1)
+ Store(c21a, Local2)
+
+ Store(c221, lpN0)
+ Store(0, lpC0)
+
+ While (lpN0) {
+ Store(DerefOf(Index(arg2, Local0)), Local3)
+ Store(DerefOf(Index(arg2, Local1)), Local4)
+ Store(DerefOf(Index(arg2, Local2)), Local5)
+ Add(Local4, Local5, Local6)
+ if (LNotEqual(Local3, Local6)) {
+ if (LNot(DE00)) {
+ err("m3a4", z128, 4, 0, arg6, Local3, Local6)
+ }
+ Store(1, Local7)
+ }
+ Increment(Local0)
+ Increment(Local1)
+ Increment(Local2)
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+
+
+ // Check, created Objects are identical to the benchmark ones
+
+
+ if (LEqual(ObjectType(arg3), c00c)) {
+
+ Store(c027, lpN0)
+ Store(c21b, Local0)
+ Store(0, Local1)
+ While (lpN0) {
+ Store(DerefOf(Index(arg2, Local0)), Local2)
+ Store(DerefOf(Index(arg3, Local1)), Local3)
+ if (LNotEqual(Local2, Local3)) {
+ if (LNot(DE00)) {
+ err("m3a4", z128, 5, 0, arg6, Local2, Local3)
+ }
+ Store(1, Local7)
+ }
+
+ Increment(Local0)
+ Increment(Local1)
+
+ Decrement(lpN0)
+ }
+ }
+
+
+ // Check, deleted Objects are identical to the benchmark ones
+
+
+ Store(c027, lpN0)
+
+ Store(c21c, Local0)
+ Store(0, Local1)
+ Store(0, Local4)
+
+ if (Lequal(ObjectType(arg4), c00c)) {
+ Store(arg4, Local4)
+ } elseif (Lequal(ObjectType(arg3), c00c)) {
+ Store(arg3, Local4)
+ }
+
+ if (Lequal(ObjectType(Local4), c00c)) {
+ While (lpN0) {
+ Store(DerefOf(Index(arg2, Local0)), Local2)
+ Store(DerefOf(Index(Local4, Local1)), Local3)
+ if (LNotEqual(Local2, Local3)) {
+ if (LNot(DE00)) {
+ err("m3a4", z128, 6, 0, arg6, Local2, Local3)
+ }
+ Store(1, Local7)
+ }
+
+ Increment(Local0)
+ Increment(Local1)
+
+ Decrement(lpN0)
+ }
+ }
+
+ /*
+ * Reset locations of Command of arg0 and arg1
+ * Packages for the following run.
+ * Store(0, Index(arg0, c224))
+ * Store(0, Index(arg1, c224))
+ */
+
+ return (Local7)
+}
+
+/*
+ * Return non-zero in case the Test Command interface
+ * with the ACPICA (_TCI) is supported.
+ */
+Method(m3a5)
+{
+ Store(m3a0(c202), Local0) // TCI_CMD_CHECK_SUPPORTED
+
+ _TCI(c202, Local0)
+
+ Store(DerefOf(Index(Local0, c224)), Local1)
+
+ if (LNotEqual(Local1, c202)) {
+ return (0)
+ }
+
+ return (1)
+}
+
+/*
+ * Check header of Memory Consumption Statistics Package
+ * arg0 - Memory Consumption Statistics Package
+ * arg1 - Means:
+ * 0 - _TCI-end statistics
+ * otherwise - _TCI-begin statistics
+ * arg2 - index of checking (inside the file)
+ */
+Method(m3a6, 3)
+{
+ Store(0, Local7)
+
+ // Tag of command
+
+ if (arg1) {
+ Store(c209, Local0)
+ } else {
+ Store(c208, Local0)
+ }
+
+ Store(DerefOf(Index(arg0, 0)), Local1)
+ if (LNotEqual(Local1, Local0)) {
+ err("m3a6", z128, 7, 0, arg2, Local1, Local0)
+ Store(1, Local7)
+ }
+
+ // Number of elements actually packed
+
+ Store(DerefOf(Index(arg0, 1)), Local1)
+ if (LNotEqual(Local1, c220)) {
+ err("m3a6", z128, 8, 0, arg2, Local1, c220)
+ Store(1, Local7)
+ }
+
+ // Command has been executed
+
+ if (arg1) {
+ Store(c201, Local0)
+ } else {
+ Store(c200, Local0)
+ }
+
+ Store(DerefOf(Index(arg0, 2)), Local1)
+ if (LNotEqual(Local1, Local0)) {
+ err("m3a6", z128, 9, 0, arg2, Local1, Local0)
+ Store(1, Local7)
+ }
+
+ // Object cache is enabled
+
+ Store(DerefOf(Index(arg0, 3)), Local1)
+ if (LNot(Local1)) {
+ err("m3a6", z128, 10, 0, arg2, Local1, 1)
+ Store(1, Local7)
+ }
+
+ return (Local7)
+}
+
+/*
+ * Check statistics specified by index
+ *
+ * arg0 - Memory Consumption Statistics Package
+ * arg1 - Means:
+ * non-zero - _TCI-end-begin difference Package
+ * otherwise - usual Memory Consumption Statistics Package
+ * arg2 - index of checking (inside the file)
+ */
+Method(m3a7, 3)
+{
+ Store(0, Local7)
+
+ if (arg1) {
+
+/*
+ // ACPI_STAT_SUCCESS_FREE == ACPI_STAT_SUCCESS_ALLOC
+
+ Add(c21d, 5, Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local1)
+ Increment(Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local2)
+
+ if (LNotEqual(Local2, Local1)) {
+ err("m3a7", z128, 11, 0, arg2, Local2, Local1)
+ Store(1, Local7)
+ }
+*/
+
+ } else {
+
+ // ACPI_STAT_INVALID_EXBUF
+
+ Store(c21d, Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local1)
+ if (Local1) {
+ err("m3a7", z128, 12, 0, arg2, Local1, 0)
+ Store(1, Local7)
+ }
+
+ // ACPI_STAT_ZONE0_CORRUPTED
+
+ Increment(Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local1)
+ if (Local1) {
+ err("m3a7", z128, 13, 0, arg2, Local1, 0)
+ Store(1, Local7)
+ }
+
+ // ACPI_STAT_ZONE1_CORRUPTED
+
+ Increment(Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local1)
+ if (Local1) {
+ err("m3a7", z128, 14, 0, arg2, Local1, 0)
+ Store(1, Local7)
+ }
+
+ // ACPI_STAT_FAILED_ALLOC
+
+ Increment(Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local1)
+ if (Local1) {
+ err("m3a7", z128, 15, 0, arg2, Local1, 0)
+ Store(1, Local7)
+ }
+
+ // ACPI_STAT_NULL_FREE
+
+ Increment(Local0)
+ Store(DerefOf(Index(arg0, Local0)), Local1)
+ if (Local1) {
+ err("m3a7", z128, 16, 0, arg2, Local1, 0)
+ Store(1, Local7)
+ }
+ }
+
+ return (Local7)
+}
+
+/*
+ * Create and initialize the sample Package for the
+ * per-object type benchmark Memory Consumption Statistics
+ */
+Method(m3a8,, Serialized)
+{
+ Name(p000, Package() {
+ 0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,
+ 0,0})
+
+ return (p000)
+}
+
+/*
+ * Create and initialize the sample Package for the
+ * per-memory type benchmark Memory Consumption Statistics
+ */
+Method(m3a9,, Serialized)
+{
+ Name(p000, Package() {0,0,0,0,0,0,0})
+
+ return (p000)
+}
+
+/*
+ * Determine the flag of optimization: check that
+ * processing of the Add operation corresponds to
+ * the expectation: optimized/non-optimized.
+ *
+ * Mode of run, optimized/non-optimized, is essential
+ * for this kind tests (memory consumption).
+ *
+ * arg0 - Means:
+ * 0 - check for Optimization is tuned off
+ * otherwise - check for Optimization is tuned on
+ */
+Method(m3aa,, Serialized)
+{
+ Name(i000, 0)
+ Name(p000, Package(1) {})
+ Name(p00b, Package(1) {})
+
+ Store(0xff, FOPT)
+
+ Store(m3a0(c200), Local0) // _TCI-end statistics
+ Store(m3a0(c201), p00b) // _TCI-begin statistics
+ Store(m3a0(0), Local1) // difference
+
+ _TCI(c200, Local0)
+ Store(Add(3, 4), i000)
+ _TCI(c201, p00b)
+
+ m3a3(Local0, p00b, Local1)
+
+ // Statistics expected in case Optimization is tuned off
+ Store(m3a8(), p000)
+ Store(4, Index(p000, c009)) // Integer
+
+ Store(1, DE00)
+ Store(m3a4(Local0, p00b, Local1, p000, 0, 0, 0), Local6)
+ Store(0, DE00)
+
+ if (LEqual(Local6, 2)) {
+ Store("Failed to determine the flag of optimization", Debug)
+ return
+ } else {
+ // Statistics expected in case Optimization is tuned on
+ Store(m3a8(), p000)
+ Store(1, Index(p000, c009)) // Integer
+
+ Store(1, DE00)
+ Store(m3a4(Local0, p00b, Local1, p000, 0, 0, 1), Local7)
+ Store(0, DE00)
+
+ if (LEqual(Local7, 2)) {
+ Store("Failed to determine the flag of optimization", Debug)
+ return
+ }
+ }
+
+ if (LEqual(Local6, Local7)) {
+ Store("Internal error 0", Debug)
+ err("m3aa", z128, 17, 0, 0, Local6, Local7)
+ } elseif (Local6) {
+ Store(1, FOPT)
+ } else {
+ Store(0, FOPT)
+ }
+}
+
+/*
+ * Return Package with the array of thread indexes
+ * otherwise Integer 0.
+ *
+ * arg0 - number of threads
+ */
+Method(m163, 1, Serialized)
+{
+ Name(size, 0)
+
+ Add(c22f, arg0, size)
+
+ Store(m165(c203, size), Local0) // TCI_CMD_GET_ID_OF_THREADS
+
+ _TCI(c203, Local0)
+
+ Store(DerefOf(Index(Local0, c224)), Local1)
+
+ if (LNotEqual(Local1, c203)) {
+ return (0)
+ }
+
+ return (Local0)
+}
diff --git a/tests/aslts/src/runtime/common/conversion/oDECL.asl b/tests/aslts/src/runtime/common/conversion/oDECL.asl
index 3d99b0abd..4de53ebad 100644
--- a/tests/aslts/src/runtime/common/conversion/oDECL.asl
+++ b/tests/aslts/src/runtime/common/conversion/oDECL.asl
@@ -1,33 +1,33 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// Implicit Source Operand Conversion
-
-Include("../../../../runtime/common/operations.asl")
-Include("../../../../runtime/common/conversion/oproc.asl")
-Include("../../../../runtime/common/conversion/otest.asl")
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// Implicit Source Operand Conversion
+
+Include("../../../../runtime/common/operations.asl")
+Include("../../../../runtime/common/conversion/oproc.asl")
+Include("../../../../runtime/common/conversion/otest.asl")
diff --git a/tests/aslts/src/runtime/common/conversion/oproc.asl b/tests/aslts/src/runtime/common/conversion/oproc.asl
index 301eff5d3..1402bbcc0 100644
--- a/tests/aslts/src/runtime/common/conversion/oproc.asl
+++ b/tests/aslts/src/runtime/common/conversion/oproc.asl
@@ -1,1074 +1,1074 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/*
-
- ============================
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- IT IS IN PROGRESS !!!!!!!!!!
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- ============================
-
-SEE: ????????????
-
-1) Add 0 into the middle of any Buffer
-2) Do BOTH directions for Concatenation:
- - First argument - String
- - First argument - Buffer
-3) Extend the test, if possible, for all the operators
-4) add method m480 with the different objects creations.
-5) change Name(ss08, "1234567890abCdeF")
- to Name(ss08, "1234567830abCdeF")
-6) do the same as m480() but use LocalX instead ArgX
- in Operators invocations:
- Store(Add(Local0, Local1, Local7), local7)
-*/
-
-// Methods for Conversion tests
-//
-// (low number of available arguments {Arg0-Arg6} complicates algorithms).
-//
-// Currently from the mask of exceptions to be forced are excluded bits
-// corresponding to the following types ("dont know how" have to be added):
-//
-// - Method (dont know how)
-// - Thermal Zones (dont know how)
-// - DDB Handle (dont know how)
-// - Debug Object (impossible, Compiler refuses)
-// - Uninitialized (update needed, currently the test is implemented incorrectly.
-// Uninitialized type have to be passed immediately as operands
-// in m480).
-//
-// Currently excluded from all the total scales of unacceptable types
-// (to be added later):
-//
-// 0x0100 - Method
-// 0x2000 - Thermal Zone
-// 0x8000 - DDB Handle
-//
-// Total scale of acceptable types:
-//
-// int - 0xc02e - Integer, String, Buffer, Field Unit, Buffer Field, DDB Handle
-//
-
-// NOTE: many entries are commented not to cause crashes.
-// Have to be uncommented after ACPICA will be fixed.
-//
-
-Name(z064, 64)
-
-// Commutative two operands operation
-// (CAUTION: dont forget to clean it)
-Name(com2, 0)
-
-// Flags exception expected
-// (needed due to the lack of Arguments number)
-Name(FLG0, 0x19283746)
-
-// Flag - verify result with the contents of Package
-Name(FLG1, 0)
-
-// Package contains benchmarks of results
-Name(PKG0, Package(1) {0x10000001})
-Name(PKG1, Package(1) {0x11111111})
-Name(PKG2, Package(1) {0x22222222})
-
-Name(df00, 0)
-Name(df01, 0)
-Name(df02, 0)
-Name(df03, 0)
-Name(df04, 0)
-Event(e000)
-Mutex(mx00, 0)
-Name(i000, 0x58765432)
-Name(i001, 0xabcdefabaabbccdd)
-Name(s000, "qwrt")
-Name(b001, Buffer() {0x91,0x22,0x83})
-Name(p08b, Package() {19,27})
-Device(dv00) {}
-Method(m4a3) { return (0) }
-OperationRegion(rg00, SystemMemory, 0x100, 0x100)
-Field(rg00, ByteAcc, NoLock, Preserve) { fr20, 7 }
-PowerResource(pwr0, 1, 0) {Method(m000){return (0)}}
-Processor(prc0, 0, 0xFFFFFFFF, 0) {}
-Name(b002, Buffer(100) {})
-CreateDWordField(b002, 3, bfz0)
-
-
-// Return object of required type
-//
-// arg0 - type of object
-Method(m484, 1, Serialized)
-{
- Name(ts, "m484")
-
- Event(e001)
- Mutex(mx01, 0)
-
- Name(ss01, "svnmjkl")
- Name(ss02, "1234zyq")
- Name(ss03, "abcdefzyq")
- Name(ss04, "9876")
- Name(ss05, "aBcD")
- Name(ss06, "1234567890987654")
- Name(ss07, "daFeCBaabbddffee")
- Name(ss08, "1234567890abCdeF")
- Name(ss09, "FdeAcb0132547698")
- Name(ss0a, "12345678909876540")
- Name(ss0b, "fdeacb01325476980")
- Name(ss0c, "123456789011223344556677889998765432199983337744")
- Name(ss0d, "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd")
- Name(ss0e, "1234567890abcdef9876543210fedbca1122334455667788fdeacb")
- Name(ss0f, "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb")
- Name(ss10, "123456789011223344556677889998765432199983337744z")
- Name(ss11, "0xF1dAB98e0D794Bc5")
-
- Name(bb01, Buffer() {0x80})
- Name(bb02, Buffer() {0x81,0x82})
- Name(bb03, Buffer() {0x83,0x84,0x85,0x86})
- Name(bb04, Buffer() {0x87,0x98,0x99,0x9a,0x9b})
- Name(bb05, Buffer() {0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3})
- Name(bb06, Buffer() {0xa4,0xa5,0xa6,0xa7,0xb8,0xb9,0xba,0xbb,0xbc})
- Name(bb07, Buffer(200) {
- 0x91, 0x92, 0x93, 0x94, 95, 96, 97, 98, 99, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
- 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
- 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
- 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
- 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
- 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
- 193,194,195,196,197,198,199,200})
- Name(bb08, Buffer(257) {
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
- 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
- 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
- 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
- 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
- 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
- 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
- 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
- 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
- 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255, 0, 1})
-
- // Field Units
-
- OperationRegion(r001, SystemMemory, 0x100, 0x100)
-
- Field(r001, ByteAcc, NoLock, Preserve) {
- f001, 3,
- f002, 8,
- f003, 16,
- f004, 32,
- f005, 33,//33
- f006, 63,//63
- f007, 64,//64
- f008, 65,//65
- f009, 127,
- f00a, 257,
- // f00b, 201*8, do it also
- }
-
- // Buffer Fields
-
- Name(bb09, Buffer(200) {})
-
- CreateField(bb09, 1, 3, bf01)
- CreateField(bb09, 4, 8, bf02)
- CreateField(bb09, 12, 16, bf03)
- CreateField(bb09, 28, 32, bf04)
- CreateField(bb09, 60, 33, bf05)
- CreateField(bb09, 93, 63, bf06)//93
- CreateField(bb09, 156, 64, bf07)//156
- CreateField(bb09, 220, 65, bf08)//220
- CreateField(bb09, 285, 127, bf09)//285
- CreateField(bb09, 412, 257, bf0a)//412
-
-// CreateField(bb09, xxx, 201*8, bf0b)
-
- CreateDWordField(bb09, 151, bf0b)
-
- /////////////////////////////////////////////////////////////////////
-
- Store(0xff, fr20)
- Store(0xff, f001)
- Store(0x8a8b8c8d, f002)
- Store(0x8a8b8c8d, f003)
- Store(0x8a8b8c8d, f004)
- Store(Buffer() {0xff,0xff,0xff,0xff,0xff}, f005)
- Store(Buffer() {0x58,0x46,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, f006)
- Store(Buffer() {0x58,0x9a,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, f007)
- Store(Buffer() {0x58,0xc7,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, f008)
- Store(Buffer() {0x82,0x34,0x56,0x78,0x90,0xab,0xcd,0xef,0x55}, f009)
- Store(Buffer() {0x93,0xab,0xcd,0xef,0x99,0x12,0xcd,0x52,0x87}, f00a)
-
- Store(0x918654ab, bfz0)
- Store(0xff, bf01)
- Store(0x8a8b8c8d, bf02)
- Store(0x8a8b8c8d, bf03)
- Store(0x8a8b8c8d, bf04)
- Store(Buffer() {0xff,0xff,0xff,0xff,0xff}, bf05)
- Store(Buffer() {0x58,0x46,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, bf06)
- Store(Buffer() {0x58,0x9a,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, bf07)
- Store(Buffer() {0x58,0xc7,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, bf08)
- Store(Buffer() {0x82,0x34,0x56,0x78,0x90,0xab,0xcd,0xef,0x55}, bf09)
- Store(Buffer() {0x93,0xab,0xcd,0xef,0x99,0x12,0xcd,0x52,0x87}, bf0a)
-
- Store(0xa2b3c4d5, bf0b)
-
- /////////////////////////////////////////////////////////////////////
-
- Name(pp01, Package() {19})
- Device(dv01) {}
- Method(m001) { return (0) }
- OperationRegion(r002, SystemMemory, 0x100, 0x100)
- PowerResource(pwr1, 1, 0) {Method(m000){return (0)}}
- Processor(pr01, 0, 0xFFFFFFFF, 0) {}
-
- Store(0, Local7)
-
- switch (ToInteger(Arg0)) {
-
- // Uninitialized
-
- /*
- * case (0x000) {
- * }
- */
-
- // Integers
-
- case (0x100) {
- Store(i000, Local7)
- }
- case (0x101) {
- Store(i001, Local7)
- }
- case (0x102) {
- Store(0x12345678, Local7)
- }
- case (0x103) {
- Store(0xabedf18942345678, Local7)
- }
- case (0x104) {
- Store(Zero, Local7)
- }
- case (0x105) {
- Store(One, Local7)
- }
- case (0x106) {
- Store(Ones, Local7)
- }
- case (0x107) {
- Store(Revision, Local7)
- }
- case (0x108) {
- Store(0x123, Local7)
- }
- case (0x109) {
- Store(11, Local7)
- }
-
- // Strings
-
- case (0x200) {
- Store(s000, Local7)
- }
- case (0x201) {
- Store(ss01, Local7)
- }
- case (0x202) {
- Store(ss02, Local7)
- }
- case (0x203) {
- Store(ss03, Local7)
- }
- case (0x204) {
- Store(ss04, Local7)
- }
- case (0x205) {
- Store(ss05, Local7)
- }
- case (0x206) {
- Store(ss06, Local7)
- }
- case (0x207) {
- Store(ss07, Local7)
- }
- case (0x208) {
- Store(ss08, Local7)
- }
- case (0x209) {
- Store(ss09, Local7)
- }
- case (0x20a) {
- Store(ss0a, Local7)
- }
- case (0x20b) {
- Store(ss0b, Local7)
- }
- case (0x20c) {
- Store(ss0c, Local7)
- }
- case (0x20d) {
- Store(ss0d, Local7)
- }
- case (0x20e) {
- Store(ss0e, Local7)
- }
- case (0x20f) {
- Store(ss0f, Local7)
- }
- case (0x210) {
- Store(ss10, Local7)
- }
- case (0x211) {
- Store(ss11, Local7)
- }
-
- // Buffers
-
- case (0x300) {
- Store(b001, Local7)
- }
- case (0x301) {
- Store(bb01, Local7)
- }
- case (0x302) {
- Store(bb02, Local7)
- }
- case (0x303) {
- Store(bb03, Local7)
- }
- case (0x304) {
- Store(bb04, Local7)
- }
- case (0x305) {
- Store(bb05, Local7)
- }
- case (0x306) {
- Store(bb06, Local7)
- }
- case (0x307) {
- Store(bb07, Local7)
- }
- case (0x308) {
- Store(bb08, Local7)
- }
-
- // Packages
-
- case (0x400) {
- Store(p08b, Local7)
- }
- case (0x401) {
- Store(pp01, Local7)
- }
-
- // Field Units
-
- case (0x500) {
- Store(fr20, Local7)
- }
- case (0x501) {
- Store(f001, Local7)
- }
- case (0x502) {
- Store(f002, Local7)
- }
- case (0x503) {
- Store(f003, Local7)
- }
- case (0x504) {
- Store(f004, Local7)
- }
- case (0x505) {
- Store(f005, Local7)
- }
- case (0x506) {
- Store(f006, Local7)
- }
- case (0x507) {
- Store(f007, Local7)
- }
- case (0x508) {
- Store(f008, Local7)
- }
- case (0x509) {
- Store(f009, Local7)
- }
- case (0x50a) {
- Store(f00a, Local7)
- }
-
- // Devices
-
- case (0x600) {
- Store(dv00, Local7)
- }
- case (0x601) {
- Store(dv01, Local7)
- }
-
- // Events
-
- case (0x700) {
- Store(e000, Local7)
- }
- case (0x701) {
- Store(e001, Local7)
- }
-
- // Methods
-
- case (0x800) {
- Store(m4a3, Local7)
- }
- case (0x801) {
- Store(m001, Local7)
- }
-
- // Mutexes
-
- case (0x900) {
- Store(mx00, Local7)
- }
- case (0x901) {
- Store(mx01, Local7)
- }
-
- // Operation Regions
-
- case (0xa00) {
- Store(rg00, Local7)
- }
- case (0xa01) {
- Store(r001, Local7)
- }
- case (0xa02) {
- Store(r002, Local7)
- }
-
- // Power Resources
-
- case (0xb00) {
- Store(pwr0, Local7)
- }
- case (0xb01) {
- Store(pwr1, Local7)
- }
-
- // Processor
-
- case (0xc00) {
- Store(prc0, Local7)
- }
- case (0xc01) {
- Store(pr01, Local7)
- }
-
- // Thermal Zones
-
- /*
- * case (0xd00) {
- * Store(Debug, Local7)
- * }
- */
-
- // Buffer Field
-
- case (0xe00) {
- Store(bfz0, Local7)
- }
- case (0xe01) {
- Store(bf01, Local7)
- }
- case (0xe02) {
- Store(bf02, Local7)
- }
- case (0xe03) {
- Store(bf03, Local7)
- }
- case (0xe04) {
- Store(bf04, Local7)
- }
- case (0xe05) {
- Store(bf05, Local7)
- }
- case (0xe06) {
- Store(bf06, Local7)
- }
- case (0xe07) {
- Store(bf07, Local7)
- }
- case (0xe08) {
- Store(bf08, Local7)
- }
- case (0xe09) {
- Store(bf09, Local7)
- }
- case (0xe0a) {
- Store(bf0a, Local7)
- }
- case (0xe0b) {
- Store(bf0b, Local7)
- }
-
- // DDB Handle
-
- /*
- * case (0xf00) {
- * Store(Debug, Local7)
- * }
- */
-
- // Debug Object
-
- /*
- * case (0x1000) {
- * Store(Debug, Local7)
- * }
- */
-
- default {
- if (LNotEqual(arg0, 0)) {
- err("----------- ERROR, m484: incorrect Arg0:", z064, 0, 0, 0, 0, 0)
- Store(arg0, Debug)
- }
- }
- }
-
- return (Local7)
-}
-
-// arg0 - opcode of operation
-// arg1 - type of 0-th argument
-// arg2 - type of 1-th argument
-// arg3 - type of 2-th argument
-// arg4 - type of 3-th argument
-// arg5 - type of 4-th argument
-// arg6 - {Ones - flag of exception, otherwise - index of result pair}
-Method(m485, 7, Serialized)
-{
- if (0) {
- Store("##################################################################", Debug)
- Store(arg6, Debug)
- }
-
- Name(ts, "m485")
- Name(ex00, 0)
- Name(tmp0, 0)
-
- if (LEqual(arg6, FLG0)) {
- Store(1, ex00)
- } else {
- Store(m48c(PKG1, arg6), Local5)
- Store(ObjectType(Local5), Local7)
- if (LEqual(Local7, 2)) {
- if (LEqual(Local5, "Exc")) {
- Store(1, ex00)
- }
- }
- }
-
- Store(0, Local7)
-
- // m482:
- //
- // arg0-arg4 - parameters of operators
- // arg5 - miscellaneous
- // arg6 - opcode of operation
-
-
-/*
- * //// ?????????????????????????
- * Uninitialized data should be passed to the operators immediately
- * in the m480 but not here to these Store opreations!!!!!!!!!!!!!!
- * But this will a few complicate m480 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- * //// ?????????????????????????
- */
-
- // Parameters (if not to save them Uninitialized)
- if (LNotEqual(arg1, 0xfff)) {
- Store(m484(arg1), Local0)
- }
- if (LNotEqual(arg2, 0xfff)) {
- Store(m484(arg2), Local1)
- }
- if (LNotEqual(arg3, 0xfff)) {
- Store(m484(arg3), Local2)
- }
- if (LNotEqual(arg4, 0xfff)) {
- Store(m484(arg4), Local3)
- }
- if (LNotEqual(arg5, 0xfff)) {
- Store(m484(arg5), Local4)
- }
-
- if (ex00) {
- Store(FLG2, tmp0)
- CH03(ts, z064, 0, 0, 0)
- }
-
- Store(m482(Local0, Local1, Local2, Local3, Local4, tmp0, arg0), Local7)
-
- if (ex00) {
- CH04(ts, 0, 0xff, z064, 1, 0, 0)
- } elseif (FLG1) {
- // Verify the first result
- m489(ts, Local7, Local5)
- }
-
- if (com2) {
-
- // The same operation but the first two arguments interchange
-
- if (LNotEqual(arg6, FLG0)) {
- if (LEqual(com2, 2)) {
- Store(0, ex00)
- Store(m48c(PKG2, arg6), Local5)
- Store(ObjectType(Local5), Local7)
- if (LEqual(Local7, 2)) {
- if (LEqual(Local5, "Exc")) {
- Store(1, ex00)
- }
- }
- }
- }
-
- if (ex00) {
- CH03(ts, z064, 2, 0, 0)
- }
-
- Store(m482(Local1, Local0, Local2, Local3, Local4, tmp0, arg0), Local7)
-
- if (ex00) {
- CH04(ts, 0, 0xff, z064, 3, 0, 0)
- } elseif (FLG1) {
- // Verify the second result
- m489(ts, Local7, Local5)
- }
- }
-
- return (Local7)
-}
-
-// Init all parameters as non-usable
-Method(m486)
-{
- Store(0, df00)
- Store(0, df01)
- Store(0, df02)
- Store(0, df03)
- Store(0, df04)
-}
-
-// Return the object of required type.
-// Allowed types are {1-12,14}, == 0x5fff.
-// Returned 0xfff is flag of "Uninitialized".
-//
-// These have to be implemented:
-//
-// Method, Thermal Zone, DDB Handle
-//
-Method(m487, 1, Serialized)
-{
- switch (ToInteger (Arg0)) {
-
- case (0) {
- // Uninitialized
- Store(0xfff, Local7)
- }
- case (1) {
- // Integers
- Store(0x100, Local7)
- }
- case (2) {
- // Strings
- Store(0x204, Local7)
- }
- case (3) {
- // Buffers
- Store(0x300, Local7)
- }
- case (4) {
- // Packages
- Store(0x400, Local7)
- }
- case (5) {
- // Field Units
- Store(0x500, Local7)
- }
- case (6) {
- // Devices
- Store(0x600, Local7)
- }
- case (7) {
- // Events
- Store(0x700, Local7)
- }
- case (8) {
- // Methods
- Store(0x800, Local7)
- }
- case (9) {
- // Mutexes
- Store(0x900, Local7)
- }
- case (10) {
- // Operation Regions
- Store(0xa00, Local7)
- }
- case (11) {
- // Power Resources
- Store(0xb00, Local7)
- }
- case (12) {
- // Processor
- Store(0xc00, Local7)
- }
- /*
- * case (0xd00) {
- * // Thermal Zones
- * Store(Debug, Local7)
- * }
- */
- case (14) {
- // Buffer Field
- Store(0xe00, Local7)
- }
- /*
- * case (0xf00) {
- * // DDB Handle
- * Store(Debug, Local7)
- * }
- *
- *
- * case (0x1000) {
- * // Debug Object
- * Store(Debug, Local7)
- * }
- */
-
- default {
- if (LNotEqual(arg0, 0)) {
- err("----------- ERROR, m487: incorrect Arg0:", z064, 1, 0, 0, 0, 0)
- Store(arg0, Debug)
- Store(0, Local7)
- }
- }
- }
-
- return (Local7)
-}
-
-// Initiate exception by inappropreate operand
-Method(m488, 6, Serialized)
-{
- Store(0, Local7)
-
- Name(lpN0, 0)
- Name(lpC0, 0)
-
- if (And(arg1, 0x5fff)) {
- Store(16, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- ShiftLeft(1, lpC0, Local6)
- if (And(arg1, Local6)) {
- Store(m487(lpC0), Local5)
- Store(m485(arg0, Local5, df01, df02, df03, df04, FLG0), Local7)
- }
- Decrement(lpN0)
- Increment(lpC0)
- }
- }
-
- if (And(arg2, 0x5fff)) {
- Store(16, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- ShiftLeft(1, lpC0, Local6)
- if (And(arg2, Local6)) {
- Store(m487(lpC0), Local5)
- Store(m485(arg0, df00, Local5, df02, df03, df04, FLG0), Local7)
- }
- Decrement(lpN0)
- Increment(lpC0)
- }
- }
-
- if (And(arg3, 0x5fff)) {
- Store(16, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- ShiftLeft(1, lpC0, Local6)
- if (And(arg3, Local6)) {
- Store(m487(lpC0), Local5)
- Store(m485(arg0, df00, df01, Local5, df03, df04, FLG0), Local7)
- }
- Decrement(lpN0)
- Increment(lpC0)
- }
- }
-
- if (And(arg4, 0x5fff)) {
- Store(16, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- ShiftLeft(1, lpC0, Local6)
- if (And(arg4, Local6)) {
- Store(m487(lpC0), Local5)
- Store(m485(arg0, df00, df01, df02, Local5, df04, FLG0), Local7)
- }
- Decrement(lpN0)
- Increment(lpC0)
- }
- }
-
- if (And(arg5, 0x5fff)) {
- Store(16, lpN0)
- Store(0, lpC0)
- While (lpN0) {
- ShiftLeft(1, lpC0, Local6)
- if (And(arg5, Local6)) {
- Store(m487(lpC0), Local5)
- Store(m485(arg0, df00, df01, df02, df03, Local5, FLG0), Local7)
- }
- Decrement(lpN0)
- Increment(lpC0)
- }
- }
-
- return (Local7)
-}
-
-Method(m489, 3)
-{
- Store(ObjectType(arg1), Local0)
- Store(ObjectType(arg2), Local1)
-
- if (LNotEqual(Local0, Local1)) {
- err(arg0, z064, 2, 0, 0, Local0, Local1)
- } elseif (LNotEqual(arg1, arg2)) {
- err(arg0, z064, 3, 0, 0, arg1, arg2)
- }
-}
-
-// Verify result
-// <name>,<results>,<result>,<index of result pair>
-Method(m48a, 4)
-{
- Multiply(arg3, 2, Local0)
- Store(DeRefOf(Index(arg1, Local0)), Local7)
- Increment(Local0)
- Store(DeRefOf(Index(arg1, Local0)), Local6)
-
- if (F64) {
- if (LNotEqual(arg2, Local7)) {
- err(arg0, z064, 4, 0, 0, arg2, Local7)
- }
- } else {
- if (LNotEqual(arg2, Local6)) {
- err(arg0, z064, 5, 0, 0, arg2, Local6)
- }
- }
-}
-
-// Integer two operands operation
-// <operation>,<type of first operand>
-//
-// NOTE: now it work only by particular parts,
-// all together produce crashes. Uncomment
-// in future.
-Method(m48b, 2)
-{
- // X - Integer
-
- Store(m485(arg0, arg1, 0x100, 0, 0, 0, 0), Local7)
-
- // X - String
-
- Store(m485(arg0, arg1, 0x200, 0, 0, 0, 1), Local7)
- Store(m485(arg0, arg1, 0x201, 0, 0, 0, 2), Local7)
- Store(m485(arg0, arg1, 0x202, 0, 0, 0, 3), Local7)
- Store(m485(arg0, arg1, 0x203, 0, 0, 0, 4), Local7)
- Store(m485(arg0, arg1, 0x204, 0, 0, 0, 5), Local7)
- Store(m485(arg0, arg1, 0x205, 0, 0, 0, 6), Local7)
- Store(m485(arg0, arg1, 0x206, 0, 0, 0, 7), Local7)
- Store(m485(arg0, arg1, 0x207, 0, 0, 0, 8), Local7)
- Store(m485(arg0, arg1, 0x208, 0, 0, 0, 9), Local7)
- Store(m485(arg0, arg1, 0x209, 0, 0, 0, 10), Local7)
- Store(m485(arg0, arg1, 0x20a, 0, 0, 0, 11), Local7)
- Store(m485(arg0, arg1, 0x20b, 0, 0, 0, 12), Local7)
- Store(m485(arg0, arg1, 0x20c, 0, 0, 0, 13), Local7)
- Store(m485(arg0, arg1, 0x20d, 0, 0, 0, 14), Local7)
- Store(m485(arg0, arg1, 0x20e, 0, 0, 0, 15), Local7)
- Store(m485(arg0, arg1, 0x20f, 0, 0, 0, 16), Local7)
- Store(m485(arg0, arg1, 0x210, 0, 0, 0, 17), Local7)
-
- // X - Buffer
-
- Store(m485(arg0, arg1, 0x300, 0, 0, 0, 18), Local7)
- Store(m485(arg0, arg1, 0x301, 0, 0, 0, 19), Local7)
- Store(m485(arg0, arg1, 0x302, 0, 0, 0, 20), Local7)
- Store(m485(arg0, arg1, 0x303, 0, 0, 0, 21), Local7)
- Store(m485(arg0, arg1, 0x304, 0, 0, 0, 22), Local7)
- Store(m485(arg0, arg1, 0x305, 0, 0, 0, 23), Local7)
- Store(m485(arg0, arg1, 0x306, 0, 0, 0, 24), Local7)
- Store(m485(arg0, arg1, 0x307, 0, 0, 0, 25), Local7)
- Store(m485(arg0, arg1, 0x308, 0, 0, 0, 26), Local7)
-
- // X - Field Unit
-
- Store(m485(arg0, arg1, 0x500, 0, 0, 0, 27), Local7)
- Store(m485(arg0, arg1, 0x501, 0, 0, 0, 28), Local7)
- Store(m485(arg0, arg1, 0x502, 0, 0, 0, 29), Local7)
- Store(m485(arg0, arg1, 0x503, 0, 0, 0, 30), Local7)
- Store(m485(arg0, arg1, 0x504, 0, 0, 0, 31), Local7)
- Store(m485(arg0, arg1, 0x505, 0, 0, 0, 32), Local7)
- Store(m485(arg0, arg1, 0x506, 0, 0, 0, 33), Local7)
- Store(m485(arg0, arg1, 0x507, 0, 0, 0, 34), Local7)
- Store(m485(arg0, arg1, 0x508, 0, 0, 0, 35), Local7)
- Store(m485(arg0, arg1, 0x509, 0, 0, 0, 36), Local7)
- Store(m485(arg0, arg1, 0x50a, 0, 0, 0, 37), Local7)
-
- // X - Buffer Field
-
- Store(m485(arg0, arg1, 0xe00, 0, 0, 0, 38), Local7)
- Store(m485(arg0, arg1, 0xe01, 0, 0, 0, 39), Local7)
- Store(m485(arg0, arg1, 0xe02, 0, 0, 0, 40), Local7)
- Store(m485(arg0, arg1, 0xe03, 0, 0, 0, 41), Local7)
- Store(m485(arg0, arg1, 0xe04, 0, 0, 0, 42), Local7)
- Store(m485(arg0, arg1, 0xe05, 0, 0, 0, 43), Local7)
- Store(m485(arg0, arg1, 0xe06, 0, 0, 0, 44), Local7)
- Store(m485(arg0, arg1, 0xe07, 0, 0, 0, 45), Local7)
- Store(m485(arg0, arg1, 0xe08, 0, 0, 0, 46), Local7)
- Store(m485(arg0, arg1, 0xe09, 0, 0, 0, 47), Local7)
- Store(m485(arg0, arg1, 0xe0a, 0, 0, 0, 48), Local7)
-}
-
-// Return element of Package
-// <Package>,<index of elements-pair>
-// pair: {F64-element, F32-element}
-Method(m48c, 2)
-{
- Multiply(arg1, 2, Local0)
-
- if (F64) {
- Store(DeRefOf(Index(arg0, Local0)), Local7)
- } else {
- Increment(Local0)
- Store(DeRefOf(Index(arg0, Local0)), Local7)
- }
- return (Local7)
-}
-
-// arg0 - opcode of operation
-//
-// arg1 - type of 0-th argument
-// arg2 - type of 1-th argument
-// arg3 - type of 2-th argument
-// arg4 - type of 3-th argument
-//
-// arg5 - expected 64-bit result
-// arg6 - expected 32-bit result
-Method(m48d, 7, Serialized)
-{
- Name(ts, "m48d")
- Name(tmp0, 0)
-
- if (0) {
- Store("##################################################################", Debug)
- Store(arg6, Debug)
- }
-
- Name(ex00, 0)
-
- if (F64) {
- Store(ObjectType(arg5), Local0)
- if (LEqual(Local0, 2)) {
- if (LEqual(arg5, "Exc")) {
- Store(1, ex00)
- }
- }
- } else {
- Store(ObjectType(arg6), Local0)
- if (LEqual(Local0, 2)) {
- if (LEqual(arg6, "Exc")) {
- Store(1, ex00)
- }
- }
- }
-
- Store(0, Local7)
-
- // m482:
- //
- // arg0-arg4 - parameters of operators
- // arg5 - miscellaneous
- // arg6 - opcode of operation
-
- Store(m484(arg1), Local0)
- Store(m484(arg2), Local1)
- Store(m484(arg3), Local2)
- Store(m484(arg4), Local3)
-
- if (ex00) {
- Store(FLG2, tmp0)
- CH03(ts, z064, 4, 0, 0)
- }
-
- Store(m482(Local0, Local1, Local2, Local3, 0, tmp0, arg0), Local7)
-
- if (ex00) {
- CH04(ts, 0, 0xff, z064, 5, 0, 0)
- } else {
-
- // Verify the result
-
- if (F64) {
- m489(ts, Local7, arg5)
- } else {
- m489(ts, Local7, arg6)
- }
- }
-
- return (Local7)
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+/*
+
+ ============================
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ IT IS IN PROGRESS !!!!!!!!!!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ ============================
+
+SEE: ????????????
+
+1) Add 0 into the middle of any Buffer
+2) Do BOTH directions for Concatenation:
+ - First argument - String
+ - First argument - Buffer
+3) Extend the test, if possible, for all the operators
+4) add method m480 with the different objects creations.
+5) change Name(ss08, "1234567890abCdeF")
+ to Name(ss08, "1234567830abCdeF")
+6) do the same as m480() but use LocalX instead ArgX
+ in Operators invocations:
+ Store(Add(Local0, Local1, Local7), local7)
+*/
+
+// Methods for Conversion tests
+//
+// (low number of available arguments {Arg0-Arg6} complicates algorithms).
+//
+// Currently from the mask of exceptions to be forced are excluded bits
+// corresponding to the following types ("dont know how" have to be added):
+//
+// - Method (dont know how)
+// - Thermal Zones (dont know how)
+// - DDB Handle (dont know how)
+// - Debug Object (impossible, Compiler refuses)
+// - Uninitialized (update needed, currently the test is implemented incorrectly.
+// Uninitialized type have to be passed immediately as operands
+// in m480).
+//
+// Currently excluded from all the total scales of unacceptable types
+// (to be added later):
+//
+// 0x0100 - Method
+// 0x2000 - Thermal Zone
+// 0x8000 - DDB Handle
+//
+// Total scale of acceptable types:
+//
+// int - 0xc02e - Integer, String, Buffer, Field Unit, Buffer Field, DDB Handle
+//
+
+// NOTE: many entries are commented not to cause crashes.
+// Have to be uncommented after ACPICA will be fixed.
+//
+
+Name(z064, 64)
+
+// Commutative two operands operation
+// (CAUTION: dont forget to clean it)
+Name(com2, 0)
+
+// Flags exception expected
+// (needed due to the lack of Arguments number)
+Name(FLG0, 0x19283746)
+
+// Flag - verify result with the contents of Package
+Name(FLG1, 0)
+
+// Package contains benchmarks of results
+Name(PKG0, Package(1) {0x10000001})
+Name(PKG1, Package(1) {0x11111111})
+Name(PKG2, Package(1) {0x22222222})
+
+Name(df00, 0)
+Name(df01, 0)
+Name(df02, 0)
+Name(df03, 0)
+Name(df04, 0)
+Event(e000)
+Mutex(mx00, 0)
+Name(i000, 0x58765432)
+Name(i001, 0xabcdefabaabbccdd)
+Name(s000, "qwrt")
+Name(b001, Buffer() {0x91,0x22,0x83})
+Name(p08b, Package() {19,27})
+Device(dv00) {}
+Method(m4a3) { return (0) }
+OperationRegion(rg00, SystemMemory, 0x100, 0x100)
+Field(rg00, ByteAcc, NoLock, Preserve) { fr20, 7 }
+PowerResource(pwr0, 1, 0) {Method(m000){return (0)}}
+Processor(prc0, 0, 0xFFFFFFFF, 0) {}
+Name(b002, Buffer(100) {})
+CreateDWordField(b002, 3, bfz0)
+
+
+// Return object of required type
+//
+// arg0 - type of object
+Method(m484, 1, Serialized)
+{
+ Name(ts, "m484")
+
+ Event(e001)
+ Mutex(mx01, 0)
+
+ Name(ss01, "svnmjkl")
+ Name(ss02, "1234zyq")
+ Name(ss03, "abcdefzyq")
+ Name(ss04, "9876")
+ Name(ss05, "aBcD")
+ Name(ss06, "1234567890987654")
+ Name(ss07, "daFeCBaabbddffee")
+ Name(ss08, "1234567890abCdeF")
+ Name(ss09, "FdeAcb0132547698")
+ Name(ss0a, "12345678909876540")
+ Name(ss0b, "fdeacb01325476980")
+ Name(ss0c, "123456789011223344556677889998765432199983337744")
+ Name(ss0d, "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd")
+ Name(ss0e, "1234567890abcdef9876543210fedbca1122334455667788fdeacb")
+ Name(ss0f, "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb")
+ Name(ss10, "123456789011223344556677889998765432199983337744z")
+ Name(ss11, "0xF1dAB98e0D794Bc5")
+
+ Name(bb01, Buffer() {0x80})
+ Name(bb02, Buffer() {0x81,0x82})
+ Name(bb03, Buffer() {0x83,0x84,0x85,0x86})
+ Name(bb04, Buffer() {0x87,0x98,0x99,0x9a,0x9b})
+ Name(bb05, Buffer() {0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3})
+ Name(bb06, Buffer() {0xa4,0xa5,0xa6,0xa7,0xb8,0xb9,0xba,0xbb,0xbc})
+ Name(bb07, Buffer(200) {
+ 0x91, 0x92, 0x93, 0x94, 95, 96, 97, 98, 99, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
+ 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
+ 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
+ 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
+ 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
+ 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
+ 193,194,195,196,197,198,199,200})
+ Name(bb08, Buffer(257) {
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
+ 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
+ 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
+ 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
+ 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
+ 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
+ 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
+ 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
+ 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
+ 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255, 0, 1})
+
+ // Field Units
+
+ OperationRegion(r001, SystemMemory, 0x100, 0x100)
+
+ Field(r001, ByteAcc, NoLock, Preserve) {
+ f001, 3,
+ f002, 8,
+ f003, 16,
+ f004, 32,
+ f005, 33,//33
+ f006, 63,//63
+ f007, 64,//64
+ f008, 65,//65
+ f009, 127,
+ f00a, 257,
+ // f00b, 201*8, do it also
+ }
+
+ // Buffer Fields
+
+ Name(bb09, Buffer(200) {})
+
+ CreateField(bb09, 1, 3, bf01)
+ CreateField(bb09, 4, 8, bf02)
+ CreateField(bb09, 12, 16, bf03)
+ CreateField(bb09, 28, 32, bf04)
+ CreateField(bb09, 60, 33, bf05)
+ CreateField(bb09, 93, 63, bf06)//93
+ CreateField(bb09, 156, 64, bf07)//156
+ CreateField(bb09, 220, 65, bf08)//220
+ CreateField(bb09, 285, 127, bf09)//285
+ CreateField(bb09, 412, 257, bf0a)//412
+
+// CreateField(bb09, xxx, 201*8, bf0b)
+
+ CreateDWordField(bb09, 151, bf0b)
+
+ /////////////////////////////////////////////////////////////////////
+
+ Store(0xff, fr20)
+ Store(0xff, f001)
+ Store(0x8a8b8c8d, f002)
+ Store(0x8a8b8c8d, f003)
+ Store(0x8a8b8c8d, f004)
+ Store(Buffer() {0xff,0xff,0xff,0xff,0xff}, f005)
+ Store(Buffer() {0x58,0x46,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, f006)
+ Store(Buffer() {0x58,0x9a,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, f007)
+ Store(Buffer() {0x58,0xc7,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, f008)
+ Store(Buffer() {0x82,0x34,0x56,0x78,0x90,0xab,0xcd,0xef,0x55}, f009)
+ Store(Buffer() {0x93,0xab,0xcd,0xef,0x99,0x12,0xcd,0x52,0x87}, f00a)
+
+ Store(0x918654ab, bfz0)
+ Store(0xff, bf01)
+ Store(0x8a8b8c8d, bf02)
+ Store(0x8a8b8c8d, bf03)
+ Store(0x8a8b8c8d, bf04)
+ Store(Buffer() {0xff,0xff,0xff,0xff,0xff}, bf05)
+ Store(Buffer() {0x58,0x46,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, bf06)
+ Store(Buffer() {0x58,0x9a,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, bf07)
+ Store(Buffer() {0x58,0xc7,0x37,0x88,0x19,0xfa,0xde,0xdc,0xfa}, bf08)
+ Store(Buffer() {0x82,0x34,0x56,0x78,0x90,0xab,0xcd,0xef,0x55}, bf09)
+ Store(Buffer() {0x93,0xab,0xcd,0xef,0x99,0x12,0xcd,0x52,0x87}, bf0a)
+
+ Store(0xa2b3c4d5, bf0b)
+
+ /////////////////////////////////////////////////////////////////////
+
+ Name(pp01, Package() {19})
+ Device(dv01) {}
+ Method(m001) { return (0) }
+ OperationRegion(r002, SystemMemory, 0x100, 0x100)
+ PowerResource(pwr1, 1, 0) {Method(m000){return (0)}}
+ Processor(pr01, 0, 0xFFFFFFFF, 0) {}
+
+ Store(0, Local7)
+
+ switch (ToInteger(Arg0)) {
+
+ // Uninitialized
+
+ /*
+ * case (0x000) {
+ * }
+ */
+
+ // Integers
+
+ case (0x100) {
+ Store(i000, Local7)
+ }
+ case (0x101) {
+ Store(i001, Local7)
+ }
+ case (0x102) {
+ Store(0x12345678, Local7)
+ }
+ case (0x103) {
+ Store(0xabedf18942345678, Local7)
+ }
+ case (0x104) {
+ Store(Zero, Local7)
+ }
+ case (0x105) {
+ Store(One, Local7)
+ }
+ case (0x106) {
+ Store(Ones, Local7)
+ }
+ case (0x107) {
+ Store(Revision, Local7)
+ }
+ case (0x108) {
+ Store(0x123, Local7)
+ }
+ case (0x109) {
+ Store(11, Local7)
+ }
+
+ // Strings
+
+ case (0x200) {
+ Store(s000, Local7)
+ }
+ case (0x201) {
+ Store(ss01, Local7)
+ }
+ case (0x202) {
+ Store(ss02, Local7)
+ }
+ case (0x203) {
+ Store(ss03, Local7)
+ }
+ case (0x204) {
+ Store(ss04, Local7)
+ }
+ case (0x205) {
+ Store(ss05, Local7)
+ }
+ case (0x206) {
+ Store(ss06, Local7)
+ }
+ case (0x207) {
+ Store(ss07, Local7)
+ }
+ case (0x208) {
+ Store(ss08, Local7)
+ }
+ case (0x209) {
+ Store(ss09, Local7)
+ }
+ case (0x20a) {
+ Store(ss0a, Local7)
+ }
+ case (0x20b) {
+ Store(ss0b, Local7)
+ }
+ case (0x20c) {
+ Store(ss0c, Local7)
+ }
+ case (0x20d) {
+ Store(ss0d, Local7)
+ }
+ case (0x20e) {
+ Store(ss0e, Local7)
+ }
+ case (0x20f) {
+ Store(ss0f, Local7)
+ }
+ case (0x210) {
+ Store(ss10, Local7)
+ }
+ case (0x211) {
+ Store(ss11, Local7)
+ }
+
+ // Buffers
+
+ case (0x300) {
+ Store(b001, Local7)
+ }
+ case (0x301) {
+ Store(bb01, Local7)
+ }
+ case (0x302) {
+ Store(bb02, Local7)
+ }
+ case (0x303) {
+ Store(bb03, Local7)
+ }
+ case (0x304) {
+ Store(bb04, Local7)
+ }
+ case (0x305) {
+ Store(bb05, Local7)
+ }
+ case (0x306) {
+ Store(bb06, Local7)
+ }
+ case (0x307) {
+ Store(bb07, Local7)
+ }
+ case (0x308) {
+ Store(bb08, Local7)
+ }
+
+ // Packages
+
+ case (0x400) {
+ Store(p08b, Local7)
+ }
+ case (0x401) {
+ Store(pp01, Local7)
+ }
+
+ // Field Units
+
+ case (0x500) {
+ Store(fr20, Local7)
+ }
+ case (0x501) {
+ Store(f001, Local7)
+ }
+ case (0x502) {
+ Store(f002, Local7)
+ }
+ case (0x503) {
+ Store(f003, Local7)
+ }
+ case (0x504) {
+ Store(f004, Local7)
+ }
+ case (0x505) {
+ Store(f005, Local7)
+ }
+ case (0x506) {
+ Store(f006, Local7)
+ }
+ case (0x507) {
+ Store(f007, Local7)
+ }
+ case (0x508) {
+ Store(f008, Local7)
+ }
+ case (0x509) {
+ Store(f009, Local7)
+ }
+ case (0x50a) {
+ Store(f00a, Local7)
+ }
+
+ // Devices
+
+ case (0x600) {
+ Store(dv00, Local7)
+ }
+ case (0x601) {
+ Store(dv01, Local7)
+ }
+
+ // Events
+
+ case (0x700) {
+ Store(e000, Local7)
+ }
+ case (0x701) {
+ Store(e001, Local7)
+ }
+
+ // Methods
+
+ case (0x800) {
+ Store(m4a3, Local7)
+ }
+ case (0x801) {
+ Store(m001, Local7)
+ }
+
+ // Mutexes
+
+ case (0x900) {
+ Store(mx00, Local7)
+ }
+ case (0x901) {
+ Store(mx01, Local7)
+ }
+
+ // Operation Regions
+
+ case (0xa00) {
+ Store(rg00, Local7)
+ }
+ case (0xa01) {
+ Store(r001, Local7)
+ }
+ case (0xa02) {
+ Store(r002, Local7)
+ }
+
+ // Power Resources
+
+ case (0xb00) {
+ Store(pwr0, Local7)
+ }
+ case (0xb01) {
+ Store(pwr1, Local7)
+ }
+
+ // Processor
+
+ case (0xc00) {
+ Store(prc0, Local7)
+ }
+ case (0xc01) {
+ Store(pr01, Local7)
+ }
+
+ // Thermal Zones
+
+ /*
+ * case (0xd00) {
+ * Store(Debug, Local7)
+ * }
+ */
+
+ // Buffer Field
+
+ case (0xe00) {
+ Store(bfz0, Local7)
+ }
+ case (0xe01) {
+ Store(bf01, Local7)
+ }
+ case (0xe02) {
+ Store(bf02, Local7)
+ }
+ case (0xe03) {
+ Store(bf03, Local7)
+ }
+ case (0xe04) {
+ Store(bf04, Local7)
+ }
+ case (0xe05) {
+ Store(bf05, Local7)
+ }
+ case (0xe06) {
+ Store(bf06, Local7)
+ }
+ case (0xe07) {
+ Store(bf07, Local7)
+ }
+ case (0xe08) {
+ Store(bf08, Local7)
+ }
+ case (0xe09) {
+ Store(bf09, Local7)
+ }
+ case (0xe0a) {
+ Store(bf0a, Local7)
+ }
+ case (0xe0b) {
+ Store(bf0b, Local7)
+ }
+
+ // DDB Handle
+
+ /*
+ * case (0xf00) {
+ * Store(Debug, Local7)
+ * }
+ */
+
+ // Debug Object
+
+ /*
+ * case (0x1000) {
+ * Store(Debug, Local7)
+ * }
+ */
+
+ default {
+ if (LNotEqual(arg0, 0)) {
+ err("----------- ERROR, m484: incorrect Arg0:", z064, 0, 0, 0, 0, 0)
+ Store(arg0, Debug)
+ }
+ }
+ }
+
+ return (Local7)
+}
+
+// arg0 - opcode of operation
+// arg1 - type of 0-th argument
+// arg2 - type of 1-th argument
+// arg3 - type of 2-th argument
+// arg4 - type of 3-th argument
+// arg5 - type of 4-th argument
+// arg6 - {Ones - flag of exception, otherwise - index of result pair}
+Method(m485, 7, Serialized)
+{
+ if (0) {
+ Store("##################################################################", Debug)
+ Store(arg6, Debug)
+ }
+
+ Name(ts, "m485")
+ Name(ex00, 0)
+ Name(tmp0, 0)
+
+ if (LEqual(arg6, FLG0)) {
+ Store(1, ex00)
+ } else {
+ Store(m48c(PKG1, arg6), Local5)
+ Store(ObjectType(Local5), Local7)
+ if (LEqual(Local7, 2)) {
+ if (LEqual(Local5, "Exc")) {
+ Store(1, ex00)
+ }
+ }
+ }
+
+ Store(0, Local7)
+
+ // m482:
+ //
+ // arg0-arg4 - parameters of operators
+ // arg5 - miscellaneous
+ // arg6 - opcode of operation
+
+
+/*
+ * //// ?????????????????????????
+ * Uninitialized data should be passed to the operators immediately
+ * in the m480 but not here to these Store opreations!!!!!!!!!!!!!!
+ * But this will a few complicate m480 !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ * //// ?????????????????????????
+ */
+
+ // Parameters (if not to save them Uninitialized)
+ if (LNotEqual(arg1, 0xfff)) {
+ Store(m484(arg1), Local0)
+ }
+ if (LNotEqual(arg2, 0xfff)) {
+ Store(m484(arg2), Local1)
+ }
+ if (LNotEqual(arg3, 0xfff)) {
+ Store(m484(arg3), Local2)
+ }
+ if (LNotEqual(arg4, 0xfff)) {
+ Store(m484(arg4), Local3)
+ }
+ if (LNotEqual(arg5, 0xfff)) {
+ Store(m484(arg5), Local4)
+ }
+
+ if (ex00) {
+ Store(FLG2, tmp0)
+ CH03(ts, z064, 0, 0, 0)
+ }
+
+ Store(m482(Local0, Local1, Local2, Local3, Local4, tmp0, arg0), Local7)
+
+ if (ex00) {
+ CH04(ts, 0, 0xff, z064, 1, 0, 0)
+ } elseif (FLG1) {
+ // Verify the first result
+ m489(ts, Local7, Local5)
+ }
+
+ if (com2) {
+
+ // The same operation but the first two arguments interchange
+
+ if (LNotEqual(arg6, FLG0)) {
+ if (LEqual(com2, 2)) {
+ Store(0, ex00)
+ Store(m48c(PKG2, arg6), Local5)
+ Store(ObjectType(Local5), Local7)
+ if (LEqual(Local7, 2)) {
+ if (LEqual(Local5, "Exc")) {
+ Store(1, ex00)
+ }
+ }
+ }
+ }
+
+ if (ex00) {
+ CH03(ts, z064, 2, 0, 0)
+ }
+
+ Store(m482(Local1, Local0, Local2, Local3, Local4, tmp0, arg0), Local7)
+
+ if (ex00) {
+ CH04(ts, 0, 0xff, z064, 3, 0, 0)
+ } elseif (FLG1) {
+ // Verify the second result
+ m489(ts, Local7, Local5)
+ }
+ }
+
+ return (Local7)
+}
+
+// Init all parameters as non-usable
+Method(m486)
+{
+ Store(0, df00)
+ Store(0, df01)
+ Store(0, df02)
+ Store(0, df03)
+ Store(0, df04)
+}
+
+// Return the object of required type.
+// Allowed types are {1-12,14}, == 0x5fff.
+// Returned 0xfff is flag of "Uninitialized".
+//
+// These have to be implemented:
+//
+// Method, Thermal Zone, DDB Handle
+//
+Method(m487, 1, Serialized)
+{
+ switch (ToInteger (Arg0)) {
+
+ case (0) {
+ // Uninitialized
+ Store(0xfff, Local7)
+ }
+ case (1) {
+ // Integers
+ Store(0x100, Local7)
+ }
+ case (2) {
+ // Strings
+ Store(0x204, Local7)
+ }
+ case (3) {
+ // Buffers
+ Store(0x300, Local7)
+ }
+ case (4) {
+ // Packages
+ Store(0x400, Local7)
+ }
+ case (5) {
+ // Field Units
+ Store(0x500, Local7)
+ }
+ case (6) {
+ // Devices
+ Store(0x600, Local7)
+ }
+ case (7) {
+ // Events
+ Store(0x700, Local7)
+ }
+ case (8) {
+ // Methods
+ Store(0x800, Local7)
+ }
+ case (9) {
+ // Mutexes
+ Store(0x900, Local7)
+ }
+ case (10) {
+ // Operation Regions
+ Store(0xa00, Local7)
+ }
+ case (11) {
+ // Power Resources
+ Store(0xb00, Local7)
+ }
+ case (12) {
+ // Processor
+ Store(0xc00, Local7)
+ }
+ /*
+ * case (0xd00) {
+ * // Thermal Zones
+ * Store(Debug, Local7)
+ * }
+ */
+ case (14) {
+ // Buffer Field
+ Store(0xe00, Local7)
+ }
+ /*
+ * case (0xf00) {
+ * // DDB Handle
+ * Store(Debug, Local7)
+ * }
+ *
+ *
+ * case (0x1000) {
+ * // Debug Object
+ * Store(Debug, Local7)
+ * }
+ */
+
+ default {
+ if (LNotEqual(arg0, 0)) {
+ err("----------- ERROR, m487: incorrect Arg0:", z064, 1, 0, 0, 0, 0)
+ Store(arg0, Debug)
+ Store(0, Local7)
+ }
+ }
+ }
+
+ return (Local7)
+}
+
+// Initiate exception by inappropreate operand
+Method(m488, 6, Serialized)
+{
+ Store(0, Local7)
+
+ Name(lpN0, 0)
+ Name(lpC0, 0)
+
+ if (And(arg1, 0x5fff)) {
+ Store(16, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ ShiftLeft(1, lpC0, Local6)
+ if (And(arg1, Local6)) {
+ Store(m487(lpC0), Local5)
+ Store(m485(arg0, Local5, df01, df02, df03, df04, FLG0), Local7)
+ }
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ }
+
+ if (And(arg2, 0x5fff)) {
+ Store(16, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ ShiftLeft(1, lpC0, Local6)
+ if (And(arg2, Local6)) {
+ Store(m487(lpC0), Local5)
+ Store(m485(arg0, df00, Local5, df02, df03, df04, FLG0), Local7)
+ }
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ }
+
+ if (And(arg3, 0x5fff)) {
+ Store(16, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ ShiftLeft(1, lpC0, Local6)
+ if (And(arg3, Local6)) {
+ Store(m487(lpC0), Local5)
+ Store(m485(arg0, df00, df01, Local5, df03, df04, FLG0), Local7)
+ }
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ }
+
+ if (And(arg4, 0x5fff)) {
+ Store(16, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ ShiftLeft(1, lpC0, Local6)
+ if (And(arg4, Local6)) {
+ Store(m487(lpC0), Local5)
+ Store(m485(arg0, df00, df01, df02, Local5, df04, FLG0), Local7)
+ }
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ }
+
+ if (And(arg5, 0x5fff)) {
+ Store(16, lpN0)
+ Store(0, lpC0)
+ While (lpN0) {
+ ShiftLeft(1, lpC0, Local6)
+ if (And(arg5, Local6)) {
+ Store(m487(lpC0), Local5)
+ Store(m485(arg0, df00, df01, df02, df03, Local5, FLG0), Local7)
+ }
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+ }
+
+ return (Local7)
+}
+
+Method(m489, 3)
+{
+ Store(ObjectType(arg1), Local0)
+ Store(ObjectType(arg2), Local1)
+
+ if (LNotEqual(Local0, Local1)) {
+ err(arg0, z064, 2, 0, 0, Local0, Local1)
+ } elseif (LNotEqual(arg1, arg2)) {
+ err(arg0, z064, 3, 0, 0, arg1, arg2)
+ }
+}
+
+// Verify result
+// <name>,<results>,<result>,<index of result pair>
+Method(m48a, 4)
+{
+ Multiply(arg3, 2, Local0)
+ Store(DeRefOf(Index(arg1, Local0)), Local7)
+ Increment(Local0)
+ Store(DeRefOf(Index(arg1, Local0)), Local6)
+
+ if (F64) {
+ if (LNotEqual(arg2, Local7)) {
+ err(arg0, z064, 4, 0, 0, arg2, Local7)
+ }
+ } else {
+ if (LNotEqual(arg2, Local6)) {
+ err(arg0, z064, 5, 0, 0, arg2, Local6)
+ }
+ }
+}
+
+// Integer two operands operation
+// <operation>,<type of first operand>
+//
+// NOTE: now it work only by particular parts,
+// all together produce crashes. Uncomment
+// in future.
+Method(m48b, 2)
+{
+ // X - Integer
+
+ Store(m485(arg0, arg1, 0x100, 0, 0, 0, 0), Local7)
+
+ // X - String
+
+ Store(m485(arg0, arg1, 0x200, 0, 0, 0, 1), Local7)
+ Store(m485(arg0, arg1, 0x201, 0, 0, 0, 2), Local7)
+ Store(m485(arg0, arg1, 0x202, 0, 0, 0, 3), Local7)
+ Store(m485(arg0, arg1, 0x203, 0, 0, 0, 4), Local7)
+ Store(m485(arg0, arg1, 0x204, 0, 0, 0, 5), Local7)
+ Store(m485(arg0, arg1, 0x205, 0, 0, 0, 6), Local7)
+ Store(m485(arg0, arg1, 0x206, 0, 0, 0, 7), Local7)
+ Store(m485(arg0, arg1, 0x207, 0, 0, 0, 8), Local7)
+ Store(m485(arg0, arg1, 0x208, 0, 0, 0, 9), Local7)
+ Store(m485(arg0, arg1, 0x209, 0, 0, 0, 10), Local7)
+ Store(m485(arg0, arg1, 0x20a, 0, 0, 0, 11), Local7)
+ Store(m485(arg0, arg1, 0x20b, 0, 0, 0, 12), Local7)
+ Store(m485(arg0, arg1, 0x20c, 0, 0, 0, 13), Local7)
+ Store(m485(arg0, arg1, 0x20d, 0, 0, 0, 14), Local7)
+ Store(m485(arg0, arg1, 0x20e, 0, 0, 0, 15), Local7)
+ Store(m485(arg0, arg1, 0x20f, 0, 0, 0, 16), Local7)
+ Store(m485(arg0, arg1, 0x210, 0, 0, 0, 17), Local7)
+
+ // X - Buffer
+
+ Store(m485(arg0, arg1, 0x300, 0, 0, 0, 18), Local7)
+ Store(m485(arg0, arg1, 0x301, 0, 0, 0, 19), Local7)
+ Store(m485(arg0, arg1, 0x302, 0, 0, 0, 20), Local7)
+ Store(m485(arg0, arg1, 0x303, 0, 0, 0, 21), Local7)
+ Store(m485(arg0, arg1, 0x304, 0, 0, 0, 22), Local7)
+ Store(m485(arg0, arg1, 0x305, 0, 0, 0, 23), Local7)
+ Store(m485(arg0, arg1, 0x306, 0, 0, 0, 24), Local7)
+ Store(m485(arg0, arg1, 0x307, 0, 0, 0, 25), Local7)
+ Store(m485(arg0, arg1, 0x308, 0, 0, 0, 26), Local7)
+
+ // X - Field Unit
+
+ Store(m485(arg0, arg1, 0x500, 0, 0, 0, 27), Local7)
+ Store(m485(arg0, arg1, 0x501, 0, 0, 0, 28), Local7)
+ Store(m485(arg0, arg1, 0x502, 0, 0, 0, 29), Local7)
+ Store(m485(arg0, arg1, 0x503, 0, 0, 0, 30), Local7)
+ Store(m485(arg0, arg1, 0x504, 0, 0, 0, 31), Local7)
+ Store(m485(arg0, arg1, 0x505, 0, 0, 0, 32), Local7)
+ Store(m485(arg0, arg1, 0x506, 0, 0, 0, 33), Local7)
+ Store(m485(arg0, arg1, 0x507, 0, 0, 0, 34), Local7)
+ Store(m485(arg0, arg1, 0x508, 0, 0, 0, 35), Local7)
+ Store(m485(arg0, arg1, 0x509, 0, 0, 0, 36), Local7)
+ Store(m485(arg0, arg1, 0x50a, 0, 0, 0, 37), Local7)
+
+ // X - Buffer Field
+
+ Store(m485(arg0, arg1, 0xe00, 0, 0, 0, 38), Local7)
+ Store(m485(arg0, arg1, 0xe01, 0, 0, 0, 39), Local7)
+ Store(m485(arg0, arg1, 0xe02, 0, 0, 0, 40), Local7)
+ Store(m485(arg0, arg1, 0xe03, 0, 0, 0, 41), Local7)
+ Store(m485(arg0, arg1, 0xe04, 0, 0, 0, 42), Local7)
+ Store(m485(arg0, arg1, 0xe05, 0, 0, 0, 43), Local7)
+ Store(m485(arg0, arg1, 0xe06, 0, 0, 0, 44), Local7)
+ Store(m485(arg0, arg1, 0xe07, 0, 0, 0, 45), Local7)
+ Store(m485(arg0, arg1, 0xe08, 0, 0, 0, 46), Local7)
+ Store(m485(arg0, arg1, 0xe09, 0, 0, 0, 47), Local7)
+ Store(m485(arg0, arg1, 0xe0a, 0, 0, 0, 48), Local7)
+}
+
+// Return element of Package
+// <Package>,<index of elements-pair>
+// pair: {F64-element, F32-element}
+Method(m48c, 2)
+{
+ Multiply(arg1, 2, Local0)
+
+ if (F64) {
+ Store(DeRefOf(Index(arg0, Local0)), Local7)
+ } else {
+ Increment(Local0)
+ Store(DeRefOf(Index(arg0, Local0)), Local7)
+ }
+ return (Local7)
+}
+
+// arg0 - opcode of operation
+//
+// arg1 - type of 0-th argument
+// arg2 - type of 1-th argument
+// arg3 - type of 2-th argument
+// arg4 - type of 3-th argument
+//
+// arg5 - expected 64-bit result
+// arg6 - expected 32-bit result
+Method(m48d, 7, Serialized)
+{
+ Name(ts, "m48d")
+ Name(tmp0, 0)
+
+ if (0) {
+ Store("##################################################################", Debug)
+ Store(arg6, Debug)
+ }
+
+ Name(ex00, 0)
+
+ if (F64) {
+ Store(ObjectType(arg5), Local0)
+ if (LEqual(Local0, 2)) {
+ if (LEqual(arg5, "Exc")) {
+ Store(1, ex00)
+ }
+ }
+ } else {
+ Store(ObjectType(arg6), Local0)
+ if (LEqual(Local0, 2)) {
+ if (LEqual(arg6, "Exc")) {
+ Store(1, ex00)
+ }
+ }
+ }
+
+ Store(0, Local7)
+
+ // m482:
+ //
+ // arg0-arg4 - parameters of operators
+ // arg5 - miscellaneous
+ // arg6 - opcode of operation
+
+ Store(m484(arg1), Local0)
+ Store(m484(arg2), Local1)
+ Store(m484(arg3), Local2)
+ Store(m484(arg4), Local3)
+
+ if (ex00) {
+ Store(FLG2, tmp0)
+ CH03(ts, z064, 4, 0, 0)
+ }
+
+ Store(m482(Local0, Local1, Local2, Local3, 0, tmp0, arg0), Local7)
+
+ if (ex00) {
+ CH04(ts, 0, 0xff, z064, 5, 0, 0)
+ } else {
+
+ // Verify the result
+
+ if (F64) {
+ m489(ts, Local7, arg5)
+ } else {
+ m489(ts, Local7, arg6)
+ }
+ }
+
+ return (Local7)
+}
diff --git a/tests/aslts/src/runtime/common/conversion/otest.asl b/tests/aslts/src/runtime/common/conversion/otest.asl
index ddabbe037..0aca4b863 100644
--- a/tests/aslts/src/runtime/common/conversion/otest.asl
+++ b/tests/aslts/src/runtime/common/conversion/otest.asl
@@ -1,4449 +1,4449 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/*
-
- ============================
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- IT IS IN PROGRESS !!!!!!!!!!
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- ============================
-
-SEE: LEqual (and LGreater ?) tests were mostly checked for 64-bit mode only.
- Do that after ACPICA bugs are fixed.
-SEE: what can be removed from m48b
-*/
-
-//
-// Implicit Source Operand Conversion, complex test
-//
-
-Name(z065, 65)
-
-// Acquire (mux, wrd) => Boolean
-//
-// Total scale of unacceptable types:
-// SyncObject: 0x5cff
-// Total scale of acceptable types:
-// SyncObject: 0x0200
-Method(m400, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m400")
-
- ts00(ts)
-
- if (arg0) {
- m486()
- Store(0x900, df00)
- Store(m488(op, 0x5cff, 0, 0, 0, 0), Local7)
- } else {
-
- Store(m48d(op, 0x900, 0, 0, 0, Zero, Zero), Local7)
- Store(m48d(op, 0x901, 0, 0, 0, Zero, Zero), Local7)
- }
-}
-
-// Add, check all unavailable non-hex symbols
-Method(m4a2, 1, Serialized)
-{
- Name(ts, "m4a2")
-
- Name(s000, "`-=qwrtyuiop[]\\sghjkl;'zxvnm,./~!@#$%^&*()_+QWRTYUIOP{}|SGHJKL:\"ZXVNM<>? ")
-
- Name(lpN0, 73)
- Name(lpC0, 0)
-
- While (lpN0) {
-
- Store(m4a1(s000, lpC0), Local0)
-
- Store(ObjectType(Local0), Local1)
- if (LNotEqual(Local1, 2)) {
- err(arg0, z065, 0, 0, 0, Local1, 2)
- } else {
- Store(SizeOf(Local0), Local1)
- if (LNotEqual(Local1, 1)) {
- err(arg0, z065, 1, 0, 0, Local1, 1)
- } else {
- CH03(ts, z065, 0, 0, 0)
- Add(Local0, 0, Local7)
- CH04(arg0, 0, 34, z065, 1, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 2, 0, 0)
- Add(0, Local0, Local7)
- CH04(arg0, 0, 34, z065, 3, 0, 0) // AE_BAD_HEX_CONSTANT
- }
- }
-
- Store(Local0, Debug)
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-}
-
-// Add, check all available hex symbols
-Method(m4a4, 1, Serialized)
-{
- Name(ts, "m4a4")
-
- Name(s000, "0123456789abcdefABCDEF")
-
- Name(lpN0, 22)
- Name(lpC0, 0)
-
- While (lpN0) {
-
- Store(m4a1(s000, lpC0), Local0)
-
- Store(ObjectType(Local0), Local1)
- if (LNotEqual(Local1, 2)) {
- err(arg0, z065, 2, 0, 0, Local1, 2)
- } else {
- Store(SizeOf(Local0), Local1)
- if (LNotEqual(Local1, 1)) {
- err(arg0, z065, 3, 0, 0, Local1, 1)
- } else {
- CH03(ts, z065, 4, 0, 0)
- Add(Local0, 0, Local7)
- CH03(ts, z065, 5, 0, 0)
-
- CH03(ts, z065, 6, 0, 0)
- Add(0, Local0, Local7)
- CH03(ts, z065, 7, 0, 0)
- }
- }
-
- Store(Local0, Debug)
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-}
-
-// Add, checkings in accordance with the Table 1
-Method(m4a0, 1, Serialized)
-{
- Name(ts, "m4a0")
-
- ts00(ts)
-
- if (arg0) {
-
- CH03(ts, z065, 8, 0, 0)
- Add("fedcba98765432101", 0, Local7)
- CH04(ts, 0, 34, z065, 9, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 10, 0, 0)
- Add(0, "fedcba98765432101", Local7)
- CH04(ts, 0, 34, z065, 11, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 12, 0, 0)
- Add("1234q", 0, Local7)
- CH04(ts, 0, 34, z065, 13, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 14, 0, 0)
- Add(0, "1234q", Local7)
- CH04(ts, 0, 34, z065, 15, 0, 0) // AE_BAD_HEX_CONSTANT
-
-
-if (0) {
-
- CH03(ts, z065, 16, 0, 0)
- Add("0xfedcba98765432", 0, Local7)
- CH04(ts, 0, 34, z065, 17, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 18, 0, 0)
- Add(0, "0xfedcba98765432", Local7)
- CH04(ts, 0, 34, z065, 19, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 20, 0, 0)
- Add("", 0, Local7)
- CH04(ts, 0, 34, z065, 21, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 22, 0, 0)
- Add(0, "", Local7)
- CH04(ts, 0, 34, z065, 23, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 24, 0, 0)
- Add(" ", 0, Local7)
- CH04(ts, 0, 34, z065, 25, 0, 0) // AE_BAD_HEX_CONSTANT
-
- CH03(ts, z065, 26, 0, 0)
- Add(0, " ", Local7)
- CH04(ts, 0, 34, z065, 27, 0, 0) // AE_BAD_HEX_CONSTANT
-}
-
- m4a2(ts)
-
- } else {
-
- // Integers, directly
-
- Add(0321, 0, Local7)
- m4c0(ts, Local7, 0xd1, 0xd1)
-
- Add(9876543210, 0, Local7)
- m4c0(ts, Local7, 0x000000024CB016EA, 0x4CB016EA)
-
- Add(0xfedcba9876543210, 0, Local7)
- m4c0(ts, Local7, 0xFEDCBA9876543210, 0x76543210)
-
- Add(0, 0, Local7)
- m4c0(ts, Local7, 0, 0)
-
- Add(0xffffffffffffffff, 0, Local7)
- m4c0(ts, Local7, 0xffffffffffffffff, 0xffffffff)
-
- Add(0, 0321, Local7)
- m4c0(ts, Local7, 0xd1, 0xd1)
-
- Add(0, 9876543210, Local7)
- m4c0(ts, Local7, 0x000000024CB016EA, 0x4CB016EA)
-
- Add(0, 0xfedcba9876543210, Local7)
- m4c0(ts, Local7, 0xFEDCBA9876543210, 0x76543210)
-
- Add(0, 0xffffffffffffffff, Local7)
- m4c0(ts, Local7, 0xffffffffffffffff, 0xffffffff)
-
-
- // Strings, directly
-
- Add("0321", 0, Local7)
- m4c0(ts, Local7, 0x321, 0x321)
-
- Add("9876543210", 0, Local7)
- m4c0(ts, Local7, 0x9876543210, 0x76543210)
-
- Add("321", 0, Local7)
- m4c0(ts, Local7, 0x321, 0x321)
-
- Add("fedcba9876543210", 0, Local7)
- m4c0(ts, Local7, 0xfedcba9876543210, 0x76543210)
-
- m4a4(ts)
-
- // Buffers
- // Buffer Units
-
- }
-
-/*
- Add(xxxxxx, 0, Local7)
- m4c0(ts, Local7, 0, 0)
-
- Add("xxxxxx", 0, Local7)
- m4c0(ts, Local7, 0, 0)
-*/
-
-if (0) {
- Store(9876543210, Debug)
-}
-}
-
-// Add (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Addend1: 0x1ed1
-// Addend2: 0x1ed1
-// Total scale of acceptable types:
-// Addend1: 0x402e
-// Addend1: 0x402e
-Method(m401, 1, Serialized)
-{
- Name(op, 1)
-
- ts00("m401")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer
-
- 0x58765432, 0x58765432,
-
- // X - String
-
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
-
- 0x9876, 0x9876,
- 0xabcd, 0xabcd,
- 0x1234567890987654, 0x90987654,
- 0xdafecbaabbddffee, 0xbbddffee,
- 0x1234567890abcdef, 0x90abcdef,
- 0xfdeacb0132547698, 0x32547698,
-
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
-
- // X - Buffer
-
- 0x832291, 0x832291,
- 0x80, 0x80,
- 0x8281, 0x8281,
- 0x86858483, 0x86858483,
- 0x9b9A999887, 0x9A999887,
- 0xa3a2a1a09F9E9D9C, 0x9F9E9D9C,
- 0xbbbab9b8A7A6A5A4, 0xA7A6A5A4,
- 0x6261605F94939291, 0x94939291,
- 0x0807060504030201, 0x04030201,
-
- // X - Field Unit
-
- 0x7f, 0x7f,
- 0x07, 0x07,
- 0x8d, 0x8d,
- 0x8c8d, 0x8c8d,
- 0x8a8b8c8d, 0x8a8b8c8d,
- 0x1ffffffff, 0xffffffff,
- 0x5cdefa1988374658, 0x88374658,
- 0xdcdefa1988379a58, 0x88379a58,
- 0xdcdefa198837c758, 0x8837c758,
- 0xEFCDAB9078563482, 0x78563482,
- 0x52CD1299EFCDAB93, 0xEFCDAB93,
-
- // X - Buffer Field
-
- 0x918654ab, 0x918654ab,
- 0x07, 0x07,
- 0x8d, 0x8d,
- 0x8c8d, 0x8c8d,
- 0x8a8b8c8d, 0x8a8b8c8d,
- 0x1ffffffff, 0xffffffff,
- 0x5cdefa1988374658, 0x88374658,
- 0xdcdefa1988379a58, 0x88379a58,
- 0xdcdefa198837c758, 0x8837c758,
- 0xEFCDAB9078563482, 0x78563482,
- 0x52CD1299EFCDAB93, 0xEFCDAB93,
- })
-
- if (arg0) {
-
- if (0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- }
- m4a0(1)
- } elseif (0) {
- Store(1, FLG1)
- Store(1, com2)
- Store(p000, PKG1)
- Store(PKG0, PKG2)
- m48b(op, 0x104)
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- } else {
- m4a0(0)
- }
-}
-
-// And (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m402, 1, Serialized)
-{
- Name(op, 2)
-
- ts00("m402")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer
-
- 0x58765432, 0x58765432,
-
- // X - String
-
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
-
- 0x9876, 0x9876,
- 0xabcd, 0xabcd,
- 0x1234567890987654, 0x90987654,
- 0xdafecbaabbddffee, 0xbbddffee,
- 0x1234567890abcdef, 0x90abcdef,
- 0xfdeacb0132547698, 0x32547698,
-
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
-
- // X - Buffer
-
- 0x832291, 0x832291,
- 0x80, 0x80,
- 0x8281, 0x8281,
- 0x86858483, 0x86858483,
- 0x9b9A999887, 0x9A999887,
- 0xa3a2a1a09F9E9D9C, 0x9F9E9D9C,
- 0xbbbab9b8A7A6A5A4, 0xA7A6A5A4,
- 0x6261605F94939291, 0x94939291,
- 0x0807060504030201, 0x04030201,
-
- // X - Field Unit
-
- 0x7f, 0x7f,
- 0x07, 0x07,
- 0x8d, 0x8d,
- 0x8c8d, 0x8c8d,
- 0x8a8b8c8d, 0x8a8b8c8d,
- 0x1ffffffff, 0xffffffff,
- 0x5cdefa1988374658, 0x88374658,
- 0xdcdefa1988379a58, 0x88379a58,
- 0xdcdefa198837c758, 0x8837c758,
- 0xEFCDAB9078563482, 0x78563482,
- 0x52CD1299EFCDAB93, 0xEFCDAB93,
-
- // X - Buffer Field
-
- 0x918654ab, 0x918654ab,
- 0x07, 0x07,
- 0x8d, 0x8d,
- 0x8c8d, 0x8c8d,
- 0x8a8b8c8d, 0x8a8b8c8d,
- 0x1ffffffff, 0xffffffff,
- 0x5cdefa1988374658, 0x88374658,
- 0xdcdefa1988379a58, 0x88379a58,
- 0xdcdefa198837c758, 0x8837c758,
- 0xEFCDAB9078563482, 0x78563482,
- 0x52CD1299EFCDAB93, 0xEFCDAB93,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
- Store(1, com2)
- Store(p000, PKG1)
- Store(PKG0, PKG2)
- m48b(op, 0x106)
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// Concatenate({int|str|buf}, {int|str|buf}, Result) => ComputationalData
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m403, 1, Serialized)
-{
- Name(op, 3)
-
- ts00("m403")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,0x32,0x54,0x76,0x58,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x32,0x54,0x76,0x58},
-
- // X - String
-
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x76,0x98,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xcd,0xab,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0xcd,0xab,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x54,0x76,0x98,0x90,0x78,0x56,0x34,0x12},
- Buffer() {0x78,0x56,0x34,0x42,0x54,0x76,0x98,0x90},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xEE,0xFF,0xDD,0xBB,0xAA,0xCB,0xFE,0xDA},
- Buffer() {0x78,0x56,0x34,0x42,0xEE,0xFF,0xDD,0xBB},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xEF,0xCD,0xAB,0x90,0x78,0x56,0x34,0x12},
- Buffer() {0x78,0x56,0x34,0x42,0xEF,0xCD,0xAB,0x90},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x98,0x76,0x54,0x32,0x01,0xCB,0xEA,0xFD},
- Buffer() {0x78,0x56,0x34,0x42,0x98,0x76,0x54,0x32},
-
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
- "Exc", "Exc",
-
- // X - Buffer
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x91,0x22,0x83,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x91,0x22,0x83,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x80,0,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x80,0,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x81,0x82,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x83,0x84,0x85,0x86,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x83,0x84,0x85,0x86},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x87,0x98,0x99,0x9A,0x9B,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x87,0x98,0x99,0x9A},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3},
- Buffer() {0x78,0x56,0x34,0x42,0x9C,0x9D,0x9E,0x9F},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB},
- Buffer() {0x78,0x56,0x34,0x42,0xA4,0xA5,0xA6,0xA7},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62},
- Buffer() {0x78,0x56,0x34,0x42,0x91,0x92,0x93,0x94},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 1,2,3,4,5,6,7,8},
- Buffer() {0x78,0x56,0x34,0x42,1,2,3,4},
-
- // X - Field Unit
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x7f,0,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x7f,0,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x07,0,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x07,0,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x8d,0,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x8d,0,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x8d,0x8c,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x8d,0x8c,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x8D,0x8C,0x8B,0x8A,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x8D,0x8C,0x8B,0x8A},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0xFF,0xFF,0xFF,0xFF},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
- Buffer() {0x78,0x56,0x34,0x42,0x58,0x46,0x37,0x88},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x58,0x9a,0x37,0x88,0x19,0xFA,0xDE,0xDC},
- Buffer() {0x78,0x56,0x34,0x42,0x58,0x9a,0x37,0x88},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC},
- Buffer() {0x78,0x56,0x34,0x42,0x58,0xc7,0x37,0x88},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF},
- Buffer() {0x78,0x56,0x34,0x42,0x82,0x34,0x56,0x78},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52},
- Buffer() {0x78,0x56,0x34,0x42,0x93,0xAB,0xCD,0xEF},
-
- // X - Buffer Field
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xAB,0x54,0x86,0x91,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0xAB,0x54,0x86,0x91},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x07,0,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x07,0,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x8d,0,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x8d,0,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x8d,0x8c,0,0,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x8d,0x8c,0,0},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x8D,0x8C,0x8B,0x8A,0,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0x8D,0x8C,0x8B,0x8A},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
- Buffer() {0x78,0x56,0x34,0x42,0xFF,0xFF,0xFF,0xFF},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
- Buffer() {0x78,0x56,0x34,0x42,0x58,0x46,0x37,0x88},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x58,0x9a,0x37,0x88,0x19,0xFA,0xDE,0xDC},
- Buffer() {0x78,0x56,0x34,0x42,0x58,0x9a,0x37,0x88},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC},
- Buffer() {0x78,0x56,0x34,0x42,0x58,0xc7,0x37,0x88},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF},
- Buffer() {0x78,0x56,0x34,0x42,0x82,0x34,0x56,0x78},
-
- Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
- 0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52},
- Buffer() {0x78,0x56,0x34,0x42,0x93,0xAB,0xCD,0xEF},
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer
-
- Buffer() {0x32,0x54,0x76,0x58,0x00,0x00,0x00,0x00,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x32,0x54,0x76,0x58,0x78,0x56,0x34,0x42},
-
- // X - String
-
- "qwrtABEDF18942345678",
- "qwrt42345678",
-
- "svnmjklABEDF18942345678",
- "svnmjkl42345678",
-
- "1234zyqABEDF18942345678",
- "1234zyq42345678",
-
- "abcdefzyqABEDF18942345678",
- "abcdefzyq42345678",
-
- "9876ABEDF18942345678",
- "987642345678",
-
- "aBcDABEDF18942345678",
- "aBcD42345678",
-
- "1234567890987654ABEDF18942345678",
- "123456789098765442345678",
-
- "daFeCBaabbddffeeABEDF18942345678",
- "daFeCBaabbddffee42345678",
-
- "1234567890abCdeFABEDF18942345678",
- "1234567890abCdeF42345678",
-
- "FdeAcb0132547698ABEDF18942345678",
- "FdeAcb013254769842345678",
-
- "12345678909876540ABEDF18942345678",
- "1234567890987654042345678",
-
- "fdeacb01325476980ABEDF18942345678",
- "fdeacb0132547698042345678",
-
- "123456789011223344556677889998765432199983337744ABEDF18942345678",
- "12345678901122334455667788999876543219998333774442345678",
-
- "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffddABEDF18942345678",
- "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd42345678",
-
- "1234567890abcdef9876543210fedbca1122334455667788fdeacbABEDF18942345678",
- "1234567890abcdef9876543210fedbca1122334455667788fdeacb42345678",
-
- "defa1234567890abcdef9876543210fedbca1122334455667788fdeacbABEDF18942345678",
- "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb42345678",
-
- "123456789011223344556677889998765432199983337744zABEDF18942345678",
- "123456789011223344556677889998765432199983337744z42345678",
-
- // X - Buffer
-
- Buffer() {0x91,0x22,0x83,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x91,0x22,0x83,0x78,0x56,0x34,0x42},
-
- Buffer() {0x80,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x80,0x78,0x56,0x34,0x42},
-
- Buffer() {0x81,0x82,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x81,0x82,0x78,0x56,0x34,0x42},
-
- Buffer() {0x83,0x84,0x85,0x86,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x83,0x84,0x85,0x86,0x78,0x56,0x34,0x42},
-
- Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x78,0x56,0x34,0x42},
-
- Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x78,0x56,0x34,0x42},
-
- Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x78,0x56,0x34,0x42},
-
- Buffer() {
- 0x91, 0x92, 0x93, 0x94, 95, 96, 97, 98, 99, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
- 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
- 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
- 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
- 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
- 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
- 193,194,195,196,197,198,199,200,
- 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {
- 0x91, 0x92, 0x93, 0x94, 95, 96, 97, 98, 99, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
- 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
- 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
- 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
- 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
- 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
- 193,194,195,196,197,198,199,200,
- 0x78,0x56,0x34,0x42},
-
- Buffer() {
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
- 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
- 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
- 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
- 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
- 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
- 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
- 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
- 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
- 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255, 0, 1,
- 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
- 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
- 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
- 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
- 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
- 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
- 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
- 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
- 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
- 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
- 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
- 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255, 0, 1,
- 0x78,0x56,0x34,0x42},
-
- // X - Field Unit
-
- Buffer() {0x7F,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x7F,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x07,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x07,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x8d,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x8d,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x8d,0x8c,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x8d,0x8c,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x8d,0x8c,0x8b,0x8a,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x8d,0x8c,0x8b,0x8a,0x78,0x56,0x34,0x42},
-
- Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0x78,0x56,0x34,0x42},
-
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42},
-
-
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42},
-
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42},
-
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
- 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
- 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x78,0x56,0x34,0x42},
-
- // X - Buffer Field
-
- Buffer() {0xAB,0x54,0x86,0x91,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0xAB,0x54,0x86,0x91,0x78,0x56,0x34,0x42},
-
- Buffer() {0x07,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x07,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x8D,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x8D,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x8D,0x8c,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x8D,0x8c,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x8D,0x8c,0x8b,0x8a,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x8D,0x8c,0x8b,0x8a,0x78,0x56,0x34,0x42},
-
- Buffer() {0xff,0xff,0xff,0xff,0x01,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0xff,0xff,0xff,0xff,0x01,0x78,0x56,0x34,0x42},
-
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42},
-
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42},
-
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42},
-
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
- 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
- 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42},
-
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0x78,0x56,0x34,0x42},
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer
-
- "98760000000058765432", "987658765432",
-
- // X - String
-
- "9876qwrt", "9876qwrt",
- "9876svnmjkl", "9876svnmjkl",
- "98761234zyq", "98761234zyq",
- "9876abcdefzyq", "9876abcdefzyq",
- "98769876", "98769876",
- "9876aBcD", "9876aBcD",
- "98761234567890987654", "98761234567890987654",
- "9876daFeCBaabbddffee", "9876daFeCBaabbddffee",
- "98761234567890abCdeF", "98761234567890abCdeF",
- "9876FdeAcb0132547698", "9876FdeAcb0132547698",
-
- "987612345678909876540", "987612345678909876540",
- "9876fdeacb01325476980", "9876fdeacb01325476980",
-
- "9876123456789011223344556677889998765432199983337744",
- "9876123456789011223344556677889998765432199983337744",
-
- "9876abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd",
- "9876abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd",
-
- "98761234567890abcdef9876543210fedbca1122334455667788fdeacb",
- "98761234567890abcdef9876543210fedbca1122334455667788fdeacb",
-
- "9876defa1234567890abcdef9876543210fedbca1122334455667788fdeacb",
- "9876defa1234567890abcdef9876543210fedbca1122334455667788fdeacb",
-
- "9876123456789011223344556677889998765432199983337744z",
- "9876123456789011223344556677889998765432199983337744z",
-
- // X - Buffer
-
- "987691 22 83", "987691 22 83",
- "987680", "987680",
- "987681 82", "987681 82",
- "987683 84 85 86", "987683 84 85 86",
- "987687 98 99 9A 9B", "987687 98 99 9A 9B",
- "98769C 9D 9E 9F A0 A1 A2 A3", "98769C 9D 9E 9F A0 A1 A2 A3",
- "9876A4 A5 A6 A7 B8 B9 BA BB BC", "9876A4 A5 A6 A7 B8 B9 BA BB BC",
- "Exc", "Exc",
- "Exc", "Exc",
-
- // X - Field Unit
-
- "9876000000000000007F", "98760000007F",
- "98760000000000000007", "987600000007",
- "9876000000000000008D", "98760000008D",
- "98760000000000008C8D", "987600008C8D",
- "9876000000008A8B8C8D", "98768A8B8C8D",
- "987600000001FFFFFFFF", "9876FF FF FF FF 01",
- "98765CDEFA1988374658", "987658 46 37 88 19 FA DE 5C",
- "9876DCDEFA1988379A58", "987658 9A 37 88 19 FA DE DC",
- "987658 C7 37 88 19 FA DE DC 00", "987658 C7 37 88 19 FA DE DC 00",
-
- "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
- "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
-
- "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
- "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
-
- // X - Buffer Field
-
- "987600000000918654AB", "9876918654AB",
- "98760000000000000007", "987600000007",
- "9876000000000000008D", "98760000008D",
- "98760000000000008C8D", "987600008C8D",
- "9876000000008A8B8C8D", "98768A8B8C8D",
- "987600000001FFFFFFFF", "9876FF FF FF FF 01",
- "98765CDEFA1988374658", "987658 46 37 88 19 FA DE 5C",
- "9876DCDEFA1988379A58", "987658 9A 37 88 19 FA DE DC",
- "987658 C7 37 88 19 FA DE DC 00", "987658 C7 37 88 19 FA DE DC 00",
-
- "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
- "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
-
- "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
- "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer
-
- Buffer() {0x32,0x54,0x76,0x58,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x32,0x54,0x76,0x58,0x76,0x98,0,0},
-
- // X - String
-
- "qwrt9876", "qwrt9876",
- "svnmjkl9876", "svnmjkl9876",
- "1234zyq9876", "1234zyq9876",
- "abcdefzyq9876", "abcdefzyq9876",
- "98769876", "98769876",
- "aBcD9876", "aBcD9876",
- "12345678909876549876", "12345678909876549876",
- "daFeCBaabbddffee9876", "daFeCBaabbddffee9876",
- "1234567890abCdeF9876", "1234567890abCdeF9876",
- "FdeAcb01325476989876", "FdeAcb01325476989876",
- "123456789098765409876", "123456789098765409876",
- "fdeacb013254769809876", "fdeacb013254769809876",
-
- "1234567890112233445566778899987654321999833377449876",
- "1234567890112233445566778899987654321999833377449876",
-
- "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd9876",
- "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd9876",
-
- "1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
- "1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
-
- "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
- "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
-
- "123456789011223344556677889998765432199983337744z9876",
- "123456789011223344556677889998765432199983337744z9876",
-
- // X - Buffer
-
- Buffer() {0x91,0x22,0x83,0x39,0x38,0x37,0x36},
- Buffer() {0x91,0x22,0x83,0x39,0x38,0x37,0x36},
-
- Buffer() {0x80,0x39,0x38,0x37,0x36},
- Buffer() {0x80,0x39,0x38,0x37,0x36},
-
- Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
- Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
-
-
- Buffer() {0x83,0x84,0x85,0x86,0x39,0x38,0x37,0x36},
- Buffer() {0x83,0x84,0x85,0x86,0x39,0x38,0x37,0x36},
-
- Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x39,0x38,0x37,0x36},
- Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x39,0x38,0x37,0x36},
-
-
- Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x39,0x38,0x37,0x36},
- Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x39,0x38,0x37,0x36},
-
- Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x39,0x38,0x37,0x36},
- Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x39,0x38,0x37,0x36},
-
- Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,0x0D,
- 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
- 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
- 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
- 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
- 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
- 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
- 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
- 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
- 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
- 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
- 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
- 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
- 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
- 0xC4,0xC5,0xC6,0xC7,0xC8,0x39,0x38,0x37,0x36},
- Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,0x0D,
- 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
- 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
- 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
- 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
- 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
- 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
- 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
- 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
- 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
- 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
- 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
- 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
- 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
- 0xC4,0xC5,0xC6,0xC7,0xC8,0x39,0x38,0x37,0x36},
-
- Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,
- 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
- 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
- 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
- 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
- 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
- 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
- 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
- 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
- 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
- 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
- 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
- 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
- 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
- 0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,
- 0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,
- 0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,
- 0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,
- 0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01,0x39,0x38,0x37,
- 0x36},
- Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,
- 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
- 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
- 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
- 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
- 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
- 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
- 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
- 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
- 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
- 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
- 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
- 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
- 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
- 0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,
- 0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,
- 0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,
- 0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,
- 0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01,0x39,0x38,0x37,
- 0x36},
-
- // X - Field Unit
-
- Buffer() {0x7F,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x7F,0,0,0,0x76,0x98,0,0},
-
- Buffer() {0x07,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x07,0,0,0,0x76,0x98,0,0},
-
- Buffer() {0x8d,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x8d,0,0,0,0x76,0x98,0,0},
-
- Buffer() {0x8d,0x8c,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x8d,0x8c,0,0,0x76,0x98,0,0},
-
- Buffer() {0x8d,0x8c,0x8b,0x8a,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x8d,0x8c,0x8b,0x8a,0x76,0x98,0,0},
-
- Buffer() {0xff,0xff,0xff,0xff,0x01,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0xff,0xff,0xff,0xff,0x01,0x39,0x38,0x37,0x36},
-
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x39,0x38,0x37,0x36},
-
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x39,0x38,0x37,0x36},
-
- Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
- Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
-
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
-
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
-
- // X - Buffer Field
-
- Buffer() {0xAB,0x54,0x86,0x91,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0xAB,0x54,0x86,0x91,0x76,0x98,0,0},
-
- Buffer() {0x07,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x07,0,0,0,0x76,0x98,0,0},
-
- Buffer() {0x8d,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x8d,0,0,0,0x76,0x98,0,0},
-
- Buffer() {0x8d,0x8c,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x8d,0x8c,0,0,0x76,0x98,0,0},
-
- Buffer() {0x8d,0x8c,0x8b,0x8a,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x8d,0x8c,0x8b,0x8a,0x76,0x98,0,0},
-
- Buffer() {0xff,0xff,0xff,0xff,0x01,0,0,0,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0xff,0xff,0xff,0xff,0x01,0x39,0x38,0x37,0x36},
-
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x39,0x38,0x37,0x36},
-
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x76,0x98,0,0,0,0,0,0},
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x39,0x38,0x37,0x36},
-
- Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
- Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
-
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
-
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer
-
- Buffer() {0x81,0x82,0x32,0x54,0x76,0x58,0,0,0,0},
- Buffer() {0x81,0x82,0x32,0x54,0x76,0x58},
-
- // X - String
-
- Buffer() {0x81,0x82,0x71,0x77,0x72,0x74},
- Buffer() {0x81,0x82,0x71,0x77,0x72,0x74},
-
- Buffer() {0x81,0x82,0x73,0x76,0x6E,0x6D,0x6A,0x6B,0x6C},
- Buffer() {0x81,0x82,0x73,0x76,0x6E,0x6D,0x6A,0x6B,0x6C},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x7A,0x79,0x71},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x7A,0x79,0x71},
-
- Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x7A,0x79,0x71},
- Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x7A,0x79,0x71},
-
- Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
- Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
-
- Buffer() {0x81,0x82,0x61,0x42,0x63,0x44},
- Buffer() {0x81,0x82,0x61,0x42,0x63,0x44},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34},
-
- Buffer() {0x81,0x82,0x64,0x61,0x46,0x65,0x43,0x42,0x61,0x61,0x62,0x62,0x64,0x64,0x66,0x66,0x65,0x65},
- Buffer() {0x81,0x82,0x64,0x61,0x46,0x65,0x43,0x42,0x61,0x61,0x62,0x62,0x64,0x64,0x66,0x66,0x65,0x65},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x43,0x64,0x65,0x46},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x43,0x64,0x65,0x46},
-
- Buffer() {0x81,0x82,0x46,0x64,0x65,0x41,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38},
- Buffer() {0x81,0x82,0x46,0x64,0x65,0x41,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34,0x30},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34,0x30},
-
- Buffer() {0x81,0x82,0x66,0x64,0x65,0x61,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38,0x30},
- Buffer() {0x81,0x82,0x66,0x64,0x65,0x61,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38,0x30},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,0x33,0x34,
- 0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,
- 0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,0x33,0x34,
- 0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,
- 0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34},
-
- Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x61,0x41,0x62,0x62,0x63,0x63,0x64,0x64,0x65,0x65,
- 0x66,0x66,0x66,0x66,0x65,0x65,0x64,0x64,0x63,0x63,0x61,0x61,0x62,0x62,0x64,0x64,0x65,0x65,
- 0x66,0x66,0x61,0x61,0x61,0x61,0x62,0x62,0x62,0x62,0x65,0x65,0x65,0x66,0x66,0x66,0x64,0x64},
- Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x61,0x41,0x62,0x62,0x63,0x63,0x64,0x64,0x65,0x65,
- 0x66,0x66,0x66,0x66,0x65,0x65,0x64,0x64,0x63,0x63,0x61,0x61,0x62,0x62,0x64,0x64,0x65,0x65,
- 0x66,0x66,0x61,0x61,0x61,0x61,0x62,0x62,0x62,0x62,0x65,0x65,0x65,0x66,0x66,0x66,0x64,0x64},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x63,0x64,0x65,
- 0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,0x64,0x62,0x63,0x61,
- 0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x66,
- 0x64,0x65,0x61,0x63,0x62},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x63,0x64,0x65,
- 0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,0x64,0x62,0x63,0x61,
- 0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x66,
- 0x64,0x65,0x61,0x63,0x62},
-
- Buffer() {0x81,0x82,0x64,0x65,0x66,0x61,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,
- 0x62,0x63,0x64,0x65,0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,
- 0x64,0x62,0x63,0x61,0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,
- 0x37,0x38,0x38,0x66,0x64,0x65,0x61,0x63,0x62},
- Buffer() {0x81,0x82,0x64,0x65,0x66,0x61,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,
- 0x62,0x63,0x64,0x65,0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,
- 0x64,0x62,0x63,0x61,0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,
- 0x37,0x38,0x38,0x66,0x64,0x65,0x61,0x63,0x62},
-
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,
- 0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,
- 0x35,0x34,0x33,0x32,0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34,0x7A},
- Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,
- 0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,
- 0x35,0x34,0x33,0x32,0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34,0x7A},
-
- // X - Buffer
-
- Buffer() {0x81,0x82,0x91,0x22,0x83},
- Buffer() {0x81,0x82,0x91,0x22,0x83},
-
- Buffer() {0x81,0x82,0x80},
- Buffer() {0x81,0x82,0x80},
-
- Buffer() {0x81,0x82,0x81,0x82},
- Buffer() {0x81,0x82,0x81,0x82},
-
- Buffer() {0x81,0x82,0x83,0x84,0x85,0x86},
- Buffer() {0x81,0x82,0x83,0x84,0x85,0x86},
-
- Buffer() {0x81,0x82,0x87,0x98,0x99,0x9A,0x9B},
- Buffer() {0x81,0x82,0x87,0x98,0x99,0x9A,0x9B},
-
- Buffer() {0x81,0x82,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3},
- Buffer() {0x81,0x82,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3},
-
- Buffer() {0x81,0x82,0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC},
- Buffer() {0x81,0x82,0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC},
-
- Buffer() {0x81,0x82,0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,
- 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
- 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
- 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
- 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
- 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
- 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
- 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
- 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
- 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
- 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
- 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
- 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8},
- Buffer() {0x81,0x82,0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,
- 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
- 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
- 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
- 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
- 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
- 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
- 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
- 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
- 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
- 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
- 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
- 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8},
-
- Buffer() {0x81,0x82,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
- 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
- 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
- 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
- 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
- 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
- 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
- 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
- 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
- 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
- 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
- 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
- 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,
- 0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,
- 0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,
- 0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,
- 0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01},
- Buffer() {0x81,0x82,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
- 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
- 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
- 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
- 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
- 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
- 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
- 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
- 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
- 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
- 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
- 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
- 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,
- 0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,
- 0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,
- 0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,
- 0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01},
-
- // X - Field Unit
-
- Buffer() {0x81,0x82,0x7F,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x7F,0,0,0},
-
- Buffer() {0x81,0x82,0x07,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x07,0,0,0},
-
- Buffer() {0x81,0x82,0x8D,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x8D,0,0,0},
-
- Buffer() {0x81,0x82,0x8D,0x8C,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x8D,0x8C,0,0},
-
- Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A,0,0,0,0},
- Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A},
-
- Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
- Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01},
-
- Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
- Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
-
- Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
- Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
-
- Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
- Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
-
- Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
-
- Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-
- // X - Buffer Field
-
- Buffer() {0x81,0x82,0xAB,0x54,0x86,0x91,0,0,0,0},
- Buffer() {0x81,0x82,0xAB,0x54,0x86,0x91},
-
- Buffer() {0x81,0x82,0x07,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x07,0,0,0},
-
- Buffer() {0x81,0x82,0x8D,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x8D,0,0,0},
-
- Buffer() {0x81,0x82,0x8D,0x8C,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x8D,0x8C,0,0},
-
- Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A,0,0,0,0},
- Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A},
-
- Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
- Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01},
-
- Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
- Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
-
- Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
- Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
-
- Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
- Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
-
- Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
-
- Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer
-
- Buffer() {0x32,0x54,0x76,0x58,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x32,0x54,0x76,0x58,0x81,0x82,0,0},
-
- // X - String
-
- "qwrt81 82", "qwrt81 82",
- "svnmjkl81 82", "svnmjkl81 82",
- "1234zyq81 82", "1234zyq81 82",
- "abcdefzyq81 82", "abcdefzyq81 82",
- "987681 82", "987681 82",
- "aBcD81 82", "aBcD81 82",
- "123456789098765481 82", "123456789098765481 82",
- "daFeCBaabbddffee81 82", "daFeCBaabbddffee81 82",
- "1234567890abCdeF81 82", "1234567890abCdeF81 82",
- "FdeAcb013254769881 82", "FdeAcb013254769881 82",
- "1234567890987654081 82", "1234567890987654081 82",
- "fdeacb0132547698081 82", "fdeacb0132547698081 82",
-
- "12345678901122334455667788999876543219998333774481 82",
- "12345678901122334455667788999876543219998333774481 82",
-
- "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd81 82",
- "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd81 82",
-
- "1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
- "1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
-
- "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
- "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
-
- "123456789011223344556677889998765432199983337744z81 82",
- "123456789011223344556677889998765432199983337744z81 82",
-
- // X - Buffer
-
- Buffer() {0x91,0x22,0x83,0x81,0x82},
- Buffer() {0x91,0x22,0x83,0x81,0x82},
-
- Buffer() {0x80,0x81,0x82},
- Buffer() {0x80,0x81,0x82},
-
- Buffer() {0x81,0x82,0x81,0x82},
- Buffer() {0x81,0x82,0x81,0x82},
-
- Buffer() {0x83,0x84,0x85,0x86,0x81,0x82},
- Buffer() {0x83,0x84,0x85,0x86,0x81,0x82},
-
- Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x81,0x82},
- Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x81,0x82},
-
- Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x81,0x82},
- Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x81,0x82},
-
- Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x81,0x82},
- Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x81,0x82},
-
- Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,
- 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
- 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
- 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
- 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
- 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
- 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
- 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
- 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
- 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
- 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
- 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
- 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
- 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0x81,0x82},
- Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,
- 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
- 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
- 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
- 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
- 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
- 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
- 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
- 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
- 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
- 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
- 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
- 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
- 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0x81,0x82},
-
- Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,
- 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
- 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
- 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
- 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
- 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
- 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
- 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
- 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
- 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
- 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
- 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
- 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
- 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,
- 0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,
- 0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,
- 0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,
- 0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,
- 0xFD,0xFE,0xFF,0x00,0x01,0x81,0x82},
- Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,
- 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
- 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
- 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
- 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
- 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
- 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
- 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
- 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
- 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
- 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
- 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
- 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
- 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
- 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
- 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
- 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,
- 0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,
- 0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,
- 0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,
- 0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,
- 0xFD,0xFE,0xFF,0x00,0x01,0x81,0x82},
-
- // X - Field Unit
-
- Buffer() {0x7F,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x7F,0,0,0,0x81,0x82,0,0},
-
- Buffer() {0x07,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x07,0,0,0,0x81,0x82,0,0},
-
- Buffer() {0x8D,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x8D,0,0,0,0x81,0x82,0,0},
-
- Buffer() {0x8D,0x8c,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x8D,0x8c,0,0,0x81,0x82,0,0},
-
- Buffer() {0x8D,0x8c,0x8b,0x8a,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x8D,0x8c,0x8b,0x8a,0x81,0x82,0,0},
-
- Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0x81,0x82},
-
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82},
-
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82},
-
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
-
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
-
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
-
- // X - Buffer Field
-
- Buffer() {0xAB,0x54,0x86,0x91,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0xAB,0x54,0x86,0x91,0x81,0x82,0,0},
-
- Buffer() {0x07,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x07,0,0,0,0x81,0x82,0,0},
-
- Buffer() {0x8D,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x8D,0,0,0,0x81,0x82,0,0},
-
- Buffer() {0x8D,0x8c,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x8D,0x8c,0,0,0x81,0x82,0,0},
-
- Buffer() {0x8D,0x8c,0x8b,0x8a,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x8D,0x8c,0x8b,0x8a,0x81,0x82,0,0},
-
- Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0,0,0,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0x81,0x82},
-
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82},
-
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82,0,0,0,0,0,0},
- Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82},
-
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
- Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
-
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
- Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
-
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
- Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
-// Store(0x200, df00)
-// Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
-// Store(0x300, df00)
-// Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
-
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// ConcatenateResTemplate (rtb, rtb, Result) => Buffer
-//
-// Total scale of unacceptable types:
-// Source1: 0x5ef7
-// Source2: 0x5ef7
-// Total scale of acceptable types:
-// Source1: 0x0008
-// Source2: 0x0008
-Method(m404, 1, Serialized)
-{
- Name(op, 4)
-
- ts00("m404")
-
- if (arg0) {
- m486()
- Store(0x30b, df00)
- Store(0x30b, df01)
- Store(m488(op, 0x5fff, 0x5fff, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// CondRefOf (any, Result) => Boolean
-//
-// Total scale of unacceptable types:
-// Source: 0x0000
-// Total scale of acceptable types:
-// Source: 0x5eff
-Method(m405, 1, Serialized)
-{
- Name(op, 5)
-
- ts00("m405")
-
- if (arg0) {
- m486()
-
-// Error: CondRefOf failes with the Unitialized type
- Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
-
- } else {
- }
-}
-
-// CopyObject (any, Destination) => DataRefObject
-//
-// Total scale of unacceptable types:
-// Source: 0x0000
-// Total scale of acceptable types:
-// Source: 0x5eff
-Method(m406, 1, Serialized)
-{
- Name(op, 6)
-
- ts00("m406")
-
- if (arg0) {
- m486()
-
-// Error: CopyObject failes with the Unitialized type
- Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
-
- } else {
- }
-}
-
-// Decrement (int) => Integer
-//
-// Total scale of unacceptable types:
-// Minuend: 0x1ed1
-// Total scale of acceptable types:
-// Minuend: 0x402e
-Method(m407, 1, Serialized)
-{
- Name(op, 7)
-
- Name(ts, "m407")
-
- ts00(ts)
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0, 0, 0, 0x12345677, 0x12345677), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, 0x9875, 0x9875), Local7)
- Store(m48d(op, 0x209, 0, 0, 0, 0xFdeAcb0132547697, 0x32547697), Local7)
- Store(m48d(op, 0x302, 0, 0, 0, 0x8280, 0x8280), Local7)
- Store(m48d(op, 0x308, 0, 0, 0, 0x0807060504030200, 0x04030200), Local7)
- Store(m48d(op, 0x506, 0, 0, 0, 0x5CDEFA1988374657, 0x88374657), Local7)
- Store(m48d(op, 0xe06, 0, 0, 0, 0x5CDEFA1988374657, 0x88374657), Local7)
-
- // Exceptions
-
- Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
- }
-}
-
-// DerefOf ({ref|str}) => Object
-//
-// Total scale of unacceptable types:
-// Source: 0x5fff
-// Total scale of acceptable types:
-// Source: 0x0000
-Method(m408, 1, Serialized)
-{
- Name(op, 8)
-
- ts00("m408")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x5fff, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Divide (int, int, Remainder, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Dividend: 0x1ed1
-// Divisor: 0x1ed1
-// Total scale of acceptable types:
-// Dividend: 0x402e
-// Divisor: 0x402e
-Method(m409, 1, Serialized)
-{
- Name(op, 9)
-
- ts00("m409")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0x102, 0, 0, 1, 1), Local7)
- Store(m48d(op, 0x103, 0x102, 0, 0, 0x0000000971C214EA, 3), Local7)
- Store(m48d(op, 0x204, 0x102, 0, 0, 0, 0), Local7)
- Store(m48d(op, 0x209, 0x102, 0, 0, 0x0000000DF2B5C737, 2), Local7)
- Store(m48d(op, 0x302, 0x102, 0, 0, 0, 0), Local7)
- Store(m48d(op, 0x308, 0x102, 0, 0, 0x0000000070E2C4AA, 0), Local7)
- Store(m48d(op, 0x506, 0x102, 0, 0, 0x0000000519FF9D32, 7), Local7)
- Store(m48d(op, 0xe06, 0x102, 0, 0, 0x0000000519FF9D32, 7), Local7)
- Store(m48d(op, 0x103, 0x204, 0, 0, 0x000120B0A1E2C2D5, 0x00006F2A), Local7)
-
- // Exceptions
-
- Store(m48d(op, 0x202, 0x102, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x20a, 0x102, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x210, 0x102, 0, 0, "Exc", "Exc"), Local7)
-
- Store(m48d(op, 0x102, 0x202, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x102, 0x20a, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x102, 0x210, 0, 0, "Exc", "Exc"), Local7)
- }
-}
-
-// Fatal (byt, dwd, int)
-//
-// iasl: "Fatal operator requires [Integer|String|Buffer]"
-// Total scale of unacceptable types:
-// Arg: 0x1ed1
-// Total scale of acceptable types:
-// Arg: 0x402e
-Method(m410, 1, Serialized)
-{
- Name(op, 10)
-
- ts00("m410")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// FindSetLeftBit (int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-Method(m411, 1, Serialized)
-{
- Name(op, 11)
-
- ts00("m411")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0, 0, 0, 29, 29), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, 16, 16), Local7)
- Store(m48d(op, 0x206, 0, 0, 0, 61, 32), Local7)
-
- // Exceptions
-
- Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
- }
-}
-
-// FindSetRightBit (int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-Method(m412, 1, Serialized)
-{
- Name(op, 12)
-
- ts00("m412")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0, 0, 0, 4, 4), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, 2, 2), Local7)
- Store(m48d(op, 0x206, 0, 0, 0, 3, 3), Local7)
-
- // Exceptions
-
- Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
- }
-}
-
-// FromBCD (int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// BCDValue: 0x1ed1
-// Total scale of acceptable types:
-// BCDValue: 0x402e
-Method(m413, 1, Serialized)
-{
- Name(op, 13)
-
- ts00("m413")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Increment (int) => Integer
-//
-// Total scale of unacceptable types:
-// Addend: 0x1ed1
-// Total scale of acceptable types:
-// Addend: 0x402e
-Method(m414, 1, Serialized)
-{
- Name(op, 14)
-
- ts00("m414")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
-
- Store(m48d(op, 0x102, 0, 0, 0, 0x12345679, 0x12345679), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, 0x9877, 0x9877), Local7)
- Store(m48d(op, 0x209, 0, 0, 0, 0xFdeAcb0132547699, 0x32547699), Local7)
- Store(m48d(op, 0x302, 0, 0, 0, 0x8282, 0x8282), Local7)
- Store(m48d(op, 0x308, 0, 0, 0, 0x0807060504030202, 0x04030202), Local7)
- Store(m48d(op, 0x506, 0, 0, 0, 0x5CDEFA1988374659, 0x88374659), Local7)
- Store(m48d(op, 0xe06, 0, 0, 0, 0x5CDEFA1988374659, 0x88374659), Local7)
-
- // Exceptions
-
- Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
- Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
- }
-}
-
-// Index ({str|buf|pkg}, int, Destination) => ObjectReference
-//
-// Total scale of unacceptable types:
-// Source: 0x5fe3
-// Index: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x001c
-// Index: 0x402e
-Method(m415, 1, Serialized)
-{
- Name(op, 15)
-
- ts00("m415")
-
- if (arg0) {
- m486()
- Store(0x200, df00)
- Store(0x104, df01) // Zero
- Store(m488(op, 0x5fe3, 0x1ed1, 0, 0, 0), Local7)
-
-/*
-// The action above together with those below generates exception
- Store(0x300, df00)
- Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
- Store(0x400, df00)
- Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
-*/
-
- } else {
- }
-}
-
-// LAnd (int, int) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m416, 1, Serialized)
-{
- Name(op, 16)
-
- ts00("m416")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// LEqual ({int|str|buf}, {int|str|buf}) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m417, 1, Serialized)
-{
- Name(op, 17)
-
- ts00("m417")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer
-
- Zero, Zero,
-
- // X - String
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero,
-
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- // X - Buffer
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Field Unit
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer
-
- Zero, Zero,
-
- // X - String
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero,
-
- // X - Buffer
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Field Unit
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer
-
- Zero, Zero,
-
- // X - String
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero,
-
- // X - Buffer
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc",
-
- // X - Field Unit
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer
-
- Zero, Zero,
-
- // X - String
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero,
-
- // X - Buffer
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Field Unit
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer
-
- Zero, Zero,
-
- // X - String
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero,
-
- // X - Buffer
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Field Unit
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer
-
- Zero, Zero,
-
- // X - String
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero,
-
- // X - Buffer
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Field Unit
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// LGreater ({int|str|buf}, {int|str|buf}) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m418, 1, Serialized)
-{
- Name(op, 18)
-
- ts00("m418")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer, (0)
-
- Ones, Zero,
-
- // X - String, (1)
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- Ones, Ones, Ones, Ones, Ones, Zero,
- Zero, Zero, Ones, Zero, Zero, Ones,
-
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero,
- Ones, Zero, Zero, Zero, Ones, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Ones, Zero,
-
- // X - Buffer Field, (38)
-
- Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Ones, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer, (0)
-
- Zero, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Zero, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc",
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones,
-
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Ones, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m419, 1, Serialized)
-{
- Name(op, 19)
-
- ts00("m419")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer, (0)
-
- Ones, Zero,
-
- // X - String, (1)
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- Ones, Ones, Ones, Ones, Ones, Zero,
- Zero, Zero, Ones, Zero, Zero, Ones,
-
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero,
- Ones, Zero, Zero, Zero, Ones, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Ones, Zero,
-
- // X - Buffer Field, (38)
-
- Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Ones, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer, (0)
-
- Zero, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc",
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Ones, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones,
-
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer, (0)
-
- Ones, Ones,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Ones, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// LLess ({int|str|buf}, {int|str|buf}) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m420, 1, Serialized)
-{
- Name(op, 20)
-
- ts00("m420")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer, (0)
-
- Zero, Ones,
-
- // X - String, (1)
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- Zero, Zero, Zero, Zero, Zero, Ones,
- Ones, Ones, Zero, Ones, Ones, Zero,
-
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones,
- Zero, Ones, Ones, Ones, Zero, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Zero, Ones,
-
- // X - Buffer Field, (38)
-
- Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Zero, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer, (0)
-
- Ones, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Ones, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc",
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Zero, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero,
-
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Zero, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m421, 1, Serialized)
-{
- Name(op, 21)
-
- ts00("m421")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer, (0)
-
- Zero, Ones,
-
- // X - String, (1)
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- Zero, Zero, Zero, Zero, Zero, Ones,
- Ones, Ones, Zero, Ones, Ones, Zero,
-
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones,
- Zero, Ones, Ones, Ones, Zero, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Zero, Ones,
-
- // X - Buffer Field, (38)
-
- Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
- Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Zero, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer, (0)
-
- Ones, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Ones, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
- Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
-
- Ones, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
-
- Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc",
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Ones, Ones, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
-
- Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero,
-
-
- Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero,
-
- // X - Buffer, (18)
-
- Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
-
- // X - Field Unit, (27)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field, (38)
-
- Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer, (0)
-
- Zero, Zero,
-
- // X - String, (1)
-
- Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
-
- Zero, Zero, Zero, Zero, Ones, Ones,
- Zero, Zero, Ones, Ones, Zero, Zero,
-
-
- Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
- Ones, Ones, Zero, Zero, Ones, Ones,
-
- // X - Buffer, (18)
-
- Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
-
- // X - Field Unit, (27)
-
- Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
-
- // X - Buffer Field, (38)
-
- Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
- Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
- Zero, Zero,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// LNot (int) => Boolean
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-Method(m422, 1, Serialized)
-{
- Name(op, 22)
-
- ts00("m422")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m423, 1, Serialized)
-{
- Name(op, 23)
-
- ts00("m423")
-
- // Expected results: 64-bit, 32-bit
- Name(p000, Package() {
-
- // X - Integer
-
- Ones, Ones,
-
- // X - String
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones,
-
-
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
- "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
-
- // X - Buffer
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Field Unit
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p001, Package() {
-
- // X - Integer
-
- Ones, Ones,
-
- // X - String
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones,
-
- // X - Buffer
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Field Unit
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p002, Package() {
-
- // X - Integer
-
- Ones, Ones,
-
- // X - String
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones,
-
- // X - Buffer
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc",
-
- // X - Field Unit
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p003, Package() {
-
- // X - Integer
-
- Ones, Ones,
-
- // X - String
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones,
-
- // X - Buffer
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Field Unit
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p004, Package() {
-
- // X - Integer
-
- Ones, Ones,
-
- // X - String
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones,
-
- // X - Buffer
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Field Unit
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- // Expected results: 64-bit, 32-bit
- Name(p005, Package() {
-
- // X - Integer
-
- Ones, Ones,
-
- // X - String
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones,
-
- // X - Buffer
-
- Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
-
- // X - Field Unit
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
-
- // X - Buffer Field
-
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
- Ones, Ones,
- })
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- Store(1, FLG1)
-
- // (Integer ==> All other types)
- // (All other types ==> Integer)
- Store(2, com2)
- Store(p000, PKG1)
- Store(p001, PKG2)
- m48b(op, 0x103)
-
- // (String ==> All other types)
- // (All other types ==> String)
- Store(2, com2)
- Store(p002, PKG1)
- Store(p003, PKG2)
- m48b(op, 0x204)
-
- // (Buffer ==> All other types)
- // (All other types ==> Buffer)
- Store(2, com2)
- Store(p004, PKG1)
- Store(p005, PKG2)
- m48b(op, 0x302)
-
- Store(PKG0, PKG1)
- Store(PKG0, PKG2)
- Store(0, com2)
- Store(0, FLG1)
- }
-}
-
-// LOr (int, int) => Boolean
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m424, 1, Serialized)
-{
- Name(op, 24)
-
- ts00("m424")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Match (pkg, byt, int, byt, int, int) => Ones | Integer
-//
-// Total scale of unacceptable types:
-//
-// Total Currently excluded from it
-// SearchPackage: 0x5eef
-// MatchObject1: 0x1ed1
-// MatchObject2: 0x1ed1 0x1ed1 (causes error)
-// StartIndex: 0x1ed1 0x1ed1 (causes error)
-// Total scale of acceptable types:
-// SearchPackage: 0x0010
-// MatchObject1: 0x402e
-// MatchObject2: 0x402e
-// StartIndex: 0x402e
-Method(m425, 1, Serialized)
-{
- Name(op, 25)
-
- ts00("m425")
-
- if (arg0) {
- m486()
- Store(0x400, df00)
- Store(0x100, df01)
- Store(0x100, df02)
- Store(0x100, df03)
- Store(0x100, df04)
- Store(m488(op, 0x5eef, 0, 0x1ed1, 0x0000, 0x0000), Local7)
- } else {
- }
-}
-
-// Mid ({str|buf}, int, int, Result) => Buffer or String
-//
-// Total scale of unacceptable types:
-//
-// Total Currently excluded from it
-// Source: 0x1ed1
-// Index: 0x1ed1 0x0400 Op.Region (causes error)
-// Length: 0x1ed1 0x0400 Op.Region (causes error)
-// Total scale of acceptable types:
-// Source: 0x402e
-// Index: 0x402e
-// Length: 0x402e
-Method(m426, 1, Serialized)
-{
- Name(op, 26)
-
- ts00("m426")
-
- if (arg0) {
- m486()
- Store(0x200, df00)
- Store(0x100, df01)
- Store(0x100, df02)
- Store(m488(op, 0x1ed1, 0x1ad1, 0x1ad1, 0, 0), Local7)
- } else {
- }
-}
-
-// Mod (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Dividend: 0x1ed1
-// Divisor: 0x1ed1
-// Total scale of acceptable types:
-// Dividend: 0x402e
-// Divisor: 0x402e
-Method(m427, 1, Serialized)
-{
- Name(op, 27)
-
- ts00("m427")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Multiply (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Multiplicand: 0x1ed1
-// Multiplier: 0x1ed1
-// Total scale of acceptable types:
-// Multiplicand: 0x402e
-// Multiplier: 0x402e
-Method(m428, 1, Serialized)
-{
- Name(op, 28)
-
- ts00("m428")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// NAnd (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m429, 1, Serialized)
-{
- Name(op, 29)
-
- ts00("m429")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// NOr (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m430, 1, Serialized)
-{
- Name(op, 30)
-
- ts00("m430")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Not (int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-Method(m431, 1, Serialized)
-{
- Name(op, 31)
-
- ts00("m431")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// ObjectType (any) => Integer
-//
-// Total scale of unacceptable types:
-// Object: 0x0000
-// Total scale of acceptable types:
-// Object: 0x5eff
-Method(m432, 1, Serialized)
-{
- Name(op, 32)
-
- ts00("m432")
-
- if (arg0) {
- m486()
-
-// Error: ObjectType failes with the Unitialized type
- Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
-
- } else {
- }
-}
-
-// Or (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m433, 1, Serialized)
-{
- Name(op, 33)
-
- ts00("m433")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// RefOf (any) => ObjectReference
-//
-// Total scale of unacceptable types:
-// Object: 0x0000
-// Total scale of acceptable types:
-// Object: 0x5eff
-Method(m434, 1, Serialized)
-{
- Name(op, 34)
-
- ts00("m434")
-
- if (arg0) {
- m486()
-
-// Error: RefOf failes with the Unitialized type
- Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
-
- } else {
- }
-}
-
-// Release (mux)
-//
-// Total scale of unacceptable types:
-// SyncObject: 0x5cff
-// Total scale of acceptable types:
-// SyncObject: 0x0200
-Method(m435, 1, Serialized)
-{
- Name(op, 35)
-
- ts00("m435")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x5cff, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Reset (evt)
-//
-// Total scale of unacceptable types:
-// SyncObject: 0x5e7f
-// Total scale of acceptable types:
-// SyncObject: 0x0080
-Method(m436, 1, Serialized)
-{
- Name(op, 36)
-
- ts00("m436")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x5e7f, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Return ({any|ref})
-//
-// Total scale of unacceptable types:
-// Arg: 0x0000
-// Total scale of acceptable types:
-// Arg: 0x5eff
-Method(m437, 1, Serialized)
-{
- Name(op, 37)
-
- ts00("m437")
-
- if (arg0) {
- m486()
-
-// Error: Return failes with the Unitialized type
- Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
-
- } else {
- }
-}
-
-// ShiftLeft (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// ShiftCount: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-// ShiftCount: 0x402e
-Method(m438, 1, Serialized)
-{
- Name(op, 38)
-
- ts00("m438")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// ShiftRight (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// ShiftCount: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-// ShiftCount: 0x402e
-Method(m439, 1, Serialized)
-{
- Name(op, 39)
-
- ts00("m439")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Signal (evt)
-//
-// Total scale of unacceptable types:
-// SyncObject: 0x5e7f
-// Total scale of acceptable types:
-// SyncObject: 0x0080
-Method(m440, 1, Serialized)
-{
- Name(op, 40)
-
- ts00("m440")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x5e7f, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// SizeOf ({int|str|buf|pkg}) => Integer
-//
-// Total scale of unacceptable types:
-// ObjectName: 0x5ee3
-// Total scale of acceptable types:
-// ObjectName: 0x004c
-Method(m441, 1, Serialized)
-{
- Name(op, 41)
-
- ts00("m441")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x5ee3, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Sleep (int)
-//
-// Total scale of unacceptable types:
-// MilliSeconds: 0x1ed1
-// Total scale of acceptable types:
-// MilliSeconds: 0x402e
-Method(m442, 1, Serialized)
-{
- Name(op, 42)
-
- ts00("m442")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Stall (int)
-//
-// Total scale of unacceptable types:
-// MicroSeconds: 0x1ed1
-// Total scale of acceptable types:
-// MicroSeconds: 0x402e
-Method(m443, 1, Serialized)
-{
- Name(op, 43)
-
- ts00("m443")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Store (any, Destination) => DataRefObject
-//
-// Total scale of unacceptable types:
-// Source: 0x0000
-// Total scale of acceptable types:
-// Source: 0x5eff
-Method(m444, 1, Serialized)
-{
- Name(op, 44)
-
- ts00("m444")
-
- if (arg0) {
- m486()
-
-// Error: Store failes with the Unitialized type
- Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
-
- } else {
- }
-}
-
-// Subtract (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Minuend: 0x1ed1
-// Subtrahend: 0x1ed1
-// Total scale of acceptable types:
-// Minuend: 0x402e
-// Subtrahend: 0x402e
-Method(m445, 1, Serialized)
-{
- Name(op, 45)
-
- ts00("m445")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// ToBCD (int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Value: 0x1ed1
-// Total scale of acceptable types:
-// Value: 0x402e
-Method(m446, 1, Serialized)
-{
- Name(op, 46)
-
- ts00("m446")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// ToBuffer ({int|str|buf}, Result) => Buffer
-//
-// Total scale of unacceptable types:
-// Data: 0x1ed1
-// Total scale of acceptable types:
-// Data: 0x402e
-Method(m447, 1, Serialized)
-{
- Name(op, 47)
-
- ts00("m447")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// ToDecimalString ({int|str|buf}, Result) => String
-//
-// Total scale of unacceptable types:
-// Data: 0x1ed1
-// Total scale of acceptable types:
-// Data: 0x402e
-Method(m448, 1, Serialized)
-{
- Name(op, 48)
-
- ts00("m448")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0, 0, 0, "305419896", "305419896"), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, "9876", "9876"), Local7)
- Store(m48d(op, 0x209, 0, 0, 0, "FdeAcb0132547698", "FdeAcb0132547698"), Local7)
- Store(m48d(op, 0x302, 0, 0, 0, "129,130", "129,130"), Local7)
- Store(m48d(op, 0x303, 0, 0, 0, "131,132,133,134", "131,132,133,134"), Local7)
- Store(m48d(op, 0x506, 0, 0, 0, "6692061083885586008", "88,70,55,136,25,250,198,82"), Local7)
- Store(m48d(op, 0xe06, 0, 0, 0, "6692061083885586008", "88,70,55,136,25,250,198,82"), Local7)
- }
-}
-
-// ToHexString ({int|str|buf}, Result) => String
-//
-// Total scale of unacceptable types:
-// Data: 0x1ed1
-// Total scale of acceptable types:
-// Data: 0x402e
-Method(m449, 1, Serialized)
-{
- Name(op, 49)
-
- ts00("m449")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0, 0, 0, "0000000012345678", "12345678"), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, "9876", "9876"), Local7)
- Store(m48d(op, 0x209, 0, 0, 0, "FdeAcb0132547698", "FdeAcb0132547698"), Local7)
- Store(m48d(op, 0x302, 0, 0, 0, "81,82", "81,82"), Local7)
- Store(m48d(op, 0x303, 0, 0, 0, "83,84,85,86", "83,84,85,86"), Local7)
- Store(m48d(op, 0x506, 0, 0, 0, "6692061083885586008", "58,46,37,88,19,FA,C6,52"), Local7)
- Store(m48d(op, 0xe06, 0, 0, 0, "6692061083885586008", "58,46,37,88,19,FA,C6,52"), Local7)
- }
-}
-
-// ToInteger ({int|str|buf}, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Data: 0x1ed1
-// Total scale of acceptable types:
-// Data: 0x402e
-Method(m450, 1, Serialized)
-{
- Name(op, 50)
-
- ts00("m450")
-
- if (arg0) {
- m486()
- Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
- } else {
- Store(m48d(op, 0x102, 0, 0, 0, 0x12345678, 0x12345678), Local7)
- Store(m48d(op, 0x204, 0, 0, 0, 0x9876, 0x9876), Local7)
- Store(m48d(op, 0x211, 0, 0, 0, 0xF1dAB98e0D794Bc5, 0xD794BC5), Local7)
- Store(m48d(op, 0x302, 0, 0, 0, 0x8281, 0x8281), Local7)
- Store(m48d(op, 0x303, 0, 0, 0, 0x86858483, 0x86858483), Local7)
- Store(m48d(op, 0x506, 0, 0, 0, 0x52C6FA1988374658, 0x88374658), Local7)
- Store(m48d(op, 0xe06, 0, 0, 0, 0x52C6FA1988374658, 0x88374658), Local7)
- }
-}
-
-// ToString (buf, int, Result) => String
-//
-// Total scale of unacceptable types:
-// Source: 0x1ed1
-// Length: 0x1ed1
-// Total scale of acceptable types:
-// Source: 0x402e
-// Length: 0x402e
-Method(m451, 1, Serialized)
-{
- Name(op, 51)
-
- ts00("m451")
-
- if (arg0) {
- m486()
- Store(0x300, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// Wait (evt, int) => Boolean
-//
-// Total scale of unacceptable types:
-// SyncObject: 0x5e7f
-// SyncObject: 0x1ed1
-// Total scale of acceptable types:
-// SyncObject: 0x0080
-// SyncObject: 0x402e
-Method(m452, 1, Serialized)
-{
- Name(op, 52)
-
- ts00("m452")
-
- if (arg0) {
- m486()
- Store(0x700, df00)
- Store(0x100, df01)
- Store(m488(op, 0x5e7f, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-// XOr (int, int, Result) => Integer
-//
-// Total scale of unacceptable types:
-// Source1: 0x1ed1
-// Source2: 0x1ed1
-// Total scale of acceptable types:
-// Source1: 0x402e
-// Source2: 0x402e
-Method(m453, 1, Serialized)
-{
- Name(op, 53)
-
- ts00("m453")
-
- if (arg0) {
- m486()
- Store(0x100, df00)
- Store(0x100, df01)
- Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
- } else {
- }
-}
-
-Method(m460, 1, Serialized)
-{
-if (1) {
- m400(arg0)
- m401(arg0)
- m402(arg0)
- m403(arg0)
- m404(arg0)
- m405(arg0)
- m406(arg0)
- m407(arg0)
- m408(arg0)
- m409(arg0)
- m410(arg0)
- m411(arg0)
- m412(arg0)
- m413(arg0)
- m414(arg0)
- m415(arg0)
- m416(arg0)
- m417(arg0)
- m418(arg0)
- m419(arg0)
- m420(arg0)
- m421(arg0)
- m422(arg0)
- m423(arg0)
- m424(arg0)
- m425(arg0)
- m426(arg0)
- m427(arg0)
- m428(arg0)
- m429(arg0)
- m430(arg0)
- m431(arg0)
- m432(arg0)
- m433(arg0)
- m434(arg0)
- m435(arg0)
- m436(arg0)
- m437(arg0)
- m438(arg0)
- m439(arg0)
- m440(arg0)
- m441(arg0)
- m442(arg0)
- m443(arg0)
- m444(arg0)
- m445(arg0)
- m446(arg0)
- m447(arg0)
- m448(arg0)
- m449(arg0)
- m450(arg0)
- m451(arg0)
- m452(arg0)
- m453(arg0)
-} else {
-// m400(arg0)
-// m401(arg0)
-// m402(arg0)
-// m403(arg0)
-// m407(arg0)
-// m409(arg0)
-// m411(arg0)
-// m412(arg0)
-// m414(arg0)
-// m417(arg0)
-// m418(arg0)
-// m448(arg0)
-// m449(arg0)
-// m450(arg0)
-
-// m400(arg0)
- m401(arg0)
-}
-
-if (0) {
-
-Name(xxxx, 0)
-Name(b000, Buffer(10) {})
-Name(s000, "000000000000000000000000000000")
-
-Store("-=-=-=-=-=-=-=-=-=-=-=", Debug)
-
-Store(LGreater(10, 5), Local0)
-Store(Local0, Debug)
-Store(LGreater(5, 10), Local0)
-Store(Local0, Debug)
-
-Store(LGreater("11", 0x11), Local0)
-Store(Local0, Debug)
-
-Store(LEqual("11", 0x11), Local0)
-Store(Local0, Debug)
-
-Store("11", xxxx)
-Store(xxxx, Debug)
-
-
-Store(LGreater("11", 0x0fffffff), Local0)
-Store(Local0, Debug)
-
-Store(LGreater(0x12, "11"), Local0)
-Store(Local0, Debug)
-
-Store("1234567890abCdeF", xxxx)
-Store(xxxx, Debug)
-
-Store("FdeAcb0132547698", xxxx)
-Store(xxxx, Debug)
-
-Store("FdeAcb0132547698", xxxx)
-Store(xxxx, Debug)
-
-// [ACPI Debug] Integer: 0x90ABCDEF
-// [ACPI Debug] Integer: 0x32547698
-
-Store("qwrt", b000)
-Store(b000, Debug)
-
-// 71 77 72 74 00 00 00 00 00 00
-
-Store(0xABEDF18942345678, s000)
-Store(s000, Debug)
-
-// "ABEDF18942345678"
-
-Store("ABEDF18942345678", b000)
-Store(b000, Debug)
-
-// 41 42 45 44 46 31 38 39 34 32
-}
-
-}
-
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+/*
+
+ ============================
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ IT IS IN PROGRESS !!!!!!!!!!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ ============================
+
+SEE: LEqual (and LGreater ?) tests were mostly checked for 64-bit mode only.
+ Do that after ACPICA bugs are fixed.
+SEE: what can be removed from m48b
+*/
+
+//
+// Implicit Source Operand Conversion, complex test
+//
+
+Name(z065, 65)
+
+// Acquire (mux, wrd) => Boolean
+//
+// Total scale of unacceptable types:
+// SyncObject: 0x5cff
+// Total scale of acceptable types:
+// SyncObject: 0x0200
+Method(m400, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m400")
+
+ ts00(ts)
+
+ if (arg0) {
+ m486()
+ Store(0x900, df00)
+ Store(m488(op, 0x5cff, 0, 0, 0, 0), Local7)
+ } else {
+
+ Store(m48d(op, 0x900, 0, 0, 0, Zero, Zero), Local7)
+ Store(m48d(op, 0x901, 0, 0, 0, Zero, Zero), Local7)
+ }
+}
+
+// Add, check all unavailable non-hex symbols
+Method(m4a2, 1, Serialized)
+{
+ Name(ts, "m4a2")
+
+ Name(s000, "`-=qwrtyuiop[]\\sghjkl;'zxvnm,./~!@#$%^&*()_+QWRTYUIOP{}|SGHJKL:\"ZXVNM<>? ")
+
+ Name(lpN0, 73)
+ Name(lpC0, 0)
+
+ While (lpN0) {
+
+ Store(m4a1(s000, lpC0), Local0)
+
+ Store(ObjectType(Local0), Local1)
+ if (LNotEqual(Local1, 2)) {
+ err(arg0, z065, 0, 0, 0, Local1, 2)
+ } else {
+ Store(SizeOf(Local0), Local1)
+ if (LNotEqual(Local1, 1)) {
+ err(arg0, z065, 1, 0, 0, Local1, 1)
+ } else {
+ CH03(ts, z065, 0, 0, 0)
+ Add(Local0, 0, Local7)
+ CH04(arg0, 0, 34, z065, 1, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 2, 0, 0)
+ Add(0, Local0, Local7)
+ CH04(arg0, 0, 34, z065, 3, 0, 0) // AE_BAD_HEX_CONSTANT
+ }
+ }
+
+ Store(Local0, Debug)
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+}
+
+// Add, check all available hex symbols
+Method(m4a4, 1, Serialized)
+{
+ Name(ts, "m4a4")
+
+ Name(s000, "0123456789abcdefABCDEF")
+
+ Name(lpN0, 22)
+ Name(lpC0, 0)
+
+ While (lpN0) {
+
+ Store(m4a1(s000, lpC0), Local0)
+
+ Store(ObjectType(Local0), Local1)
+ if (LNotEqual(Local1, 2)) {
+ err(arg0, z065, 2, 0, 0, Local1, 2)
+ } else {
+ Store(SizeOf(Local0), Local1)
+ if (LNotEqual(Local1, 1)) {
+ err(arg0, z065, 3, 0, 0, Local1, 1)
+ } else {
+ CH03(ts, z065, 4, 0, 0)
+ Add(Local0, 0, Local7)
+ CH03(ts, z065, 5, 0, 0)
+
+ CH03(ts, z065, 6, 0, 0)
+ Add(0, Local0, Local7)
+ CH03(ts, z065, 7, 0, 0)
+ }
+ }
+
+ Store(Local0, Debug)
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+}
+
+// Add, checkings in accordance with the Table 1
+Method(m4a0, 1, Serialized)
+{
+ Name(ts, "m4a0")
+
+ ts00(ts)
+
+ if (arg0) {
+
+ CH03(ts, z065, 8, 0, 0)
+ Add("fedcba98765432101", 0, Local7)
+ CH04(ts, 0, 34, z065, 9, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 10, 0, 0)
+ Add(0, "fedcba98765432101", Local7)
+ CH04(ts, 0, 34, z065, 11, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 12, 0, 0)
+ Add("1234q", 0, Local7)
+ CH04(ts, 0, 34, z065, 13, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 14, 0, 0)
+ Add(0, "1234q", Local7)
+ CH04(ts, 0, 34, z065, 15, 0, 0) // AE_BAD_HEX_CONSTANT
+
+
+if (0) {
+
+ CH03(ts, z065, 16, 0, 0)
+ Add("0xfedcba98765432", 0, Local7)
+ CH04(ts, 0, 34, z065, 17, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 18, 0, 0)
+ Add(0, "0xfedcba98765432", Local7)
+ CH04(ts, 0, 34, z065, 19, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 20, 0, 0)
+ Add("", 0, Local7)
+ CH04(ts, 0, 34, z065, 21, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 22, 0, 0)
+ Add(0, "", Local7)
+ CH04(ts, 0, 34, z065, 23, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 24, 0, 0)
+ Add(" ", 0, Local7)
+ CH04(ts, 0, 34, z065, 25, 0, 0) // AE_BAD_HEX_CONSTANT
+
+ CH03(ts, z065, 26, 0, 0)
+ Add(0, " ", Local7)
+ CH04(ts, 0, 34, z065, 27, 0, 0) // AE_BAD_HEX_CONSTANT
+}
+
+ m4a2(ts)
+
+ } else {
+
+ // Integers, directly
+
+ Add(0321, 0, Local7)
+ m4c0(ts, Local7, 0xd1, 0xd1)
+
+ Add(9876543210, 0, Local7)
+ m4c0(ts, Local7, 0x000000024CB016EA, 0x4CB016EA)
+
+ Add(0xfedcba9876543210, 0, Local7)
+ m4c0(ts, Local7, 0xFEDCBA9876543210, 0x76543210)
+
+ Add(0, 0, Local7)
+ m4c0(ts, Local7, 0, 0)
+
+ Add(0xffffffffffffffff, 0, Local7)
+ m4c0(ts, Local7, 0xffffffffffffffff, 0xffffffff)
+
+ Add(0, 0321, Local7)
+ m4c0(ts, Local7, 0xd1, 0xd1)
+
+ Add(0, 9876543210, Local7)
+ m4c0(ts, Local7, 0x000000024CB016EA, 0x4CB016EA)
+
+ Add(0, 0xfedcba9876543210, Local7)
+ m4c0(ts, Local7, 0xFEDCBA9876543210, 0x76543210)
+
+ Add(0, 0xffffffffffffffff, Local7)
+ m4c0(ts, Local7, 0xffffffffffffffff, 0xffffffff)
+
+
+ // Strings, directly
+
+ Add("0321", 0, Local7)
+ m4c0(ts, Local7, 0x321, 0x321)
+
+ Add("9876543210", 0, Local7)
+ m4c0(ts, Local7, 0x9876543210, 0x76543210)
+
+ Add("321", 0, Local7)
+ m4c0(ts, Local7, 0x321, 0x321)
+
+ Add("fedcba9876543210", 0, Local7)
+ m4c0(ts, Local7, 0xfedcba9876543210, 0x76543210)
+
+ m4a4(ts)
+
+ // Buffers
+ // Buffer Units
+
+ }
+
+/*
+ Add(xxxxxx, 0, Local7)
+ m4c0(ts, Local7, 0, 0)
+
+ Add("xxxxxx", 0, Local7)
+ m4c0(ts, Local7, 0, 0)
+*/
+
+if (0) {
+ Store(9876543210, Debug)
+}
+}
+
+// Add (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Addend1: 0x1ed1
+// Addend2: 0x1ed1
+// Total scale of acceptable types:
+// Addend1: 0x402e
+// Addend1: 0x402e
+Method(m401, 1, Serialized)
+{
+ Name(op, 1)
+
+ ts00("m401")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer
+
+ 0x58765432, 0x58765432,
+
+ // X - String
+
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ 0x9876, 0x9876,
+ 0xabcd, 0xabcd,
+ 0x1234567890987654, 0x90987654,
+ 0xdafecbaabbddffee, 0xbbddffee,
+ 0x1234567890abcdef, 0x90abcdef,
+ 0xfdeacb0132547698, 0x32547698,
+
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ // X - Buffer
+
+ 0x832291, 0x832291,
+ 0x80, 0x80,
+ 0x8281, 0x8281,
+ 0x86858483, 0x86858483,
+ 0x9b9A999887, 0x9A999887,
+ 0xa3a2a1a09F9E9D9C, 0x9F9E9D9C,
+ 0xbbbab9b8A7A6A5A4, 0xA7A6A5A4,
+ 0x6261605F94939291, 0x94939291,
+ 0x0807060504030201, 0x04030201,
+
+ // X - Field Unit
+
+ 0x7f, 0x7f,
+ 0x07, 0x07,
+ 0x8d, 0x8d,
+ 0x8c8d, 0x8c8d,
+ 0x8a8b8c8d, 0x8a8b8c8d,
+ 0x1ffffffff, 0xffffffff,
+ 0x5cdefa1988374658, 0x88374658,
+ 0xdcdefa1988379a58, 0x88379a58,
+ 0xdcdefa198837c758, 0x8837c758,
+ 0xEFCDAB9078563482, 0x78563482,
+ 0x52CD1299EFCDAB93, 0xEFCDAB93,
+
+ // X - Buffer Field
+
+ 0x918654ab, 0x918654ab,
+ 0x07, 0x07,
+ 0x8d, 0x8d,
+ 0x8c8d, 0x8c8d,
+ 0x8a8b8c8d, 0x8a8b8c8d,
+ 0x1ffffffff, 0xffffffff,
+ 0x5cdefa1988374658, 0x88374658,
+ 0xdcdefa1988379a58, 0x88379a58,
+ 0xdcdefa198837c758, 0x8837c758,
+ 0xEFCDAB9078563482, 0x78563482,
+ 0x52CD1299EFCDAB93, 0xEFCDAB93,
+ })
+
+ if (arg0) {
+
+ if (0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ }
+ m4a0(1)
+ } elseif (0) {
+ Store(1, FLG1)
+ Store(1, com2)
+ Store(p000, PKG1)
+ Store(PKG0, PKG2)
+ m48b(op, 0x104)
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ } else {
+ m4a0(0)
+ }
+}
+
+// And (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m402, 1, Serialized)
+{
+ Name(op, 2)
+
+ ts00("m402")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer
+
+ 0x58765432, 0x58765432,
+
+ // X - String
+
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ 0x9876, 0x9876,
+ 0xabcd, 0xabcd,
+ 0x1234567890987654, 0x90987654,
+ 0xdafecbaabbddffee, 0xbbddffee,
+ 0x1234567890abcdef, 0x90abcdef,
+ 0xfdeacb0132547698, 0x32547698,
+
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ // X - Buffer
+
+ 0x832291, 0x832291,
+ 0x80, 0x80,
+ 0x8281, 0x8281,
+ 0x86858483, 0x86858483,
+ 0x9b9A999887, 0x9A999887,
+ 0xa3a2a1a09F9E9D9C, 0x9F9E9D9C,
+ 0xbbbab9b8A7A6A5A4, 0xA7A6A5A4,
+ 0x6261605F94939291, 0x94939291,
+ 0x0807060504030201, 0x04030201,
+
+ // X - Field Unit
+
+ 0x7f, 0x7f,
+ 0x07, 0x07,
+ 0x8d, 0x8d,
+ 0x8c8d, 0x8c8d,
+ 0x8a8b8c8d, 0x8a8b8c8d,
+ 0x1ffffffff, 0xffffffff,
+ 0x5cdefa1988374658, 0x88374658,
+ 0xdcdefa1988379a58, 0x88379a58,
+ 0xdcdefa198837c758, 0x8837c758,
+ 0xEFCDAB9078563482, 0x78563482,
+ 0x52CD1299EFCDAB93, 0xEFCDAB93,
+
+ // X - Buffer Field
+
+ 0x918654ab, 0x918654ab,
+ 0x07, 0x07,
+ 0x8d, 0x8d,
+ 0x8c8d, 0x8c8d,
+ 0x8a8b8c8d, 0x8a8b8c8d,
+ 0x1ffffffff, 0xffffffff,
+ 0x5cdefa1988374658, 0x88374658,
+ 0xdcdefa1988379a58, 0x88379a58,
+ 0xdcdefa198837c758, 0x8837c758,
+ 0xEFCDAB9078563482, 0x78563482,
+ 0x52CD1299EFCDAB93, 0xEFCDAB93,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+ Store(1, com2)
+ Store(p000, PKG1)
+ Store(PKG0, PKG2)
+ m48b(op, 0x106)
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// Concatenate({int|str|buf}, {int|str|buf}, Result) => ComputationalData
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m403, 1, Serialized)
+{
+ Name(op, 3)
+
+ ts00("m403")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,0x32,0x54,0x76,0x58,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x32,0x54,0x76,0x58},
+
+ // X - String
+
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x76,0x98,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xcd,0xab,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0xcd,0xab,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x54,0x76,0x98,0x90,0x78,0x56,0x34,0x12},
+ Buffer() {0x78,0x56,0x34,0x42,0x54,0x76,0x98,0x90},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xEE,0xFF,0xDD,0xBB,0xAA,0xCB,0xFE,0xDA},
+ Buffer() {0x78,0x56,0x34,0x42,0xEE,0xFF,0xDD,0xBB},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xEF,0xCD,0xAB,0x90,0x78,0x56,0x34,0x12},
+ Buffer() {0x78,0x56,0x34,0x42,0xEF,0xCD,0xAB,0x90},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x98,0x76,0x54,0x32,0x01,0xCB,0xEA,0xFD},
+ Buffer() {0x78,0x56,0x34,0x42,0x98,0x76,0x54,0x32},
+
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ // X - Buffer
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x91,0x22,0x83,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x91,0x22,0x83,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x80,0,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x80,0,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x81,0x82,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x83,0x84,0x85,0x86,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x83,0x84,0x85,0x86},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x87,0x98,0x99,0x9A,0x9B,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x87,0x98,0x99,0x9A},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3},
+ Buffer() {0x78,0x56,0x34,0x42,0x9C,0x9D,0x9E,0x9F},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB},
+ Buffer() {0x78,0x56,0x34,0x42,0xA4,0xA5,0xA6,0xA7},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62},
+ Buffer() {0x78,0x56,0x34,0x42,0x91,0x92,0x93,0x94},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 1,2,3,4,5,6,7,8},
+ Buffer() {0x78,0x56,0x34,0x42,1,2,3,4},
+
+ // X - Field Unit
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x7f,0,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x7f,0,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x07,0,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x07,0,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x8d,0,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x8d,0,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x8d,0x8c,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x8d,0x8c,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x8D,0x8C,0x8B,0x8A,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x8D,0x8C,0x8B,0x8A},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0xFF,0xFF,0xFF,0xFF},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
+ Buffer() {0x78,0x56,0x34,0x42,0x58,0x46,0x37,0x88},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x58,0x9a,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+ Buffer() {0x78,0x56,0x34,0x42,0x58,0x9a,0x37,0x88},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+ Buffer() {0x78,0x56,0x34,0x42,0x58,0xc7,0x37,0x88},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF},
+ Buffer() {0x78,0x56,0x34,0x42,0x82,0x34,0x56,0x78},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52},
+ Buffer() {0x78,0x56,0x34,0x42,0x93,0xAB,0xCD,0xEF},
+
+ // X - Buffer Field
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xAB,0x54,0x86,0x91,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0xAB,0x54,0x86,0x91},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x07,0,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x07,0,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x8d,0,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x8d,0,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x8d,0x8c,0,0,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x8d,0x8c,0,0},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x8D,0x8C,0x8B,0x8A,0,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0x8D,0x8C,0x8B,0x8A},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
+ Buffer() {0x78,0x56,0x34,0x42,0xFF,0xFF,0xFF,0xFF},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
+ Buffer() {0x78,0x56,0x34,0x42,0x58,0x46,0x37,0x88},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x58,0x9a,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+ Buffer() {0x78,0x56,0x34,0x42,0x58,0x9a,0x37,0x88},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+ Buffer() {0x78,0x56,0x34,0x42,0x58,0xc7,0x37,0x88},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF},
+ Buffer() {0x78,0x56,0x34,0x42,0x82,0x34,0x56,0x78},
+
+ Buffer() {0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB,
+ 0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52},
+ Buffer() {0x78,0x56,0x34,0x42,0x93,0xAB,0xCD,0xEF},
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer
+
+ Buffer() {0x32,0x54,0x76,0x58,0x00,0x00,0x00,0x00,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x32,0x54,0x76,0x58,0x78,0x56,0x34,0x42},
+
+ // X - String
+
+ "qwrtABEDF18942345678",
+ "qwrt42345678",
+
+ "svnmjklABEDF18942345678",
+ "svnmjkl42345678",
+
+ "1234zyqABEDF18942345678",
+ "1234zyq42345678",
+
+ "abcdefzyqABEDF18942345678",
+ "abcdefzyq42345678",
+
+ "9876ABEDF18942345678",
+ "987642345678",
+
+ "aBcDABEDF18942345678",
+ "aBcD42345678",
+
+ "1234567890987654ABEDF18942345678",
+ "123456789098765442345678",
+
+ "daFeCBaabbddffeeABEDF18942345678",
+ "daFeCBaabbddffee42345678",
+
+ "1234567890abCdeFABEDF18942345678",
+ "1234567890abCdeF42345678",
+
+ "FdeAcb0132547698ABEDF18942345678",
+ "FdeAcb013254769842345678",
+
+ "12345678909876540ABEDF18942345678",
+ "1234567890987654042345678",
+
+ "fdeacb01325476980ABEDF18942345678",
+ "fdeacb0132547698042345678",
+
+ "123456789011223344556677889998765432199983337744ABEDF18942345678",
+ "12345678901122334455667788999876543219998333774442345678",
+
+ "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffddABEDF18942345678",
+ "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd42345678",
+
+ "1234567890abcdef9876543210fedbca1122334455667788fdeacbABEDF18942345678",
+ "1234567890abcdef9876543210fedbca1122334455667788fdeacb42345678",
+
+ "defa1234567890abcdef9876543210fedbca1122334455667788fdeacbABEDF18942345678",
+ "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb42345678",
+
+ "123456789011223344556677889998765432199983337744zABEDF18942345678",
+ "123456789011223344556677889998765432199983337744z42345678",
+
+ // X - Buffer
+
+ Buffer() {0x91,0x22,0x83,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x91,0x22,0x83,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x80,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x80,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x81,0x82,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x81,0x82,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x83,0x84,0x85,0x86,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x83,0x84,0x85,0x86,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x78,0x56,0x34,0x42},
+
+ Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x78,0x56,0x34,0x42},
+
+ Buffer() {
+ 0x91, 0x92, 0x93, 0x94, 95, 96, 97, 98, 99, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
+ 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
+ 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
+ 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
+ 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
+ 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
+ 193,194,195,196,197,198,199,200,
+ 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {
+ 0x91, 0x92, 0x93, 0x94, 95, 96, 97, 98, 99, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
+ 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
+ 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
+ 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
+ 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
+ 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
+ 193,194,195,196,197,198,199,200,
+ 0x78,0x56,0x34,0x42},
+
+ Buffer() {
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
+ 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
+ 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
+ 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
+ 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
+ 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
+ 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
+ 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
+ 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
+ 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255, 0, 1,
+ 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
+ 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,
+ 113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
+ 129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
+ 145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
+ 161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
+ 177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
+ 193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
+ 209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
+ 225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
+ 241,242,243,244,245,246,247,248,249,250,251,252,253,254,255, 0, 1,
+ 0x78,0x56,0x34,0x42},
+
+ // X - Field Unit
+
+ Buffer() {0x7F,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x7F,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x07,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x07,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x8d,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x8d,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x8d,0x8c,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x8d,0x8c,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x8d,0x8c,0x8b,0x8a,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x8d,0x8c,0x8b,0x8a,0x78,0x56,0x34,0x42},
+
+ Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42},
+
+
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
+ 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
+ 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0x78,0x56,0x34,0x42},
+
+ // X - Buffer Field
+
+ Buffer() {0xAB,0x54,0x86,0x91,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0xAB,0x54,0x86,0x91,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x07,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x07,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x8D,0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x8D,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x8D,0x8c,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x8D,0x8c,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x8D,0x8c,0x8b,0x8a,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x8D,0x8c,0x8b,0x8a,0x78,0x56,0x34,0x42},
+
+ Buffer() {0xff,0xff,0xff,0xff,0x01,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0xff,0xff,0xff,0xff,0x01,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
+ 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,
+ 0,0,0,0,0,0,0,0x78,0x56,0x34,0x42},
+
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0x78,0x56,0x34,0x42,0x89,0xF1,0xED,0xAB},
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0x78,0x56,0x34,0x42},
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer
+
+ "98760000000058765432", "987658765432",
+
+ // X - String
+
+ "9876qwrt", "9876qwrt",
+ "9876svnmjkl", "9876svnmjkl",
+ "98761234zyq", "98761234zyq",
+ "9876abcdefzyq", "9876abcdefzyq",
+ "98769876", "98769876",
+ "9876aBcD", "9876aBcD",
+ "98761234567890987654", "98761234567890987654",
+ "9876daFeCBaabbddffee", "9876daFeCBaabbddffee",
+ "98761234567890abCdeF", "98761234567890abCdeF",
+ "9876FdeAcb0132547698", "9876FdeAcb0132547698",
+
+ "987612345678909876540", "987612345678909876540",
+ "9876fdeacb01325476980", "9876fdeacb01325476980",
+
+ "9876123456789011223344556677889998765432199983337744",
+ "9876123456789011223344556677889998765432199983337744",
+
+ "9876abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd",
+ "9876abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd",
+
+ "98761234567890abcdef9876543210fedbca1122334455667788fdeacb",
+ "98761234567890abcdef9876543210fedbca1122334455667788fdeacb",
+
+ "9876defa1234567890abcdef9876543210fedbca1122334455667788fdeacb",
+ "9876defa1234567890abcdef9876543210fedbca1122334455667788fdeacb",
+
+ "9876123456789011223344556677889998765432199983337744z",
+ "9876123456789011223344556677889998765432199983337744z",
+
+ // X - Buffer
+
+ "987691 22 83", "987691 22 83",
+ "987680", "987680",
+ "987681 82", "987681 82",
+ "987683 84 85 86", "987683 84 85 86",
+ "987687 98 99 9A 9B", "987687 98 99 9A 9B",
+ "98769C 9D 9E 9F A0 A1 A2 A3", "98769C 9D 9E 9F A0 A1 A2 A3",
+ "9876A4 A5 A6 A7 B8 B9 BA BB BC", "9876A4 A5 A6 A7 B8 B9 BA BB BC",
+ "Exc", "Exc",
+ "Exc", "Exc",
+
+ // X - Field Unit
+
+ "9876000000000000007F", "98760000007F",
+ "98760000000000000007", "987600000007",
+ "9876000000000000008D", "98760000008D",
+ "98760000000000008C8D", "987600008C8D",
+ "9876000000008A8B8C8D", "98768A8B8C8D",
+ "987600000001FFFFFFFF", "9876FF FF FF FF 01",
+ "98765CDEFA1988374658", "987658 46 37 88 19 FA DE 5C",
+ "9876DCDEFA1988379A58", "987658 9A 37 88 19 FA DE DC",
+ "987658 C7 37 88 19 FA DE DC 00", "987658 C7 37 88 19 FA DE DC 00",
+
+ "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
+ "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
+
+ "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
+ "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
+
+ // X - Buffer Field
+
+ "987600000000918654AB", "9876918654AB",
+ "98760000000000000007", "987600000007",
+ "9876000000000000008D", "98760000008D",
+ "98760000000000008C8D", "987600008C8D",
+ "9876000000008A8B8C8D", "98768A8B8C8D",
+ "987600000001FFFFFFFF", "9876FF FF FF FF 01",
+ "98765CDEFA1988374658", "987658 46 37 88 19 FA DE 5C",
+ "9876DCDEFA1988379A58", "987658 9A 37 88 19 FA DE DC",
+ "987658 C7 37 88 19 FA DE DC 00", "987658 C7 37 88 19 FA DE DC 00",
+
+ "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
+ "987682 34 56 78 90 AB CD EF 55 00 00 00 00 00 00 00",
+
+ "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
+ "987693 AB CD EF 99 12 CD 52 87 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer
+
+ Buffer() {0x32,0x54,0x76,0x58,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x32,0x54,0x76,0x58,0x76,0x98,0,0},
+
+ // X - String
+
+ "qwrt9876", "qwrt9876",
+ "svnmjkl9876", "svnmjkl9876",
+ "1234zyq9876", "1234zyq9876",
+ "abcdefzyq9876", "abcdefzyq9876",
+ "98769876", "98769876",
+ "aBcD9876", "aBcD9876",
+ "12345678909876549876", "12345678909876549876",
+ "daFeCBaabbddffee9876", "daFeCBaabbddffee9876",
+ "1234567890abCdeF9876", "1234567890abCdeF9876",
+ "FdeAcb01325476989876", "FdeAcb01325476989876",
+ "123456789098765409876", "123456789098765409876",
+ "fdeacb013254769809876", "fdeacb013254769809876",
+
+ "1234567890112233445566778899987654321999833377449876",
+ "1234567890112233445566778899987654321999833377449876",
+
+ "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd9876",
+ "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd9876",
+
+ "1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
+ "1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
+
+ "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
+ "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb9876",
+
+ "123456789011223344556677889998765432199983337744z9876",
+ "123456789011223344556677889998765432199983337744z9876",
+
+ // X - Buffer
+
+ Buffer() {0x91,0x22,0x83,0x39,0x38,0x37,0x36},
+ Buffer() {0x91,0x22,0x83,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x80,0x39,0x38,0x37,0x36},
+ Buffer() {0x80,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
+ Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
+
+
+ Buffer() {0x83,0x84,0x85,0x86,0x39,0x38,0x37,0x36},
+ Buffer() {0x83,0x84,0x85,0x86,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x39,0x38,0x37,0x36},
+ Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x39,0x38,0x37,0x36},
+
+
+ Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x39,0x38,0x37,0x36},
+ Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x39,0x38,0x37,0x36},
+
+ Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x39,0x38,0x37,0x36},
+ Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,0x0D,
+ 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
+ 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
+ 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
+ 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
+ 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
+ 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
+ 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
+ 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
+ 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
+ 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
+ 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
+ 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
+ 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
+ 0xC4,0xC5,0xC6,0xC7,0xC8,0x39,0x38,0x37,0x36},
+ Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,0x0D,
+ 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
+ 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
+ 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
+ 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
+ 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
+ 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
+ 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
+ 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
+ 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
+ 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
+ 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
+ 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
+ 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
+ 0xC4,0xC5,0xC6,0xC7,0xC8,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,
+ 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
+ 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
+ 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
+ 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
+ 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
+ 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
+ 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
+ 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
+ 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
+ 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
+ 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
+ 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
+ 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
+ 0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,
+ 0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,
+ 0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,
+ 0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,
+ 0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01,0x39,0x38,0x37,
+ 0x36},
+ Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,
+ 0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,
+ 0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
+ 0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,
+ 0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40,0x41,
+ 0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,
+ 0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,
+ 0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,
+ 0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,
+ 0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,
+ 0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,
+ 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,0xA9,
+ 0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6,
+ 0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,0xC2,0xC3,
+ 0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,
+ 0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,0xDC,0xDD,
+ 0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,
+ 0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,
+ 0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01,0x39,0x38,0x37,
+ 0x36},
+
+ // X - Field Unit
+
+ Buffer() {0x7F,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x7F,0,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x07,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x07,0,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x8d,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x8d,0,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x8d,0x8c,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x8d,0x8c,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x8d,0x8c,0x8b,0x8a,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x8d,0x8c,0x8b,0x8a,0x76,0x98,0,0},
+
+ Buffer() {0xff,0xff,0xff,0xff,0x01,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0xff,0xff,0xff,0xff,0x01,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
+ Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+
+ // X - Buffer Field
+
+ Buffer() {0xAB,0x54,0x86,0x91,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0xAB,0x54,0x86,0x91,0x76,0x98,0,0},
+
+ Buffer() {0x07,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x07,0,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x8d,0,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x8d,0,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x8d,0x8c,0,0,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x8d,0x8c,0,0,0x76,0x98,0,0},
+
+ Buffer() {0x8d,0x8c,0x8b,0x8a,0,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x8d,0x8c,0x8b,0x8a,0x76,0x98,0,0},
+
+ Buffer() {0xff,0xff,0xff,0xff,0x01,0,0,0,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0xff,0xff,0xff,0xff,0x01,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x76,0x98,0,0,0,0,0,0},
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
+ Buffer() {0x58,0xc7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x39,0x38,0x37,0x36},
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer
+
+ Buffer() {0x81,0x82,0x32,0x54,0x76,0x58,0,0,0,0},
+ Buffer() {0x81,0x82,0x32,0x54,0x76,0x58},
+
+ // X - String
+
+ Buffer() {0x81,0x82,0x71,0x77,0x72,0x74},
+ Buffer() {0x81,0x82,0x71,0x77,0x72,0x74},
+
+ Buffer() {0x81,0x82,0x73,0x76,0x6E,0x6D,0x6A,0x6B,0x6C},
+ Buffer() {0x81,0x82,0x73,0x76,0x6E,0x6D,0x6A,0x6B,0x6C},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x7A,0x79,0x71},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x7A,0x79,0x71},
+
+ Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x7A,0x79,0x71},
+ Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x7A,0x79,0x71},
+
+ Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
+ Buffer() {0x81,0x82,0x39,0x38,0x37,0x36},
+
+ Buffer() {0x81,0x82,0x61,0x42,0x63,0x44},
+ Buffer() {0x81,0x82,0x61,0x42,0x63,0x44},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34},
+
+ Buffer() {0x81,0x82,0x64,0x61,0x46,0x65,0x43,0x42,0x61,0x61,0x62,0x62,0x64,0x64,0x66,0x66,0x65,0x65},
+ Buffer() {0x81,0x82,0x64,0x61,0x46,0x65,0x43,0x42,0x61,0x61,0x62,0x62,0x64,0x64,0x66,0x66,0x65,0x65},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x43,0x64,0x65,0x46},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x43,0x64,0x65,0x46},
+
+ Buffer() {0x81,0x82,0x46,0x64,0x65,0x41,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38},
+ Buffer() {0x81,0x82,0x46,0x64,0x65,0x41,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34,0x30},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x39,0x38,0x37,0x36,0x35,0x34,0x30},
+
+ Buffer() {0x81,0x82,0x66,0x64,0x65,0x61,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38,0x30},
+ Buffer() {0x81,0x82,0x66,0x64,0x65,0x61,0x63,0x62,0x30,0x31,0x33,0x32,0x35,0x34,0x37,0x36,0x39,0x38,0x30},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,0x33,0x34,
+ 0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,
+ 0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,0x33,0x34,
+ 0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,
+ 0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34},
+
+ Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x61,0x41,0x62,0x62,0x63,0x63,0x64,0x64,0x65,0x65,
+ 0x66,0x66,0x66,0x66,0x65,0x65,0x64,0x64,0x63,0x63,0x61,0x61,0x62,0x62,0x64,0x64,0x65,0x65,
+ 0x66,0x66,0x61,0x61,0x61,0x61,0x62,0x62,0x62,0x62,0x65,0x65,0x65,0x66,0x66,0x66,0x64,0x64},
+ Buffer() {0x81,0x82,0x61,0x62,0x63,0x64,0x65,0x66,0x61,0x41,0x62,0x62,0x63,0x63,0x64,0x64,0x65,0x65,
+ 0x66,0x66,0x66,0x66,0x65,0x65,0x64,0x64,0x63,0x63,0x61,0x61,0x62,0x62,0x64,0x64,0x65,0x65,
+ 0x66,0x66,0x61,0x61,0x61,0x61,0x62,0x62,0x62,0x62,0x65,0x65,0x65,0x66,0x66,0x66,0x64,0x64},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x63,0x64,0x65,
+ 0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,0x64,0x62,0x63,0x61,
+ 0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x66,
+ 0x64,0x65,0x61,0x63,0x62},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x63,0x64,0x65,
+ 0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,0x64,0x62,0x63,0x61,
+ 0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x66,
+ 0x64,0x65,0x61,0x63,0x62},
+
+ Buffer() {0x81,0x82,0x64,0x65,0x66,0x61,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,
+ 0x62,0x63,0x64,0x65,0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,
+ 0x64,0x62,0x63,0x61,0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,
+ 0x37,0x38,0x38,0x66,0x64,0x65,0x61,0x63,0x62},
+ Buffer() {0x81,0x82,0x64,0x65,0x66,0x61,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,
+ 0x62,0x63,0x64,0x65,0x66,0x39,0x38,0x37,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x66,0x65,
+ 0x64,0x62,0x63,0x61,0x31,0x31,0x32,0x32,0x33,0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,
+ 0x37,0x38,0x38,0x66,0x64,0x65,0x61,0x63,0x62},
+
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,
+ 0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,
+ 0x35,0x34,0x33,0x32,0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34,0x7A},
+ Buffer() {0x81,0x82,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x31,0x32,0x32,0x33,
+ 0x33,0x34,0x34,0x35,0x35,0x36,0x36,0x37,0x37,0x38,0x38,0x39,0x39,0x39,0x38,0x37,0x36,
+ 0x35,0x34,0x33,0x32,0x31,0x39,0x39,0x39,0x38,0x33,0x33,0x33,0x37,0x37,0x34,0x34,0x7A},
+
+ // X - Buffer
+
+ Buffer() {0x81,0x82,0x91,0x22,0x83},
+ Buffer() {0x81,0x82,0x91,0x22,0x83},
+
+ Buffer() {0x81,0x82,0x80},
+ Buffer() {0x81,0x82,0x80},
+
+ Buffer() {0x81,0x82,0x81,0x82},
+ Buffer() {0x81,0x82,0x81,0x82},
+
+ Buffer() {0x81,0x82,0x83,0x84,0x85,0x86},
+ Buffer() {0x81,0x82,0x83,0x84,0x85,0x86},
+
+ Buffer() {0x81,0x82,0x87,0x98,0x99,0x9A,0x9B},
+ Buffer() {0x81,0x82,0x87,0x98,0x99,0x9A,0x9B},
+
+ Buffer() {0x81,0x82,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3},
+ Buffer() {0x81,0x82,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3},
+
+ Buffer() {0x81,0x82,0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC},
+ Buffer() {0x81,0x82,0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC},
+
+ Buffer() {0x81,0x82,0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,
+ 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
+ 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
+ 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
+ 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
+ 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
+ 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
+ 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
+ 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
+ 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
+ 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
+ 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
+ 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8},
+ Buffer() {0x81,0x82,0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,
+ 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
+ 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
+ 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
+ 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
+ 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
+ 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
+ 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
+ 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
+ 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
+ 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
+ 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
+ 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8},
+
+ Buffer() {0x81,0x82,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
+ 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
+ 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
+ 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
+ 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
+ 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
+ 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
+ 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
+ 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
+ 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
+ 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
+ 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
+ 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,
+ 0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,
+ 0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,
+ 0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,
+ 0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01},
+ Buffer() {0x81,0x82,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
+ 0x0C,0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,0x25,
+ 0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,
+ 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
+ 0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,
+ 0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,0x61,0x62,0x63,0x64,0x65,0x66,
+ 0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,
+ 0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,
+ 0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,
+ 0x8E,0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,
+ 0x9B,0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,
+ 0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,0xC1,
+ 0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,
+ 0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xDB,
+ 0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,
+ 0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,
+ 0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF,0x00,0x01},
+
+ // X - Field Unit
+
+ Buffer() {0x81,0x82,0x7F,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x7F,0,0,0},
+
+ Buffer() {0x81,0x82,0x07,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x07,0,0,0},
+
+ Buffer() {0x81,0x82,0x8D,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x8D,0,0,0},
+
+ Buffer() {0x81,0x82,0x8D,0x8C,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x8D,0x8C,0,0},
+
+ Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A,0,0,0,0},
+ Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A},
+
+ Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
+ Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01},
+
+ Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
+ Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
+
+ Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+ Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+
+ Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
+ Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
+
+ Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
+
+ Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+
+ // X - Buffer Field
+
+ Buffer() {0x81,0x82,0xAB,0x54,0x86,0x91,0,0,0,0},
+ Buffer() {0x81,0x82,0xAB,0x54,0x86,0x91},
+
+ Buffer() {0x81,0x82,0x07,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x07,0,0,0},
+
+ Buffer() {0x81,0x82,0x8D,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x8D,0,0,0},
+
+ Buffer() {0x81,0x82,0x8D,0x8C,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x8D,0x8C,0,0},
+
+ Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A,0,0,0,0},
+ Buffer() {0x81,0x82,0x8D,0x8C,0x8B,0x8A},
+
+ Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01,0,0,0},
+ Buffer() {0x81,0x82,0xFF,0xFF,0xFF,0xFF,0x01},
+
+ Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
+ Buffer() {0x81,0x82,0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C},
+
+ Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+ Buffer() {0x81,0x82,0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC},
+
+ Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
+ Buffer() {0x81,0x82,0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0},
+
+ Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0},
+
+ Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ Buffer() {0x81,0x82,0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer
+
+ Buffer() {0x32,0x54,0x76,0x58,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x32,0x54,0x76,0x58,0x81,0x82,0,0},
+
+ // X - String
+
+ "qwrt81 82", "qwrt81 82",
+ "svnmjkl81 82", "svnmjkl81 82",
+ "1234zyq81 82", "1234zyq81 82",
+ "abcdefzyq81 82", "abcdefzyq81 82",
+ "987681 82", "987681 82",
+ "aBcD81 82", "aBcD81 82",
+ "123456789098765481 82", "123456789098765481 82",
+ "daFeCBaabbddffee81 82", "daFeCBaabbddffee81 82",
+ "1234567890abCdeF81 82", "1234567890abCdeF81 82",
+ "FdeAcb013254769881 82", "FdeAcb013254769881 82",
+ "1234567890987654081 82", "1234567890987654081 82",
+ "fdeacb0132547698081 82", "fdeacb0132547698081 82",
+
+ "12345678901122334455667788999876543219998333774481 82",
+ "12345678901122334455667788999876543219998333774481 82",
+
+ "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd81 82",
+ "abcdefaAbbccddeeffffeeddccaabbddeeffaaaabbbbeeefffdd81 82",
+
+ "1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
+ "1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
+
+ "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
+ "defa1234567890abcdef9876543210fedbca1122334455667788fdeacb81 82",
+
+ "123456789011223344556677889998765432199983337744z81 82",
+ "123456789011223344556677889998765432199983337744z81 82",
+
+ // X - Buffer
+
+ Buffer() {0x91,0x22,0x83,0x81,0x82},
+ Buffer() {0x91,0x22,0x83,0x81,0x82},
+
+ Buffer() {0x80,0x81,0x82},
+ Buffer() {0x80,0x81,0x82},
+
+ Buffer() {0x81,0x82,0x81,0x82},
+ Buffer() {0x81,0x82,0x81,0x82},
+
+ Buffer() {0x83,0x84,0x85,0x86,0x81,0x82},
+ Buffer() {0x83,0x84,0x85,0x86,0x81,0x82},
+
+ Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x81,0x82},
+ Buffer() {0x87,0x98,0x99,0x9A,0x9B,0x81,0x82},
+
+ Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x81,0x82},
+ Buffer() {0x9C,0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0x81,0x82},
+
+ Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x81,0x82},
+ Buffer() {0xA4,0xA5,0xA6,0xA7,0xB8,0xB9,0xBA,0xBB,0xBC,0x81,0x82},
+
+ Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,
+ 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
+ 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
+ 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
+ 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
+ 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
+ 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
+ 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
+ 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
+ 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
+ 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
+ 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
+ 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
+ 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0x81,0x82},
+ Buffer() {0x91,0x92,0x93,0x94,0x5F,0x60,0x61,0x62,0x63,0x0A,0x0B,0x0C,
+ 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
+ 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
+ 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
+ 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
+ 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
+ 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
+ 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
+ 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
+ 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
+ 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
+ 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
+ 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
+ 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0x81,0x82},
+
+ Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,
+ 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
+ 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
+ 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
+ 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
+ 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
+ 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
+ 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
+ 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
+ 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
+ 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
+ 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
+ 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
+ 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,
+ 0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,
+ 0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,
+ 0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,
+ 0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,
+ 0xFD,0xFE,0xFF,0x00,0x01,0x81,0x82},
+ Buffer() {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,
+ 0x0D,0x0E,0x0F,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,
+ 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20,0x21,0x22,0x23,0x24,
+ 0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30,
+ 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,
+ 0x3D,0x3E,0x3F,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,
+ 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50,0x51,0x52,0x53,0x54,
+ 0x55,0x56,0x57,0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60,
+ 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,
+ 0x6D,0x6E,0x6F,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,
+ 0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F,0x80,0x81,0x82,0x83,0x84,
+ 0x85,0x86,0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E,0x8F,0x90,
+ 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9B,0x9C,
+ 0x9D,0x9E,0x9F,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6,0xA7,0xA8,
+ 0xA9,0xAA,0xAB,0xAC,0xAD,0xAE,0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,
+ 0xB5,0xB6,0xB7,0xB8,0xB9,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF,0xC0,
+ 0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xCB,0xCC,
+ 0xCD,0xCE,0xCF,0xD0,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6,0xD7,0xD8,
+ 0xD9,0xDA,0xDB,0xDC,0xDD,0xDE,0xDF,0xE0,0xE1,0xE2,0xE3,0xE4,
+ 0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xF0,
+ 0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,
+ 0xFD,0xFE,0xFF,0x00,0x01,0x81,0x82},
+
+ // X - Field Unit
+
+ Buffer() {0x7F,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x7F,0,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x07,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x07,0,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x8D,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x8D,0,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x8D,0x8c,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x8D,0x8c,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x8D,0x8c,0x8b,0x8a,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x8D,0x8c,0x8b,0x8a,0x81,0x82,0,0},
+
+ Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0x81,0x82},
+
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82},
+
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82},
+
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
+
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
+
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
+
+ // X - Buffer Field
+
+ Buffer() {0xAB,0x54,0x86,0x91,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0xAB,0x54,0x86,0x91,0x81,0x82,0,0},
+
+ Buffer() {0x07,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x07,0,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x8D,0,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x8D,0,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x8D,0x8c,0,0,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x8D,0x8c,0,0,0x81,0x82,0,0},
+
+ Buffer() {0x8D,0x8c,0x8b,0x8a,0,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x8D,0x8c,0x8b,0x8a,0x81,0x82,0,0},
+
+ Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0,0,0,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0xFF,0xFF,0xFF,0xFF,0x01,0x81,0x82},
+
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x58,0x46,0x37,0x88,0x19,0xFA,0xDE,0x5C,0x81,0x82},
+
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82,0,0,0,0,0,0},
+ Buffer() {0x58,0x9A,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x81,0x82},
+
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
+ Buffer() {0x58,0xC7,0x37,0x88,0x19,0xFA,0xDE,0xDC,0x00,0x81,0x82},
+
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
+ Buffer() {0x82,0x34,0x56,0x78,0x90,0xAB,0xCD,0xEF,0x55,0,0,0,0,0,0,0,0x81,0x82},
+
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
+ Buffer() {0x93,0xAB,0xCD,0xEF,0x99,0x12,0xCD,0x52,0x87,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x81,0x82},
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+// Store(0x200, df00)
+// Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
+// Store(0x300, df00)
+// Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
+
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// ConcatenateResTemplate (rtb, rtb, Result) => Buffer
+//
+// Total scale of unacceptable types:
+// Source1: 0x5ef7
+// Source2: 0x5ef7
+// Total scale of acceptable types:
+// Source1: 0x0008
+// Source2: 0x0008
+Method(m404, 1, Serialized)
+{
+ Name(op, 4)
+
+ ts00("m404")
+
+ if (arg0) {
+ m486()
+ Store(0x30b, df00)
+ Store(0x30b, df01)
+ Store(m488(op, 0x5fff, 0x5fff, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// CondRefOf (any, Result) => Boolean
+//
+// Total scale of unacceptable types:
+// Source: 0x0000
+// Total scale of acceptable types:
+// Source: 0x5eff
+Method(m405, 1, Serialized)
+{
+ Name(op, 5)
+
+ ts00("m405")
+
+ if (arg0) {
+ m486()
+
+// Error: CondRefOf failes with the Unitialized type
+ Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
+
+ } else {
+ }
+}
+
+// CopyObject (any, Destination) => DataRefObject
+//
+// Total scale of unacceptable types:
+// Source: 0x0000
+// Total scale of acceptable types:
+// Source: 0x5eff
+Method(m406, 1, Serialized)
+{
+ Name(op, 6)
+
+ ts00("m406")
+
+ if (arg0) {
+ m486()
+
+// Error: CopyObject failes with the Unitialized type
+ Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
+
+ } else {
+ }
+}
+
+// Decrement (int) => Integer
+//
+// Total scale of unacceptable types:
+// Minuend: 0x1ed1
+// Total scale of acceptable types:
+// Minuend: 0x402e
+Method(m407, 1, Serialized)
+{
+ Name(op, 7)
+
+ Name(ts, "m407")
+
+ ts00(ts)
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0, 0, 0, 0x12345677, 0x12345677), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, 0x9875, 0x9875), Local7)
+ Store(m48d(op, 0x209, 0, 0, 0, 0xFdeAcb0132547697, 0x32547697), Local7)
+ Store(m48d(op, 0x302, 0, 0, 0, 0x8280, 0x8280), Local7)
+ Store(m48d(op, 0x308, 0, 0, 0, 0x0807060504030200, 0x04030200), Local7)
+ Store(m48d(op, 0x506, 0, 0, 0, 0x5CDEFA1988374657, 0x88374657), Local7)
+ Store(m48d(op, 0xe06, 0, 0, 0, 0x5CDEFA1988374657, 0x88374657), Local7)
+
+ // Exceptions
+
+ Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
+ }
+}
+
+// DerefOf ({ref|str}) => Object
+//
+// Total scale of unacceptable types:
+// Source: 0x5fff
+// Total scale of acceptable types:
+// Source: 0x0000
+Method(m408, 1, Serialized)
+{
+ Name(op, 8)
+
+ ts00("m408")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x5fff, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Divide (int, int, Remainder, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Dividend: 0x1ed1
+// Divisor: 0x1ed1
+// Total scale of acceptable types:
+// Dividend: 0x402e
+// Divisor: 0x402e
+Method(m409, 1, Serialized)
+{
+ Name(op, 9)
+
+ ts00("m409")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0x102, 0, 0, 1, 1), Local7)
+ Store(m48d(op, 0x103, 0x102, 0, 0, 0x0000000971C214EA, 3), Local7)
+ Store(m48d(op, 0x204, 0x102, 0, 0, 0, 0), Local7)
+ Store(m48d(op, 0x209, 0x102, 0, 0, 0x0000000DF2B5C737, 2), Local7)
+ Store(m48d(op, 0x302, 0x102, 0, 0, 0, 0), Local7)
+ Store(m48d(op, 0x308, 0x102, 0, 0, 0x0000000070E2C4AA, 0), Local7)
+ Store(m48d(op, 0x506, 0x102, 0, 0, 0x0000000519FF9D32, 7), Local7)
+ Store(m48d(op, 0xe06, 0x102, 0, 0, 0x0000000519FF9D32, 7), Local7)
+ Store(m48d(op, 0x103, 0x204, 0, 0, 0x000120B0A1E2C2D5, 0x00006F2A), Local7)
+
+ // Exceptions
+
+ Store(m48d(op, 0x202, 0x102, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x20a, 0x102, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x210, 0x102, 0, 0, "Exc", "Exc"), Local7)
+
+ Store(m48d(op, 0x102, 0x202, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x102, 0x20a, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x102, 0x210, 0, 0, "Exc", "Exc"), Local7)
+ }
+}
+
+// Fatal (byt, dwd, int)
+//
+// iasl: "Fatal operator requires [Integer|String|Buffer]"
+// Total scale of unacceptable types:
+// Arg: 0x1ed1
+// Total scale of acceptable types:
+// Arg: 0x402e
+Method(m410, 1, Serialized)
+{
+ Name(op, 10)
+
+ ts00("m410")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// FindSetLeftBit (int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+Method(m411, 1, Serialized)
+{
+ Name(op, 11)
+
+ ts00("m411")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0, 0, 0, 29, 29), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, 16, 16), Local7)
+ Store(m48d(op, 0x206, 0, 0, 0, 61, 32), Local7)
+
+ // Exceptions
+
+ Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
+ }
+}
+
+// FindSetRightBit (int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+Method(m412, 1, Serialized)
+{
+ Name(op, 12)
+
+ ts00("m412")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0, 0, 0, 4, 4), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, 2, 2), Local7)
+ Store(m48d(op, 0x206, 0, 0, 0, 3, 3), Local7)
+
+ // Exceptions
+
+ Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
+ }
+}
+
+// FromBCD (int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// BCDValue: 0x1ed1
+// Total scale of acceptable types:
+// BCDValue: 0x402e
+Method(m413, 1, Serialized)
+{
+ Name(op, 13)
+
+ ts00("m413")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Increment (int) => Integer
+//
+// Total scale of unacceptable types:
+// Addend: 0x1ed1
+// Total scale of acceptable types:
+// Addend: 0x402e
+Method(m414, 1, Serialized)
+{
+ Name(op, 14)
+
+ ts00("m414")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+
+ Store(m48d(op, 0x102, 0, 0, 0, 0x12345679, 0x12345679), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, 0x9877, 0x9877), Local7)
+ Store(m48d(op, 0x209, 0, 0, 0, 0xFdeAcb0132547699, 0x32547699), Local7)
+ Store(m48d(op, 0x302, 0, 0, 0, 0x8282, 0x8282), Local7)
+ Store(m48d(op, 0x308, 0, 0, 0, 0x0807060504030202, 0x04030202), Local7)
+ Store(m48d(op, 0x506, 0, 0, 0, 0x5CDEFA1988374659, 0x88374659), Local7)
+ Store(m48d(op, 0xe06, 0, 0, 0, 0x5CDEFA1988374659, 0x88374659), Local7)
+
+ // Exceptions
+
+ Store(m48d(op, 0x202, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x20a, 0, 0, 0, "Exc", "Exc"), Local7)
+ Store(m48d(op, 0x210, 0, 0, 0, "Exc", "Exc"), Local7)
+ }
+}
+
+// Index ({str|buf|pkg}, int, Destination) => ObjectReference
+//
+// Total scale of unacceptable types:
+// Source: 0x5fe3
+// Index: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x001c
+// Index: 0x402e
+Method(m415, 1, Serialized)
+{
+ Name(op, 15)
+
+ ts00("m415")
+
+ if (arg0) {
+ m486()
+ Store(0x200, df00)
+ Store(0x104, df01) // Zero
+ Store(m488(op, 0x5fe3, 0x1ed1, 0, 0, 0), Local7)
+
+/*
+// The action above together with those below generates exception
+ Store(0x300, df00)
+ Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
+ Store(0x400, df00)
+ Store(m488(op, 0, 0x1ed1, 0, 0, 0), Local7)
+*/
+
+ } else {
+ }
+}
+
+// LAnd (int, int) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m416, 1, Serialized)
+{
+ Name(op, 16)
+
+ ts00("m416")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// LEqual ({int|str|buf}, {int|str|buf}) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m417, 1, Serialized)
+{
+ Name(op, 17)
+
+ ts00("m417")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer
+
+ Zero, Zero,
+
+ // X - String
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero,
+
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ // X - Buffer
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Field Unit
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer
+
+ Zero, Zero,
+
+ // X - String
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero,
+
+ // X - Buffer
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Field Unit
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer
+
+ Zero, Zero,
+
+ // X - String
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero,
+
+ // X - Buffer
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc",
+
+ // X - Field Unit
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer
+
+ Zero, Zero,
+
+ // X - String
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero,
+
+ // X - Buffer
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Field Unit
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer
+
+ Zero, Zero,
+
+ // X - String
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero,
+
+ // X - Buffer
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Field Unit
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer
+
+ Zero, Zero,
+
+ // X - String
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero,
+
+ // X - Buffer
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Field Unit
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// LGreater ({int|str|buf}, {int|str|buf}) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m418, 1, Serialized)
+{
+ Name(op, 18)
+
+ ts00("m418")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Zero,
+
+ // X - String, (1)
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ Ones, Ones, Ones, Ones, Ones, Zero,
+ Zero, Zero, Ones, Zero, Zero, Ones,
+
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero,
+ Ones, Zero, Zero, Zero, Ones, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Ones, Zero,
+
+ // X - Buffer Field, (38)
+
+ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Ones, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Zero, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc",
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones,
+
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Ones, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m419, 1, Serialized)
+{
+ Name(op, 19)
+
+ ts00("m419")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Zero,
+
+ // X - String, (1)
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ Ones, Ones, Ones, Ones, Ones, Zero,
+ Zero, Zero, Ones, Zero, Zero, Ones,
+
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Ones, Zero,
+ Ones, Zero, Zero, Zero, Ones, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Ones, Zero,
+
+ // X - Buffer Field, (38)
+
+ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Ones, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Zero, Zero, Zero, Zero, "Exc", "Exc", "Exc", "Exc",
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Ones, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones,
+
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Ones,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Ones, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Zero, Ones, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// LLess ({int|str|buf}, {int|str|buf}) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m420, 1, Serialized)
+{
+ Name(op, 20)
+
+ ts00("m420")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Ones,
+
+ // X - String, (1)
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ Zero, Zero, Zero, Zero, Zero, Ones,
+ Ones, Ones, Zero, Ones, Ones, Zero,
+
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones,
+ Zero, Ones, Ones, Ones, Zero, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Zero, Ones,
+
+ // X - Buffer Field, (38)
+
+ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Zero, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Ones, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc",
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Zero, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero,
+
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Zero, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m421, 1, Serialized)
+{
+ Name(op, 21)
+
+ ts00("m421")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Ones,
+
+ // X - String, (1)
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ Zero, Zero, Zero, Zero, Zero, Ones,
+ Ones, Ones, Zero, Ones, Ones, Zero,
+
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Zero, Ones,
+ Zero, Ones, Ones, Ones, Zero, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Zero, Ones,
+
+ // X - Buffer Field, (38)
+
+ Zero, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Ones,
+ Zero, Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Zero, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer, (0)
+
+ Ones, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Ones, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Ones, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero,
+ Ones, Zero, Ones, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones,
+
+ Ones, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+
+ Zero, Zero, Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc",
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Ones, Zero, Zero, Ones, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Ones, Ones, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+
+ Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero,
+
+
+ Zero, Zero, Zero, Zero, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero,
+
+ // X - Buffer, (18)
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+
+ // X - Field Unit, (27)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field, (38)
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer, (0)
+
+ Zero, Zero,
+
+ // X - String, (1)
+
+ Zero, Zero, Zero, Zero, Ones, Ones, Zero, Zero,
+
+ Zero, Zero, Zero, Zero, Ones, Ones,
+ Zero, Zero, Ones, Ones, Zero, Zero,
+
+
+ Ones, Ones, Zero, Zero, Ones, Ones, Zero, Zero,
+ Ones, Ones, Zero, Zero, Ones, Ones,
+
+ // X - Buffer, (18)
+
+ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Zero, Zero, Zero, Ones, Ones,
+
+ // X - Field Unit, (27)
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+
+ // X - Buffer Field, (38)
+
+ Zero, Zero, Ones, Ones, Ones, Ones, Zero, Zero, Zero, Zero,
+ Zero, Zero, Zero, Ones, Zero, Ones, Ones, Ones, Zero, Zero,
+ Zero, Zero,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// LNot (int) => Boolean
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+Method(m422, 1, Serialized)
+{
+ Name(op, 22)
+
+ ts00("m422")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m423, 1, Serialized)
+{
+ Name(op, 23)
+
+ ts00("m423")
+
+ // Expected results: 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // X - Integer
+
+ Ones, Ones,
+
+ // X - String
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones,
+
+
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+ "Exc", "Exc", "Exc", "Exc", "Exc", "Exc",
+
+ // X - Buffer
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Field Unit
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p001, Package() {
+
+ // X - Integer
+
+ Ones, Ones,
+
+ // X - String
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones,
+
+ // X - Buffer
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Field Unit
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p002, Package() {
+
+ // X - Integer
+
+ Ones, Ones,
+
+ // X - String
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones,
+
+ // X - Buffer
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, "Exc", "Exc", "Exc", "Exc",
+
+ // X - Field Unit
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p003, Package() {
+
+ // X - Integer
+
+ Ones, Ones,
+
+ // X - String
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Zero, Zero,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones,
+
+ // X - Buffer
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Field Unit
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p004, Package() {
+
+ // X - Integer
+
+ Ones, Ones,
+
+ // X - String
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones,
+
+ // X - Buffer
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Field Unit
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ // Expected results: 64-bit, 32-bit
+ Name(p005, Package() {
+
+ // X - Integer
+
+ Ones, Ones,
+
+ // X - String
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones,
+
+ // X - Buffer
+
+ Ones, Ones, Ones, Ones, Zero, Zero, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+
+ // X - Field Unit
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+
+ // X - Buffer Field
+
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones, Ones,
+ Ones, Ones,
+ })
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ Store(1, FLG1)
+
+ // (Integer ==> All other types)
+ // (All other types ==> Integer)
+ Store(2, com2)
+ Store(p000, PKG1)
+ Store(p001, PKG2)
+ m48b(op, 0x103)
+
+ // (String ==> All other types)
+ // (All other types ==> String)
+ Store(2, com2)
+ Store(p002, PKG1)
+ Store(p003, PKG2)
+ m48b(op, 0x204)
+
+ // (Buffer ==> All other types)
+ // (All other types ==> Buffer)
+ Store(2, com2)
+ Store(p004, PKG1)
+ Store(p005, PKG2)
+ m48b(op, 0x302)
+
+ Store(PKG0, PKG1)
+ Store(PKG0, PKG2)
+ Store(0, com2)
+ Store(0, FLG1)
+ }
+}
+
+// LOr (int, int) => Boolean
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m424, 1, Serialized)
+{
+ Name(op, 24)
+
+ ts00("m424")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Match (pkg, byt, int, byt, int, int) => Ones | Integer
+//
+// Total scale of unacceptable types:
+//
+// Total Currently excluded from it
+// SearchPackage: 0x5eef
+// MatchObject1: 0x1ed1
+// MatchObject2: 0x1ed1 0x1ed1 (causes error)
+// StartIndex: 0x1ed1 0x1ed1 (causes error)
+// Total scale of acceptable types:
+// SearchPackage: 0x0010
+// MatchObject1: 0x402e
+// MatchObject2: 0x402e
+// StartIndex: 0x402e
+Method(m425, 1, Serialized)
+{
+ Name(op, 25)
+
+ ts00("m425")
+
+ if (arg0) {
+ m486()
+ Store(0x400, df00)
+ Store(0x100, df01)
+ Store(0x100, df02)
+ Store(0x100, df03)
+ Store(0x100, df04)
+ Store(m488(op, 0x5eef, 0, 0x1ed1, 0x0000, 0x0000), Local7)
+ } else {
+ }
+}
+
+// Mid ({str|buf}, int, int, Result) => Buffer or String
+//
+// Total scale of unacceptable types:
+//
+// Total Currently excluded from it
+// Source: 0x1ed1
+// Index: 0x1ed1 0x0400 Op.Region (causes error)
+// Length: 0x1ed1 0x0400 Op.Region (causes error)
+// Total scale of acceptable types:
+// Source: 0x402e
+// Index: 0x402e
+// Length: 0x402e
+Method(m426, 1, Serialized)
+{
+ Name(op, 26)
+
+ ts00("m426")
+
+ if (arg0) {
+ m486()
+ Store(0x200, df00)
+ Store(0x100, df01)
+ Store(0x100, df02)
+ Store(m488(op, 0x1ed1, 0x1ad1, 0x1ad1, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Mod (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Dividend: 0x1ed1
+// Divisor: 0x1ed1
+// Total scale of acceptable types:
+// Dividend: 0x402e
+// Divisor: 0x402e
+Method(m427, 1, Serialized)
+{
+ Name(op, 27)
+
+ ts00("m427")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Multiply (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Multiplicand: 0x1ed1
+// Multiplier: 0x1ed1
+// Total scale of acceptable types:
+// Multiplicand: 0x402e
+// Multiplier: 0x402e
+Method(m428, 1, Serialized)
+{
+ Name(op, 28)
+
+ ts00("m428")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// NAnd (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m429, 1, Serialized)
+{
+ Name(op, 29)
+
+ ts00("m429")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// NOr (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m430, 1, Serialized)
+{
+ Name(op, 30)
+
+ ts00("m430")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Not (int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+Method(m431, 1, Serialized)
+{
+ Name(op, 31)
+
+ ts00("m431")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// ObjectType (any) => Integer
+//
+// Total scale of unacceptable types:
+// Object: 0x0000
+// Total scale of acceptable types:
+// Object: 0x5eff
+Method(m432, 1, Serialized)
+{
+ Name(op, 32)
+
+ ts00("m432")
+
+ if (arg0) {
+ m486()
+
+// Error: ObjectType failes with the Unitialized type
+ Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
+
+ } else {
+ }
+}
+
+// Or (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m433, 1, Serialized)
+{
+ Name(op, 33)
+
+ ts00("m433")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// RefOf (any) => ObjectReference
+//
+// Total scale of unacceptable types:
+// Object: 0x0000
+// Total scale of acceptable types:
+// Object: 0x5eff
+Method(m434, 1, Serialized)
+{
+ Name(op, 34)
+
+ ts00("m434")
+
+ if (arg0) {
+ m486()
+
+// Error: RefOf failes with the Unitialized type
+ Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
+
+ } else {
+ }
+}
+
+// Release (mux)
+//
+// Total scale of unacceptable types:
+// SyncObject: 0x5cff
+// Total scale of acceptable types:
+// SyncObject: 0x0200
+Method(m435, 1, Serialized)
+{
+ Name(op, 35)
+
+ ts00("m435")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x5cff, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Reset (evt)
+//
+// Total scale of unacceptable types:
+// SyncObject: 0x5e7f
+// Total scale of acceptable types:
+// SyncObject: 0x0080
+Method(m436, 1, Serialized)
+{
+ Name(op, 36)
+
+ ts00("m436")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x5e7f, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Return ({any|ref})
+//
+// Total scale of unacceptable types:
+// Arg: 0x0000
+// Total scale of acceptable types:
+// Arg: 0x5eff
+Method(m437, 1, Serialized)
+{
+ Name(op, 37)
+
+ ts00("m437")
+
+ if (arg0) {
+ m486()
+
+// Error: Return failes with the Unitialized type
+ Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
+
+ } else {
+ }
+}
+
+// ShiftLeft (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// ShiftCount: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+// ShiftCount: 0x402e
+Method(m438, 1, Serialized)
+{
+ Name(op, 38)
+
+ ts00("m438")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// ShiftRight (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// ShiftCount: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+// ShiftCount: 0x402e
+Method(m439, 1, Serialized)
+{
+ Name(op, 39)
+
+ ts00("m439")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Signal (evt)
+//
+// Total scale of unacceptable types:
+// SyncObject: 0x5e7f
+// Total scale of acceptable types:
+// SyncObject: 0x0080
+Method(m440, 1, Serialized)
+{
+ Name(op, 40)
+
+ ts00("m440")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x5e7f, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// SizeOf ({int|str|buf|pkg}) => Integer
+//
+// Total scale of unacceptable types:
+// ObjectName: 0x5ee3
+// Total scale of acceptable types:
+// ObjectName: 0x004c
+Method(m441, 1, Serialized)
+{
+ Name(op, 41)
+
+ ts00("m441")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x5ee3, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Sleep (int)
+//
+// Total scale of unacceptable types:
+// MilliSeconds: 0x1ed1
+// Total scale of acceptable types:
+// MilliSeconds: 0x402e
+Method(m442, 1, Serialized)
+{
+ Name(op, 42)
+
+ ts00("m442")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Stall (int)
+//
+// Total scale of unacceptable types:
+// MicroSeconds: 0x1ed1
+// Total scale of acceptable types:
+// MicroSeconds: 0x402e
+Method(m443, 1, Serialized)
+{
+ Name(op, 43)
+
+ ts00("m443")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Store (any, Destination) => DataRefObject
+//
+// Total scale of unacceptable types:
+// Source: 0x0000
+// Total scale of acceptable types:
+// Source: 0x5eff
+Method(m444, 1, Serialized)
+{
+ Name(op, 44)
+
+ ts00("m444")
+
+ if (arg0) {
+ m486()
+
+// Error: Store failes with the Unitialized type
+ Store(m488(op, 0x0001, 0, 0, 0, 0), Local7)
+
+ } else {
+ }
+}
+
+// Subtract (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Minuend: 0x1ed1
+// Subtrahend: 0x1ed1
+// Total scale of acceptable types:
+// Minuend: 0x402e
+// Subtrahend: 0x402e
+Method(m445, 1, Serialized)
+{
+ Name(op, 45)
+
+ ts00("m445")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// ToBCD (int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Value: 0x1ed1
+// Total scale of acceptable types:
+// Value: 0x402e
+Method(m446, 1, Serialized)
+{
+ Name(op, 46)
+
+ ts00("m446")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// ToBuffer ({int|str|buf}, Result) => Buffer
+//
+// Total scale of unacceptable types:
+// Data: 0x1ed1
+// Total scale of acceptable types:
+// Data: 0x402e
+Method(m447, 1, Serialized)
+{
+ Name(op, 47)
+
+ ts00("m447")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// ToDecimalString ({int|str|buf}, Result) => String
+//
+// Total scale of unacceptable types:
+// Data: 0x1ed1
+// Total scale of acceptable types:
+// Data: 0x402e
+Method(m448, 1, Serialized)
+{
+ Name(op, 48)
+
+ ts00("m448")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0, 0, 0, "305419896", "305419896"), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, "9876", "9876"), Local7)
+ Store(m48d(op, 0x209, 0, 0, 0, "FdeAcb0132547698", "FdeAcb0132547698"), Local7)
+ Store(m48d(op, 0x302, 0, 0, 0, "129,130", "129,130"), Local7)
+ Store(m48d(op, 0x303, 0, 0, 0, "131,132,133,134", "131,132,133,134"), Local7)
+ Store(m48d(op, 0x506, 0, 0, 0, "6692061083885586008", "88,70,55,136,25,250,198,82"), Local7)
+ Store(m48d(op, 0xe06, 0, 0, 0, "6692061083885586008", "88,70,55,136,25,250,198,82"), Local7)
+ }
+}
+
+// ToHexString ({int|str|buf}, Result) => String
+//
+// Total scale of unacceptable types:
+// Data: 0x1ed1
+// Total scale of acceptable types:
+// Data: 0x402e
+Method(m449, 1, Serialized)
+{
+ Name(op, 49)
+
+ ts00("m449")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0, 0, 0, "0000000012345678", "12345678"), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, "9876", "9876"), Local7)
+ Store(m48d(op, 0x209, 0, 0, 0, "FdeAcb0132547698", "FdeAcb0132547698"), Local7)
+ Store(m48d(op, 0x302, 0, 0, 0, "81,82", "81,82"), Local7)
+ Store(m48d(op, 0x303, 0, 0, 0, "83,84,85,86", "83,84,85,86"), Local7)
+ Store(m48d(op, 0x506, 0, 0, 0, "6692061083885586008", "58,46,37,88,19,FA,C6,52"), Local7)
+ Store(m48d(op, 0xe06, 0, 0, 0, "6692061083885586008", "58,46,37,88,19,FA,C6,52"), Local7)
+ }
+}
+
+// ToInteger ({int|str|buf}, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Data: 0x1ed1
+// Total scale of acceptable types:
+// Data: 0x402e
+Method(m450, 1, Serialized)
+{
+ Name(op, 50)
+
+ ts00("m450")
+
+ if (arg0) {
+ m486()
+ Store(m488(op, 0x1ed1, 0, 0, 0, 0), Local7)
+ } else {
+ Store(m48d(op, 0x102, 0, 0, 0, 0x12345678, 0x12345678), Local7)
+ Store(m48d(op, 0x204, 0, 0, 0, 0x9876, 0x9876), Local7)
+ Store(m48d(op, 0x211, 0, 0, 0, 0xF1dAB98e0D794Bc5, 0xD794BC5), Local7)
+ Store(m48d(op, 0x302, 0, 0, 0, 0x8281, 0x8281), Local7)
+ Store(m48d(op, 0x303, 0, 0, 0, 0x86858483, 0x86858483), Local7)
+ Store(m48d(op, 0x506, 0, 0, 0, 0x52C6FA1988374658, 0x88374658), Local7)
+ Store(m48d(op, 0xe06, 0, 0, 0, 0x52C6FA1988374658, 0x88374658), Local7)
+ }
+}
+
+// ToString (buf, int, Result) => String
+//
+// Total scale of unacceptable types:
+// Source: 0x1ed1
+// Length: 0x1ed1
+// Total scale of acceptable types:
+// Source: 0x402e
+// Length: 0x402e
+Method(m451, 1, Serialized)
+{
+ Name(op, 51)
+
+ ts00("m451")
+
+ if (arg0) {
+ m486()
+ Store(0x300, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// Wait (evt, int) => Boolean
+//
+// Total scale of unacceptable types:
+// SyncObject: 0x5e7f
+// SyncObject: 0x1ed1
+// Total scale of acceptable types:
+// SyncObject: 0x0080
+// SyncObject: 0x402e
+Method(m452, 1, Serialized)
+{
+ Name(op, 52)
+
+ ts00("m452")
+
+ if (arg0) {
+ m486()
+ Store(0x700, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x5e7f, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+// XOr (int, int, Result) => Integer
+//
+// Total scale of unacceptable types:
+// Source1: 0x1ed1
+// Source2: 0x1ed1
+// Total scale of acceptable types:
+// Source1: 0x402e
+// Source2: 0x402e
+Method(m453, 1, Serialized)
+{
+ Name(op, 53)
+
+ ts00("m453")
+
+ if (arg0) {
+ m486()
+ Store(0x100, df00)
+ Store(0x100, df01)
+ Store(m488(op, 0x1ed1, 0x1ed1, 0, 0, 0), Local7)
+ } else {
+ }
+}
+
+Method(m460, 1, Serialized)
+{
+if (1) {
+ m400(arg0)
+ m401(arg0)
+ m402(arg0)
+ m403(arg0)
+ m404(arg0)
+ m405(arg0)
+ m406(arg0)
+ m407(arg0)
+ m408(arg0)
+ m409(arg0)
+ m410(arg0)
+ m411(arg0)
+ m412(arg0)
+ m413(arg0)
+ m414(arg0)
+ m415(arg0)
+ m416(arg0)
+ m417(arg0)
+ m418(arg0)
+ m419(arg0)
+ m420(arg0)
+ m421(arg0)
+ m422(arg0)
+ m423(arg0)
+ m424(arg0)
+ m425(arg0)
+ m426(arg0)
+ m427(arg0)
+ m428(arg0)
+ m429(arg0)
+ m430(arg0)
+ m431(arg0)
+ m432(arg0)
+ m433(arg0)
+ m434(arg0)
+ m435(arg0)
+ m436(arg0)
+ m437(arg0)
+ m438(arg0)
+ m439(arg0)
+ m440(arg0)
+ m441(arg0)
+ m442(arg0)
+ m443(arg0)
+ m444(arg0)
+ m445(arg0)
+ m446(arg0)
+ m447(arg0)
+ m448(arg0)
+ m449(arg0)
+ m450(arg0)
+ m451(arg0)
+ m452(arg0)
+ m453(arg0)
+} else {
+// m400(arg0)
+// m401(arg0)
+// m402(arg0)
+// m403(arg0)
+// m407(arg0)
+// m409(arg0)
+// m411(arg0)
+// m412(arg0)
+// m414(arg0)
+// m417(arg0)
+// m418(arg0)
+// m448(arg0)
+// m449(arg0)
+// m450(arg0)
+
+// m400(arg0)
+ m401(arg0)
+}
+
+if (0) {
+
+Name(xxxx, 0)
+Name(b000, Buffer(10) {})
+Name(s000, "000000000000000000000000000000")
+
+Store("-=-=-=-=-=-=-=-=-=-=-=", Debug)
+
+Store(LGreater(10, 5), Local0)
+Store(Local0, Debug)
+Store(LGreater(5, 10), Local0)
+Store(Local0, Debug)
+
+Store(LGreater("11", 0x11), Local0)
+Store(Local0, Debug)
+
+Store(LEqual("11", 0x11), Local0)
+Store(Local0, Debug)
+
+Store("11", xxxx)
+Store(xxxx, Debug)
+
+
+Store(LGreater("11", 0x0fffffff), Local0)
+Store(Local0, Debug)
+
+Store(LGreater(0x12, "11"), Local0)
+Store(Local0, Debug)
+
+Store("1234567890abCdeF", xxxx)
+Store(xxxx, Debug)
+
+Store("FdeAcb0132547698", xxxx)
+Store(xxxx, Debug)
+
+Store("FdeAcb0132547698", xxxx)
+Store(xxxx, Debug)
+
+// [ACPI Debug] Integer: 0x90ABCDEF
+// [ACPI Debug] Integer: 0x32547698
+
+Store("qwrt", b000)
+Store(b000, Debug)
+
+// 71 77 72 74 00 00 00 00 00 00
+
+Store(0xABEDF18942345678, s000)
+Store(s000, Debug)
+
+// "ABEDF18942345678"
+
+Store("ABEDF18942345678", b000)
+Store(b000, Debug)
+
+// 41 42 45 44 46 31 38 39 34 32
+}
+
+}
+
diff --git a/tests/aslts/src/runtime/common/conversion/rDECL.asl b/tests/aslts/src/runtime/common/conversion/rDECL.asl
index 71f346cfd..5ca99cec4 100644
--- a/tests/aslts/src/runtime/common/conversion/rDECL.asl
+++ b/tests/aslts/src/runtime/common/conversion/rDECL.asl
@@ -1,32 +1,32 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// Implicit Result Object Conversion
-
-Include("../../../../runtime/common/conversion/rproc.asl")
-Include("../../../../runtime/common/conversion/rtest.asl")
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// Implicit Result Object Conversion
+
+Include("../../../../runtime/common/conversion/rproc.asl")
+Include("../../../../runtime/common/conversion/rtest.asl")
diff --git a/tests/aslts/src/runtime/common/conversion/rproc.asl b/tests/aslts/src/runtime/common/conversion/rproc.asl
index 946fb12a4..d30c6d6c9 100644
--- a/tests/aslts/src/runtime/common/conversion/rproc.asl
+++ b/tests/aslts/src/runtime/common/conversion/rproc.asl
@@ -1,108 +1,108 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-Name(z066, 66)
-
-// Verify result
-//
-// arg0 - name of test
-// arg1 - results Package
-// arg2 - index of four results
-// arg3 - indication of Result
-// arg4 - indication of ComputationalData
-// arg5 - Result
-// arg6 - ComputationalData
-Method(m4c1, 7, Serialized)
-{
- Name(tmp0, 0)
- Name(tmp1, 0)
- Name(lpC0, 0)
-
- Multiply(arg2, 4, lpC0)
-
- if (arg3) {
-
- // Result
-
- // Benchmark of Result
- Store(DeRefOf(Index(arg1, lpC0)), Local0)
- Increment(lpC0)
- Store(DeRefOf(Index(arg1, lpC0)), Local1)
-
- Store(ObjectType(arg5), tmp0)
-
- if (F64) {
- Store(ObjectType(Local0), tmp1)
- if (LNotEqual(tmp0, tmp1)) {
- err(arg0, z066, 0, 0, 0, tmp0, tmp1)
- } elseif (LNotEqual(arg5, Local0)) {
- err(arg0, z066, 1, 0, 0, arg5, Local0)
- }
- } else {
- Store(ObjectType(Local1), tmp1)
- if (LNotEqual(tmp0, tmp1)) {
- err(arg0, z066, 2, 0, 0, tmp0, tmp1)
- } elseif (LNotEqual(arg5, Local1)) {
- err(arg0, z066, 3, 0, 0, arg5, Local1)
- }
- }
- } else {
- Increment(lpC0)
- }
-
- if (arg4) {
-
- // ComputationalData
-
- // Benchmark of ComputationalData
-
- Increment(lpC0)
- Store(DeRefOf(Index(arg1, lpC0)), Local2)
- Increment(lpC0)
- Store(DeRefOf(Index(arg1, lpC0)), Local3)
-
- Store(ObjectType(arg6), tmp0)
-
- if (F64) {
- Store(ObjectType(Local2), tmp1)
- if (LNotEqual(tmp0, tmp1)) {
- err(arg0, z066, 4, 0, 0, tmp0, tmp1)
- } elseif (LNotEqual(arg6, Local2)) {
- err(arg0, z066, 5, 0, 0, arg6, Local2)
- }
- } else {
- Store(ObjectType(Local3), tmp1)
- if (LNotEqual(tmp0, tmp1)) {
- err(arg0, z066, 6, 0, 0, tmp0, tmp1)
- } elseif (LNotEqual(arg6, Local3)) {
- err(arg0, z066, 7, 0, 0, arg6, Local3)
- }
- }
- }
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+Name(z066, 66)
+
+// Verify result
+//
+// arg0 - name of test
+// arg1 - results Package
+// arg2 - index of four results
+// arg3 - indication of Result
+// arg4 - indication of ComputationalData
+// arg5 - Result
+// arg6 - ComputationalData
+Method(m4c1, 7, Serialized)
+{
+ Name(tmp0, 0)
+ Name(tmp1, 0)
+ Name(lpC0, 0)
+
+ Multiply(arg2, 4, lpC0)
+
+ if (arg3) {
+
+ // Result
+
+ // Benchmark of Result
+ Store(DeRefOf(Index(arg1, lpC0)), Local0)
+ Increment(lpC0)
+ Store(DeRefOf(Index(arg1, lpC0)), Local1)
+
+ Store(ObjectType(arg5), tmp0)
+
+ if (F64) {
+ Store(ObjectType(Local0), tmp1)
+ if (LNotEqual(tmp0, tmp1)) {
+ err(arg0, z066, 0, 0, 0, tmp0, tmp1)
+ } elseif (LNotEqual(arg5, Local0)) {
+ err(arg0, z066, 1, 0, 0, arg5, Local0)
+ }
+ } else {
+ Store(ObjectType(Local1), tmp1)
+ if (LNotEqual(tmp0, tmp1)) {
+ err(arg0, z066, 2, 0, 0, tmp0, tmp1)
+ } elseif (LNotEqual(arg5, Local1)) {
+ err(arg0, z066, 3, 0, 0, arg5, Local1)
+ }
+ }
+ } else {
+ Increment(lpC0)
+ }
+
+ if (arg4) {
+
+ // ComputationalData
+
+ // Benchmark of ComputationalData
+
+ Increment(lpC0)
+ Store(DeRefOf(Index(arg1, lpC0)), Local2)
+ Increment(lpC0)
+ Store(DeRefOf(Index(arg1, lpC0)), Local3)
+
+ Store(ObjectType(arg6), tmp0)
+
+ if (F64) {
+ Store(ObjectType(Local2), tmp1)
+ if (LNotEqual(tmp0, tmp1)) {
+ err(arg0, z066, 4, 0, 0, tmp0, tmp1)
+ } elseif (LNotEqual(arg6, Local2)) {
+ err(arg0, z066, 5, 0, 0, arg6, Local2)
+ }
+ } else {
+ Store(ObjectType(Local3), tmp1)
+ if (LNotEqual(tmp0, tmp1)) {
+ err(arg0, z066, 6, 0, 0, tmp0, tmp1)
+ } elseif (LNotEqual(arg6, Local3)) {
+ err(arg0, z066, 7, 0, 0, arg6, Local3)
+ }
+ }
+ }
+}
diff --git a/tests/aslts/src/runtime/common/conversion/rtest.asl b/tests/aslts/src/runtime/common/conversion/rtest.asl
index cc886f9c2..44b4cd211 100644
--- a/tests/aslts/src/runtime/common/conversion/rtest.asl
+++ b/tests/aslts/src/runtime/common/conversion/rtest.asl
@@ -1,1412 +1,1412 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- ============================
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- IT IS IN PROGRESS !!!!!!!!!!
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!
- ============================
-*/
-
-// Implicit Result Object Conversion, complex test
-
-Name(z067, 67)
-
-// Integers
-Name(ii00, 0)
-Name(ii10, 0)
-
-// Strings
-Name(ss00, "")
-Name(ss10, "!@#$%^&*()_+=-[]{}")
-
-// Buffers
-Name(bb00, Buffer(1) {})
-Name(bb80, Buffer(1) {})
-// Inside 32-bit Integer
-Name(bb01, Buffer(3) {})
-Name(bb81, Buffer(3) {})
-// 32-bit Integer
-Name(bb02, Buffer(4) {})
-Name(bb82, Buffer(4) {})
-// Inside 64-bit Integer
-Name(bb03, Buffer(5) {})
-Name(bb83, Buffer(5) {})
-// Inside 64-bit Integer
-Name(bb04, Buffer(8) {})
-Name(bb84, Buffer(8) {})
-// Size exceeding result
-Name(bb05, Buffer(20) {})
-Name(bb85, Buffer(20) {})
-
-// Buffer Fields
-Name(bbff, Buffer(160) {})
-CreateField(bbff, 5, 27, bf00)
-CreateField(bbff, 32, 47, bf01)
-CreateField(bbff, 79, 27, bf10)
-CreateField(bbff, 106, 47, bf11)
-// Incomplete last byte
-CreateField(bbff, 153, 111, bf02)
-CreateField(bbff, 264, 111, bf12)
-// Incomplete extra byte
-CreateField(bbff, 375, 119, bf03)
-CreateField(bbff, 494, 119, bf13)
-// Size exceeding result
-CreateField(bbff, 654, 160, bf04)
-CreateField(bbff, 814, 160, bf14)
-// 32-bit Integer
-CreateField(bbff, 974, 32, bf05)
-CreateField(bbff, 1006, 32, bf15)
-// 64-bit Integer
-CreateField(bbff, 1038, 64, bf06)
-CreateField(bbff, 1102, 64, bf16)
-
-// Set all bytes of Buffer bbff to 0xff
-Method(m565,, Serialized)
-{
- Name(lpN0, 160)
- Name(lpC0, 0)
-
- While (lpN0) {
-
- Store(0xff, Index(bbff, lpC0))
-
- Decrement(lpN0)
- Increment(lpC0)
- }
-}
-
-// Acquire (mux, wrd) => Boolean
-Method(m500, 1, Serialized)
-{
- Name(ts, "m500")
- ts00(ts)
-
- Mutex(mt00, 0)
- Name(b000, Buffer() {0x00})
-
- Store(Acquire(mt00, 0), ii10)
- m4c0(ts, ii10, ZERO, ZERO)
-
- Store(Acquire(mt00, 0x0010), ss10)
- m4c0(ts, ss10, "0000000000000000", "00000000")
-
- Store(Acquire(mt00, 0x0020), bb80)
- m4c0(ts, bb80, b000, b000)
-}
-
-// Add (int, int, Result) => Integer
-Method(m501, 1, Serialized)
-{
- Name(ts, "m501")
- ts00(ts)
-
- Name(b000, Buffer() {0x63})
- Name(b001, Buffer() {0x63})
- Name(b002, Buffer() {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
- 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f})
- Name(b003, Buffer() {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
- 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f})
- Name(b004, Buffer() {0x63,0xF4,0x9C,0x52,0x13,0xCF,0x8A,0,0,0,0,0,0,0,0,0})
- Name(b005, Buffer() {0x63,0xF4,0x9C,0x52,0,0,0,0,0,0,0,0,0,0,0,0})
-
- // Integers
- Store(Add(0x123456789abcda, 0x789abcda023789, ii00), ii10)
- m4c0(ts, ii00, 0x008ACF13529CF463, 0x529CF463)
- m4c0(ts, ii10, 0x008ACF13529CF463, 0x529CF463)
-
- // Strings
- Store(Add(0x123456789abcda, 0x789abcda023789, ss00), ss10)
- m4c0(ts, ss00, "008ACF13529CF463", "529CF463")
- m4c0(ts, ss10, "008ACF13529CF463", "529CF463")
-
- // Buffers smaller than result
- Store(Add(0x123456789abcda, 0x789abcda023789, bb00), bb80)
- m4c0(ts, bb00, b000, b001)
- m4c0(ts, bb80, b000, b001)
-
- // Buffers greater than result
- Store(Add(0x123456789abcda, 0x789abcda023789, b002), b003)
- m4c0(ts, b002, b004, b005)
- m4c0(ts, b003, b004, b005)
-
- // Set fields (their source buffer) to zero
-
-// Store(bbff, Debug)
-
- m565()
- Store(Add(0x123456789abcda, 0x789abcda023789, bf00), bf10)
- m4c0(ts, bf00, b004, b005)
- m4c0(ts, bf10, b004, b005)
-
-// !!! check the contents of bbff !!!!!!!!!
-
-// Store(bbff, Debug)
-}
-
-// And (int, int, Result) => Integer
-Method(m502, 1, Serialized)
-{
- Name(ts, "m502")
- ts00(ts)
-}
-
-// Concatenate ({int|str|buf}, {int|str|buf}, Result) => ComputationalData
-Method(m503, 1)
-{
- m563()
- m564()
-}
-
-Method(m563,, Serialized)
-{
- Name(ts, "m503,s+s")
-
- // s+s -->> s -->> all combinations of Result and ComputationalData
-
- // Result 64-bit, 32-bit, ComputationalData 64-bit, 32-bit
- Name(p000, Package() {
-
- // ============= With Result
-
- 0x00ABCDEF12345678, 0x12345678, 0x00ABCDEF12345678, 0x12345678,
- 0x00ABCDEF12345678, 0x12345678, "abcdef12345678", "abcdef12345678",
- 0x00ABCDEF12345678, 0x12345678, Buffer() {0x61}, Buffer() {0x61},
- 0x00ABCDEF12345678, 0x12345678, 0x04636261, 0x04636261,
- 0x00ABCDEF12345678, 0x12345678, 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- "abcdef12345678", "abcdef12345678", 0x00ABCDEF12345678, 0x12345678,
- "abcdef12345678", "abcdef12345678", "abcdef12345678", "abcdef12345678",
- "abcdef12345678", "abcdef12345678", Buffer() {0x61}, Buffer() {0x61},
- "abcdef12345678", "abcdef12345678", 0x04636261, 0x04636261,
- "abcdef12345678", "abcdef12345678", 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- Buffer() {0x61}, Buffer() {0x61}, 0x00ABCDEF12345678, 0x12345678,
- Buffer() {0x61}, Buffer() {0x61}, "abcdef12345678", "abcdef12345678",
- Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61},
- Buffer() {0x61}, Buffer() {0x61}, 0x04636261, 0x04636261,
- Buffer() {0x61}, Buffer() {0x61}, 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x0000000004636261, 0x04636261, 0x00ABCDEF12345678, 0x12345678,
- 0x0000000004636261, 0x04636261, "abcdef12345678", "abcdef12345678",
- 0x0000000004636261, 0x04636261, Buffer() {0x61}, Buffer() {0x61},
- 0x0000000004636261, 0x04636261, 0x0000000004636261, 0x04636261,
- 0x0000000004636261, 0x04636261, 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x00ABCDEF12345678, 0x12345678,
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- "abcdef12345678", "abcdef12345678",
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- Buffer() {0x61}, Buffer() {0x61},
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x0000000004636261, 0x04636261,
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
-
- // ============= Result omited
-
- 0,0, 0x00ABCDEF12345678, 0x12345678,
- 0,0, "abcdef12345678", "abcdef12345678",
- 0,0, Buffer() {0x61}, Buffer() {0x61},
- 0,0, 0x04636261, 0x04636261,
- 0,0, 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
-
- // ============= Store omited
-
- 0x00ABCDEF12345678, 0x12345678, 0,0,
- "abcdef12345678", "abcdef12345678", 0,0,
- Buffer() {0x61}, Buffer() {0x61}, 0,0,
- 0x04636261, 0x04636261, 0,0,
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66}, 0,0,
-
- // ============= Particular additional cases
-
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
- Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
- Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
- Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
-
- Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
- Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
-
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- })
-
- Store("abcdef", Local0)
- Store("12345678", Local1)
-
- m562(ts, Local0, Local1, p000)
-
- // Source values are not corrupted
-
- Store(ObjectType(Local0), Local2)
- if (LNotEqual(Local2, 2)) {
- err(ts, z067, 0, 0, 0, Local2, 2)
- } elseif (LNotEqual(Local0, "abcdef")) {
- err(ts, z067, 1, 0, 0, Local0, "abcdef")
- }
-
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, 2)) {
- err(ts, z067, 2, 0, 0, Local2, 2)
- } elseif (LNotEqual(Local1, "12345678")) {
- err(ts, z067, 3, 0, 0, Local1, "12345678")
- }
-}
-
-Method(m564,, Serialized)
-{
- Name(ts, "m503,b+b")
-
- // b+b -->> b -->> all combinations of Result and ComputationalData
-
- // Result 64-bit, 32-bit, ComputationalData 64-bit, 32-bit
- Name(p000, Package() {
-
- // ============= With Result
-
- // i,i
- 0x3231666564636261, 0x64636261, 0x3231666564636261, 0x64636261,
- // i,s
- 0x3231666564636261, 0x64636261,
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- // i,b
- 0x3231666564636261, 0x64636261, Buffer() {0x61}, Buffer() {0x61},
- // i,bf(i,i)
- 0x3231666564636261, 0x64636261, 0x04636261, 0x04636261,
- // i,bf(i,b)
- 0x3231666564636261, 0x64636261,
- 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- // s,i
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- 0x3231666564636261, 0x64636261,
- // s,s
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- // s,b
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- Buffer() {0x61},
- Buffer() {0x61},
- // s,bf(i,i)
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- 0x0000000004636261,
- 0x04636261,
- // s,bf(i,b)
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- // b,i
- Buffer() {0x61}, Buffer() {0x61}, 0x3231666564636261, 0x64636261,
- // b,s
- Buffer() {0x61}, Buffer() {0x61},
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- // b,b
- Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61},
- // b,bf(i,i)
- Buffer() {0x61}, Buffer() {0x61}, 0x04636261, 0x04636261,
- // b,bf(i,b)
- Buffer() {0x61}, Buffer() {0x61}, 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- // bf(i,i),i
- 0x0000000004636261, 0x04636261, 0x3231666564636261, 0x64636261,
- // bf(i,i),s
- 0x0000000004636261, 0x04636261,
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- // bf(i,i),b
- 0x0000000004636261, 0x04636261, Buffer() {0x61}, Buffer() {0x61},
- // bf(i,i),bf(i,i)
- 0x0000000004636261, 0x04636261, 0x0000000004636261, 0x04636261,
- // bf(i,i),bf(i,b)
- 0x0000000004636261, 0x04636261, 0x0000666564636261,
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- // bf(i,b),i
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x3231666564636261, 0x64636261,
- // bf(i,b),s
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- // bf(i,b),b
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- Buffer() {0x61}, Buffer() {0x61},
- // bf(i,b),bf(i,i)
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x0000000004636261, 0x04636261,
- // bf(i,b),bf(i,b)
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
-
- // ============= Result omited
-
- // ,i
- 0,0, 0x3231666564636261, 0x64636261,
- // ,s
- 0,0, "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- // ,b
- 0,0, Buffer() {0x61}, Buffer() {0x61},
- // ,bf(i,i)
- 0,0, 0x04636261, 0x04636261,
- // b,bf(i,b)
- 0,0, 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
-
- // ============= Store omited
-
- // i,
- 0x3231666564636261, 0x64636261, 0,0,
- // s,
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
- 0,0,
- // b,
- Buffer() {0x61}, Buffer() {0x61}, 0,0,
- // bf(i,i),
- 0x04636261, 0x04636261, 0,0,
- // bf(i,b),
- 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66}, 0,0,
-
- // ============= Particular additional cases
-
- // Buffer Field, incomplete last byte
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38},
- // Buffer Field, incomplete extra byte
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
- // Buffer Field, size exceeding result
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- // Buffer, inside 32-bit Integer
- Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
- Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
- // Buffer, 32-bit Integer
- Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
- Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
- // Buffer, inside 64-bit Integer
- Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
- Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
- // Buffer, 64-bit Integer
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
- // Buffer, size exceeding result
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
- 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
- 0x00,0x00,0x00,0x00},
- })
-
- Name(b000, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66})
- Name(b001, Buffer() {0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38})
-
- Store(b000, Local0)
- Store(b001, Local1)
-
- m562(ts, Local0, Local1, p000)
-
- // Source values are not corrupted
-
- Store(ObjectType(Local0), Local2)
- if (LNotEqual(Local2, 3)) {
- err(ts, z067, 4, 0, 0, Local2, 3)
- } elseif (LNotEqual(Local0, b000)) {
- err(ts, z067, 5, 0, 0, Local0, b000)
- }
-
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, 3)) {
- err(ts, z067, 6, 0, 0, Local2, 3)
- } elseif (LNotEqual(Local1, b001)) {
- err(ts, z067, 7, 0, 0, Local1, b001)
- }
-}
-
-// arg0 - name of test
-// arg1 - Source1
-// arg2 - Source2
-// arg3 - results
-Method(m562, 4)
-{
- ts00(arg0)
-
- // ============= With Result
- // ii,is,ib,ibf
- // si,ss,sb,sbf
- // bi,bs,bb,bbf
- // bfi,bfs,bfb,bfbf
-
- // i,i
- Store(Concatenate(arg1, arg2, ii00), ii10)
- m4c1(arg0, arg3, 0, 1, 1, ii00, ii10)
- // i,s
- Store(Concatenate(arg1, arg2, ii00), ss10)
- m4c1(arg0, arg3, 1, 1, 1, ii00, ss10)
- // i,b
- Store(Concatenate(arg1, arg2, ii00), bb80)
- m4c1(arg0, arg3, 2, 1, 1, ii00, bb80)
- // i,bf(i,i)
- Store(Concatenate(arg1, arg2, ii00), bf10)
- m4c1(arg0, arg3, 3, 1, 1, ii00, bf10)
- // i,bf(i,b)
- Store(Concatenate(arg1, arg2, ii00), bf11)
- m4c1(arg0, arg3, 4, 1, 1, ii00, bf11)
-
- // s,i
- Store(Concatenate(arg1, arg2, ss00), ii10)
- m4c1(arg0, arg3, 5, 1, 1, ss00, ii10)
- // s,s
- Store(Concatenate(arg1, arg2, ss00), ss10)
- m4c1(arg0, arg3, 6, 1, 1, ss00, ss10)
- // s,b
- Store(Concatenate(arg1, arg2, ss00), bb80)
- m4c1(arg0, arg3, 7, 1, 1, ss00, bb80)
- // s,bf(i,i)
- Store(Concatenate(arg1, arg2, ss00), bf10)
- m4c1(arg0, arg3, 8, 1, 1, ss00, bf10)
- // s,bf(i,b)
- Store(Concatenate(arg1, arg2, ss00), bf11)
- m4c1(arg0, arg3, 9, 1, 1, ss00, bf11)
-
- // b,i
- Store(Concatenate(arg1, arg2, bb00), ii10)
- m4c1(arg0, arg3, 10, 1, 1, bb00, ii10)
- // b,s
- Store(Concatenate(arg1, arg2, bb00), ss10)
- m4c1(arg0, arg3, 11, 1, 1, bb00, ss10)
- // b,b
- Store(Concatenate(arg1, arg2, bb00), bb80)
- m4c1(arg0, arg3, 12, 1, 1, bb00, bb80)
- // b,bf(i,i)
- Store(Concatenate(arg1, arg2, bb00), bf10)
- m4c1(arg0, arg3, 13, 1, 1, bb00, bf10)
- // b,bf(i,b)
- Store(Concatenate(arg1, arg2, bb00), bf11)
- m4c1(arg0, arg3, 14, 1, 1, bb00, bf11)
-
- // bf(i,i),i
- Store(Concatenate(arg1, arg2, bf00), ii10)
- m4c1(arg0, arg3, 15, 1, 1, bf00, ii10)
- // bf(i,i),s
- Store(Concatenate(arg1, arg2, bf00), ss10)
- m4c1(arg0, arg3, 16, 1, 1, bf00, ss10)
- // bf(i,i),b
- Store(Concatenate(arg1, arg2, bf00), bb80)
- m4c1(arg0, arg3, 17, 1, 1, bf00, bb80)
- // bf(i,i),bf(i,i)
- Store(Concatenate(arg1, arg2, bf00), bf10)
- m4c1(arg0, arg3, 18, 1, 1, bf00, bf10)
- // bf(i,i),bf(i,b)
- Store(Concatenate(arg1, arg2, bf00), bf11)
- m4c1(arg0, arg3, 19, 1, 1, bf00, bf11)
-
- // bf(i,b),i
- Store(Concatenate(arg1, arg2, bf01), ii10)
- m4c1(arg0, arg3, 20, 1, 1, bf01, ii10)
- // bf(i,b),s
- Store(Concatenate(arg1, arg2, bf01), ss10)
- m4c1(arg0, arg3, 21, 1, 1, bf01, ss10)
- // bf(i,b),b
- Store(Concatenate(arg1, arg2, bf01), bb80)
- m4c1(arg0, arg3, 22, 1, 1, bf01, bb80)
- // bf(i,b),bf(i,i)
- Store(Concatenate(arg1, arg2, bf01), bf10)
- m4c1(arg0, arg3, 23, 1, 1, bf01, bf10)
- // bf(i,b),bf(i,b)
- Store(Concatenate(arg1, arg2, bf01), bf11)
- m4c1(arg0, arg3, 24, 1, 1, bf01, bf11)
-
- // ============= Result omited
- // ,i,s,b,bf
-
- // ,i
- Store(Concatenate(arg1, arg2), ii10)
- m4c1(arg0, arg3, 25, 0, 1, 0, ii10)
- // ,s
- Store(Concatenate(arg1, arg2), ss10)
- m4c1(arg0, arg3, 26, 0, 1, 0, ss10)
- // ,b
- Store(Concatenate(arg1, arg2), bb80)
- m4c1(arg0, arg3, 27, 0, 1, 0, bb80)
- // ,bf(i,i)
- Store(Concatenate(arg1, arg2), bf10)
- m4c1(arg0, arg3, 28, 0, 1, 0, bf10)
- // b,bf(i,b)
- Store(Concatenate(arg1, arg2), bf11)
- m4c1(arg0, arg3, 29, 0, 1, 0, bf11)
-
- // ============= Store omited
- // i,s,b,bf,
-
- // i,
- Concatenate(arg1, arg2, ii00)
- m4c1(arg0, arg3, 30, 1, 0, ii00, 0)
- // s,
- Concatenate(arg1, arg2, ss00)
- m4c1(arg0, arg3, 31, 1, 0, ss00, 0)
- // b,
- Concatenate(arg1, arg2, bb00)
- m4c1(arg0, arg3, 32, 1, 0, bb00, 0)
- // bf(i,i),
- Concatenate(arg1, arg2, bf00)
- m4c1(arg0, arg3, 33, 1, 0, bf00, 0)
- // bf(i,b),
- Concatenate(arg1, arg2, bf01)
- m4c1(arg0, arg3, 34, 1, 0, bf01, 0)
-
- // ============= Particular additional cases
-
- // Buffer Field, incomplete last byte
- Store(Concatenate(arg1, arg2, bf02), bf12)
- m4c1(arg0, arg3, 35, 1, 1, bf02, bf12)
-
- // Buffer Field, incomplete extra byte
- Store(Concatenate(arg1, arg2, bf03), bf13)
- m4c1(arg0, arg3, 36, 1, 1, bf03, bf13)
-
- // Buffer Field, size exceeding result
- Store(Concatenate(arg1, arg2, bf04), bf14)
- m4c1(arg0, arg3, 37, 1, 1, bf04, bf14)
-
- // Buffer, inside 32-bit Integer
- Store(Concatenate(arg1, arg2, bb01), bb81)
- m4c1(arg0, arg3, 38, 1, 1, bb01, bb81)
-
- // Buffer, 32-bit Integer
- Store(Concatenate(arg1, arg2, bb02), bb82)
- m4c1(arg0, arg3, 39, 1, 1, bb02, bb82)
-
- // Buffer, inside 64-bit Integer
- Store(Concatenate(arg1, arg2, bb03), bb83)
- m4c1(arg0, arg3, 40, 1, 1, bb03, bb83)
-
- // Buffer, 64-bit Integer
- Store(Concatenate(arg1, arg2, bb04), bb84)
- m4c1(arg0, arg3, 41, 1, 1, bb04, bb84)
-
- // Buffer, size exceeding result
- Store(Concatenate(arg1, arg2, bb05), bb85)
- m4c1(arg0, arg3, 42, 1, 1, bb05, bb85)
-}
-
-// ConcatenateResTemplate (rtb, rtb, Result) => Buffer
-Method(m504, 1, Serialized)
-{
- Name(op, 4)
-
- Name(ts, "m504")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// CondRefOf (any, Result) => Boolean
-Method(m505, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m505")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// CopyObject (any, Destination) => DataRefObject
-Method(m506, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m506")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Decrement (int) => Integer
-Method(m507, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m507")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// DerefOf ({ref|str}) => Object
-Method(m508, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m508")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Divide (int, int, Remainder, Result) => Integer
-Method(m509, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m509")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// FindSetLeftBit (int, Result) => Integer
-Method(m511, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m511")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// FindSetRightBit (int, Result) => Integer
-Method(m512, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m512")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// FromBCD (int, Result) => Integer
-Method(m513, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m513")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Increment (int) => Integer
-Method(m514, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m514")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Index ({str|buf|pkg}, int, Destination) => ObjectReference
-Method(m515, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m515")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LAnd (int, int) => Boolean
-Method(m516, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m516")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LEqual ({int|str|buf}, {int|str|buf}) => Boolean
-Method(m517, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m517")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LGreater ({int|str|buf}, {int|str|buf}) => Boolean
-Method(m518, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m518")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean
-Method(m519, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m519")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LLess ({int|str|buf}, {int|str|buf}) => Boolean
-Method(m520, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m520")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean
-Method(m521, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m521")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LNot (int) => Boolean
-Method(m522, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m522")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean
-Method(m523, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m523")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// LOr (int, int) => Boolean
-Method(m524, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m524")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Match (pkg, byt, int, byt, int, int) => Ones | Integer
-Method(m525, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m525")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Mid ({str|buf}, int, int, Result) => Buffer or String
-Method(m526, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m526")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Mod (int, int, Result) => Integer
-Method(m527, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m527")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Multiply (int, int, Result) => Integer
-Method(m528, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m528")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// NAnd (int, int, Result) => Integer
-Method(m529, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m529")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// NOr (int, int, Result) => Integer
-Method(m530, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m530")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Not (int, Result) => Integer
-Method(m531, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m531")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ObjectType (any) => Integer
-Method(m532, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m532")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Or (int, int, Result) => Integer
-Method(m533, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m533")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// RefOf (any) => ObjectReference
-Method(m534, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m534")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Return ({any|ref})
-Method(m537, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m537")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ShiftLeft (int, int, Result) => Integer
-Method(m538, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m538")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ShiftRight (int, int, Result) => Integer
-Method(m539, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m539")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// SizeOf ({int|str|buf|pkg}) => Integer
-Method(m541, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m541")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Store (any, Destination) => DataRefObject
-Method(m544, 1, Serialized)
-{
- Name(ts, "m544")
-
- ts00(ts)
-
- Name(ss00, "DEF")
- Store("ABC", ss00)
-
- Store(ObjectType(ss00), Local0)
- if (LNotEqual(Local0, 2)) {
- err(ts, z067, 8, 0, 0, Local0, 2)
- } elseif (LNotEqual(ss00, "ABC")) {
- err(ts, z067, 9, 0, 0, ss00, "ABC")
- }
-
- // If the string is shorter than the buffer, the buffer size is reduced.
-
- Name(b000, Buffer(200) {})
- Name(b001, Buffer() {0x41,0x42,0x43,0x44,0x45,0x46})
-
- Store("ABCDEF", b000)
- Store(ObjectType(b000), Local0)
- Store(SizeOf(b000), Local1)
-
- if (LNotEqual(Local0, 3)) {
- err(ts, z067, 10, 0, 0, Local0, 3)
- } elseif (LNotEqual(Local1, 6)) {
- err(ts, z067, 11, 0, 0, Local1, 6)
- } elseif (LNotEqual(b000, b001)) {
- err(ts, z067, 12, 0, 0, b000, b001)
- }
-
-/*
- Store("================ 000000000:", Debug)
- Store(Local0, Debug)
- Store(Local1, Debug)
-
-
- CopyObject("ABC", b000)
- Store(SizeOf(b000), Local0)
- Store(ObjectType(b000), Local1)
-
- Store("================ 000000000:", Debug)
- Store(Local0, Debug)
- Store(Local1, Debug)
-*/
-}
-
-// Subtract (int, int, Result) => Integer
-Method(m545, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m545")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ToBCD (int, Result) => Integer
-Method(m546, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m546")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ToBuffer ({int|str|buf}, Result) => Buffer
-Method(m547, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m547")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ToDecimalString ({int|str|buf}, Result) => String
-Method(m548, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m548")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ToHexString ({int|str|buf}, Result) => String
-Method(m549, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m549")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ToInteger ({int|str|buf}, Result) => Integer
-Method(m550, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m550")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// ToString (buf, int, Result) => String
-Method(m551, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m551")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// Wait (evt, int) => Boolean
-Method(m552, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m552")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-// XOr (int, int, Result) => Integer
-Method(m553, 1, Serialized)
-{
- Name(op, 0)
-
- Name(ts, "m553")
-
- ts00(ts)
-
- if (arg0) {
- } else {
- }
-}
-
-Method(m560, 1)
-{
-/*
- m500(arg0)
- m501(arg0)
- m502(arg0)
- m503(arg0)
- m504(arg0)
- m505(arg0)
- m506(arg0)
- m507(arg0)
- m508(arg0)
- m509(arg0)
- m511(arg0)
- m512(arg0)
- m513(arg0)
- m514(arg0)
- m515(arg0)
- m516(arg0)
- m517(arg0)
- m518(arg0)
- m519(arg0)
- m520(arg0)
- m521(arg0)
- m522(arg0)
- m523(arg0)
- m524(arg0)
- m525(arg0)
- m526(arg0)
- m527(arg0)
- m528(arg0)
- m529(arg0)
- m530(arg0)
- m531(arg0)
- m532(arg0)
- m533(arg0)
- m534(arg0)
- m537(arg0)
- m538(arg0)
- m539(arg0)
- m541(arg0)
- m544(arg0)
- m545(arg0)
- m546(arg0)
- m547(arg0)
- m548(arg0)
- m549(arg0)
- m550(arg0)
- m551(arg0)
- m552(arg0)
- m553(arg0)
-*/
-
- m500(arg0)
- m501(arg0)
- m502(arg0)
- m503(arg0)
- m544(arg0)
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ ============================
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ IT IS IN PROGRESS !!!!!!!!!!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ ============================
+*/
+
+// Implicit Result Object Conversion, complex test
+
+Name(z067, 67)
+
+// Integers
+Name(ii00, 0)
+Name(ii10, 0)
+
+// Strings
+Name(ss00, "")
+Name(ss10, "!@#$%^&*()_+=-[]{}")
+
+// Buffers
+Name(bb00, Buffer(1) {})
+Name(bb80, Buffer(1) {})
+// Inside 32-bit Integer
+Name(bb01, Buffer(3) {})
+Name(bb81, Buffer(3) {})
+// 32-bit Integer
+Name(bb02, Buffer(4) {})
+Name(bb82, Buffer(4) {})
+// Inside 64-bit Integer
+Name(bb03, Buffer(5) {})
+Name(bb83, Buffer(5) {})
+// Inside 64-bit Integer
+Name(bb04, Buffer(8) {})
+Name(bb84, Buffer(8) {})
+// Size exceeding result
+Name(bb05, Buffer(20) {})
+Name(bb85, Buffer(20) {})
+
+// Buffer Fields
+Name(bbff, Buffer(160) {})
+CreateField(bbff, 5, 27, bf00)
+CreateField(bbff, 32, 47, bf01)
+CreateField(bbff, 79, 27, bf10)
+CreateField(bbff, 106, 47, bf11)
+// Incomplete last byte
+CreateField(bbff, 153, 111, bf02)
+CreateField(bbff, 264, 111, bf12)
+// Incomplete extra byte
+CreateField(bbff, 375, 119, bf03)
+CreateField(bbff, 494, 119, bf13)
+// Size exceeding result
+CreateField(bbff, 654, 160, bf04)
+CreateField(bbff, 814, 160, bf14)
+// 32-bit Integer
+CreateField(bbff, 974, 32, bf05)
+CreateField(bbff, 1006, 32, bf15)
+// 64-bit Integer
+CreateField(bbff, 1038, 64, bf06)
+CreateField(bbff, 1102, 64, bf16)
+
+// Set all bytes of Buffer bbff to 0xff
+Method(m565,, Serialized)
+{
+ Name(lpN0, 160)
+ Name(lpC0, 0)
+
+ While (lpN0) {
+
+ Store(0xff, Index(bbff, lpC0))
+
+ Decrement(lpN0)
+ Increment(lpC0)
+ }
+}
+
+// Acquire (mux, wrd) => Boolean
+Method(m500, 1, Serialized)
+{
+ Name(ts, "m500")
+ ts00(ts)
+
+ Mutex(mt00, 0)
+ Name(b000, Buffer() {0x00})
+
+ Store(Acquire(mt00, 0), ii10)
+ m4c0(ts, ii10, ZERO, ZERO)
+
+ Store(Acquire(mt00, 0x0010), ss10)
+ m4c0(ts, ss10, "0000000000000000", "00000000")
+
+ Store(Acquire(mt00, 0x0020), bb80)
+ m4c0(ts, bb80, b000, b000)
+}
+
+// Add (int, int, Result) => Integer
+Method(m501, 1, Serialized)
+{
+ Name(ts, "m501")
+ ts00(ts)
+
+ Name(b000, Buffer() {0x63})
+ Name(b001, Buffer() {0x63})
+ Name(b002, Buffer() {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
+ 0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f})
+ Name(b003, Buffer() {0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
+ 0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f})
+ Name(b004, Buffer() {0x63,0xF4,0x9C,0x52,0x13,0xCF,0x8A,0,0,0,0,0,0,0,0,0})
+ Name(b005, Buffer() {0x63,0xF4,0x9C,0x52,0,0,0,0,0,0,0,0,0,0,0,0})
+
+ // Integers
+ Store(Add(0x123456789abcda, 0x789abcda023789, ii00), ii10)
+ m4c0(ts, ii00, 0x008ACF13529CF463, 0x529CF463)
+ m4c0(ts, ii10, 0x008ACF13529CF463, 0x529CF463)
+
+ // Strings
+ Store(Add(0x123456789abcda, 0x789abcda023789, ss00), ss10)
+ m4c0(ts, ss00, "008ACF13529CF463", "529CF463")
+ m4c0(ts, ss10, "008ACF13529CF463", "529CF463")
+
+ // Buffers smaller than result
+ Store(Add(0x123456789abcda, 0x789abcda023789, bb00), bb80)
+ m4c0(ts, bb00, b000, b001)
+ m4c0(ts, bb80, b000, b001)
+
+ // Buffers greater than result
+ Store(Add(0x123456789abcda, 0x789abcda023789, b002), b003)
+ m4c0(ts, b002, b004, b005)
+ m4c0(ts, b003, b004, b005)
+
+ // Set fields (their source buffer) to zero
+
+// Store(bbff, Debug)
+
+ m565()
+ Store(Add(0x123456789abcda, 0x789abcda023789, bf00), bf10)
+ m4c0(ts, bf00, b004, b005)
+ m4c0(ts, bf10, b004, b005)
+
+// !!! check the contents of bbff !!!!!!!!!
+
+// Store(bbff, Debug)
+}
+
+// And (int, int, Result) => Integer
+Method(m502, 1, Serialized)
+{
+ Name(ts, "m502")
+ ts00(ts)
+}
+
+// Concatenate ({int|str|buf}, {int|str|buf}, Result) => ComputationalData
+Method(m503, 1)
+{
+ m563()
+ m564()
+}
+
+Method(m563,, Serialized)
+{
+ Name(ts, "m503,s+s")
+
+ // s+s -->> s -->> all combinations of Result and ComputationalData
+
+ // Result 64-bit, 32-bit, ComputationalData 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // ============= With Result
+
+ 0x00ABCDEF12345678, 0x12345678, 0x00ABCDEF12345678, 0x12345678,
+ 0x00ABCDEF12345678, 0x12345678, "abcdef12345678", "abcdef12345678",
+ 0x00ABCDEF12345678, 0x12345678, Buffer() {0x61}, Buffer() {0x61},
+ 0x00ABCDEF12345678, 0x12345678, 0x04636261, 0x04636261,
+ 0x00ABCDEF12345678, 0x12345678, 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ "abcdef12345678", "abcdef12345678", 0x00ABCDEF12345678, 0x12345678,
+ "abcdef12345678", "abcdef12345678", "abcdef12345678", "abcdef12345678",
+ "abcdef12345678", "abcdef12345678", Buffer() {0x61}, Buffer() {0x61},
+ "abcdef12345678", "abcdef12345678", 0x04636261, 0x04636261,
+ "abcdef12345678", "abcdef12345678", 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ Buffer() {0x61}, Buffer() {0x61}, 0x00ABCDEF12345678, 0x12345678,
+ Buffer() {0x61}, Buffer() {0x61}, "abcdef12345678", "abcdef12345678",
+ Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61},
+ Buffer() {0x61}, Buffer() {0x61}, 0x04636261, 0x04636261,
+ Buffer() {0x61}, Buffer() {0x61}, 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x0000000004636261, 0x04636261, 0x00ABCDEF12345678, 0x12345678,
+ 0x0000000004636261, 0x04636261, "abcdef12345678", "abcdef12345678",
+ 0x0000000004636261, 0x04636261, Buffer() {0x61}, Buffer() {0x61},
+ 0x0000000004636261, 0x04636261, 0x0000000004636261, 0x04636261,
+ 0x0000000004636261, 0x04636261, 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x00ABCDEF12345678, 0x12345678,
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ "abcdef12345678", "abcdef12345678",
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ Buffer() {0x61}, Buffer() {0x61},
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x0000000004636261, 0x04636261,
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+
+ // ============= Result omited
+
+ 0,0, 0x00ABCDEF12345678, 0x12345678,
+ 0,0, "abcdef12345678", "abcdef12345678",
+ 0,0, Buffer() {0x61}, Buffer() {0x61},
+ 0,0, 0x04636261, 0x04636261,
+ 0,0, 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+
+ // ============= Store omited
+
+ 0x00ABCDEF12345678, 0x12345678, 0,0,
+ "abcdef12345678", "abcdef12345678", 0,0,
+ Buffer() {0x61}, Buffer() {0x61}, 0,0,
+ 0x04636261, 0x04636261, 0,0,
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66}, 0,0,
+
+ // ============= Particular additional cases
+
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
+ Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
+ Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
+ Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
+
+ Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
+ Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
+
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ })
+
+ Store("abcdef", Local0)
+ Store("12345678", Local1)
+
+ m562(ts, Local0, Local1, p000)
+
+ // Source values are not corrupted
+
+ Store(ObjectType(Local0), Local2)
+ if (LNotEqual(Local2, 2)) {
+ err(ts, z067, 0, 0, 0, Local2, 2)
+ } elseif (LNotEqual(Local0, "abcdef")) {
+ err(ts, z067, 1, 0, 0, Local0, "abcdef")
+ }
+
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, 2)) {
+ err(ts, z067, 2, 0, 0, Local2, 2)
+ } elseif (LNotEqual(Local1, "12345678")) {
+ err(ts, z067, 3, 0, 0, Local1, "12345678")
+ }
+}
+
+Method(m564,, Serialized)
+{
+ Name(ts, "m503,b+b")
+
+ // b+b -->> b -->> all combinations of Result and ComputationalData
+
+ // Result 64-bit, 32-bit, ComputationalData 64-bit, 32-bit
+ Name(p000, Package() {
+
+ // ============= With Result
+
+ // i,i
+ 0x3231666564636261, 0x64636261, 0x3231666564636261, 0x64636261,
+ // i,s
+ 0x3231666564636261, 0x64636261,
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ // i,b
+ 0x3231666564636261, 0x64636261, Buffer() {0x61}, Buffer() {0x61},
+ // i,bf(i,i)
+ 0x3231666564636261, 0x64636261, 0x04636261, 0x04636261,
+ // i,bf(i,b)
+ 0x3231666564636261, 0x64636261,
+ 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ // s,i
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ 0x3231666564636261, 0x64636261,
+ // s,s
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ // s,b
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ Buffer() {0x61},
+ Buffer() {0x61},
+ // s,bf(i,i)
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ 0x0000000004636261,
+ 0x04636261,
+ // s,bf(i,b)
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ // b,i
+ Buffer() {0x61}, Buffer() {0x61}, 0x3231666564636261, 0x64636261,
+ // b,s
+ Buffer() {0x61}, Buffer() {0x61},
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ // b,b
+ Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61}, Buffer() {0x61},
+ // b,bf(i,i)
+ Buffer() {0x61}, Buffer() {0x61}, 0x04636261, 0x04636261,
+ // b,bf(i,b)
+ Buffer() {0x61}, Buffer() {0x61}, 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ // bf(i,i),i
+ 0x0000000004636261, 0x04636261, 0x3231666564636261, 0x64636261,
+ // bf(i,i),s
+ 0x0000000004636261, 0x04636261,
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ // bf(i,i),b
+ 0x0000000004636261, 0x04636261, Buffer() {0x61}, Buffer() {0x61},
+ // bf(i,i),bf(i,i)
+ 0x0000000004636261, 0x04636261, 0x0000000004636261, 0x04636261,
+ // bf(i,i),bf(i,b)
+ 0x0000000004636261, 0x04636261, 0x0000666564636261,
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ // bf(i,b),i
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x3231666564636261, 0x64636261,
+ // bf(i,b),s
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ // bf(i,b),b
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ Buffer() {0x61}, Buffer() {0x61},
+ // bf(i,b),bf(i,i)
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x0000000004636261, 0x04636261,
+ // bf(i,b),bf(i,b)
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+
+ // ============= Result omited
+
+ // ,i
+ 0,0, 0x3231666564636261, 0x64636261,
+ // ,s
+ 0,0, "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ // ,b
+ 0,0, Buffer() {0x61}, Buffer() {0x61},
+ // ,bf(i,i)
+ 0,0, 0x04636261, 0x04636261,
+ // b,bf(i,b)
+ 0,0, 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66},
+
+ // ============= Store omited
+
+ // i,
+ 0x3231666564636261, 0x64636261, 0,0,
+ // s,
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ "61 62 63 64 65 66 31 32 33 34 35 36 37 38",
+ 0,0,
+ // b,
+ Buffer() {0x61}, Buffer() {0x61}, 0,0,
+ // bf(i,i),
+ 0x04636261, 0x04636261, 0,0,
+ // bf(i,b),
+ 0x0000666564636261, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66}, 0,0,
+
+ // ============= Particular additional cases
+
+ // Buffer Field, incomplete last byte
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38},
+ // Buffer Field, incomplete extra byte
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00},
+ // Buffer Field, size exceeding result
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ // Buffer, inside 32-bit Integer
+ Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
+ Buffer() {0x61,0x62,0x63}, Buffer() {0x61,0x62,0x63},
+ // Buffer, 32-bit Integer
+ Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
+ Buffer() {0x61,0x62,0x63,0x64}, Buffer() {0x61,0x62,0x63,0x64},
+ // Buffer, inside 64-bit Integer
+ Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
+ Buffer() {0x61,0x62,0x63,0x64,0x65}, Buffer() {0x61,0x62,0x63,0x64,0x65},
+ // Buffer, 64-bit Integer
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32},
+ // Buffer, size exceeding result
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ Buffer() {0x61,0x62,0x63,0x64,0x65,0x66,0x31,0x32,
+ 0x33,0x34,0x35,0x36,0x37,0x38,0x00,0x00,
+ 0x00,0x00,0x00,0x00},
+ })
+
+ Name(b000, Buffer() {0x61,0x62,0x63,0x64,0x65,0x66})
+ Name(b001, Buffer() {0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38})
+
+ Store(b000, Local0)
+ Store(b001, Local1)
+
+ m562(ts, Local0, Local1, p000)
+
+ // Source values are not corrupted
+
+ Store(ObjectType(Local0), Local2)
+ if (LNotEqual(Local2, 3)) {
+ err(ts, z067, 4, 0, 0, Local2, 3)
+ } elseif (LNotEqual(Local0, b000)) {
+ err(ts, z067, 5, 0, 0, Local0, b000)
+ }
+
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, 3)) {
+ err(ts, z067, 6, 0, 0, Local2, 3)
+ } elseif (LNotEqual(Local1, b001)) {
+ err(ts, z067, 7, 0, 0, Local1, b001)
+ }
+}
+
+// arg0 - name of test
+// arg1 - Source1
+// arg2 - Source2
+// arg3 - results
+Method(m562, 4)
+{
+ ts00(arg0)
+
+ // ============= With Result
+ // ii,is,ib,ibf
+ // si,ss,sb,sbf
+ // bi,bs,bb,bbf
+ // bfi,bfs,bfb,bfbf
+
+ // i,i
+ Store(Concatenate(arg1, arg2, ii00), ii10)
+ m4c1(arg0, arg3, 0, 1, 1, ii00, ii10)
+ // i,s
+ Store(Concatenate(arg1, arg2, ii00), ss10)
+ m4c1(arg0, arg3, 1, 1, 1, ii00, ss10)
+ // i,b
+ Store(Concatenate(arg1, arg2, ii00), bb80)
+ m4c1(arg0, arg3, 2, 1, 1, ii00, bb80)
+ // i,bf(i,i)
+ Store(Concatenate(arg1, arg2, ii00), bf10)
+ m4c1(arg0, arg3, 3, 1, 1, ii00, bf10)
+ // i,bf(i,b)
+ Store(Concatenate(arg1, arg2, ii00), bf11)
+ m4c1(arg0, arg3, 4, 1, 1, ii00, bf11)
+
+ // s,i
+ Store(Concatenate(arg1, arg2, ss00), ii10)
+ m4c1(arg0, arg3, 5, 1, 1, ss00, ii10)
+ // s,s
+ Store(Concatenate(arg1, arg2, ss00), ss10)
+ m4c1(arg0, arg3, 6, 1, 1, ss00, ss10)
+ // s,b
+ Store(Concatenate(arg1, arg2, ss00), bb80)
+ m4c1(arg0, arg3, 7, 1, 1, ss00, bb80)
+ // s,bf(i,i)
+ Store(Concatenate(arg1, arg2, ss00), bf10)
+ m4c1(arg0, arg3, 8, 1, 1, ss00, bf10)
+ // s,bf(i,b)
+ Store(Concatenate(arg1, arg2, ss00), bf11)
+ m4c1(arg0, arg3, 9, 1, 1, ss00, bf11)
+
+ // b,i
+ Store(Concatenate(arg1, arg2, bb00), ii10)
+ m4c1(arg0, arg3, 10, 1, 1, bb00, ii10)
+ // b,s
+ Store(Concatenate(arg1, arg2, bb00), ss10)
+ m4c1(arg0, arg3, 11, 1, 1, bb00, ss10)
+ // b,b
+ Store(Concatenate(arg1, arg2, bb00), bb80)
+ m4c1(arg0, arg3, 12, 1, 1, bb00, bb80)
+ // b,bf(i,i)
+ Store(Concatenate(arg1, arg2, bb00), bf10)
+ m4c1(arg0, arg3, 13, 1, 1, bb00, bf10)
+ // b,bf(i,b)
+ Store(Concatenate(arg1, arg2, bb00), bf11)
+ m4c1(arg0, arg3, 14, 1, 1, bb00, bf11)
+
+ // bf(i,i),i
+ Store(Concatenate(arg1, arg2, bf00), ii10)
+ m4c1(arg0, arg3, 15, 1, 1, bf00, ii10)
+ // bf(i,i),s
+ Store(Concatenate(arg1, arg2, bf00), ss10)
+ m4c1(arg0, arg3, 16, 1, 1, bf00, ss10)
+ // bf(i,i),b
+ Store(Concatenate(arg1, arg2, bf00), bb80)
+ m4c1(arg0, arg3, 17, 1, 1, bf00, bb80)
+ // bf(i,i),bf(i,i)
+ Store(Concatenate(arg1, arg2, bf00), bf10)
+ m4c1(arg0, arg3, 18, 1, 1, bf00, bf10)
+ // bf(i,i),bf(i,b)
+ Store(Concatenate(arg1, arg2, bf00), bf11)
+ m4c1(arg0, arg3, 19, 1, 1, bf00, bf11)
+
+ // bf(i,b),i
+ Store(Concatenate(arg1, arg2, bf01), ii10)
+ m4c1(arg0, arg3, 20, 1, 1, bf01, ii10)
+ // bf(i,b),s
+ Store(Concatenate(arg1, arg2, bf01), ss10)
+ m4c1(arg0, arg3, 21, 1, 1, bf01, ss10)
+ // bf(i,b),b
+ Store(Concatenate(arg1, arg2, bf01), bb80)
+ m4c1(arg0, arg3, 22, 1, 1, bf01, bb80)
+ // bf(i,b),bf(i,i)
+ Store(Concatenate(arg1, arg2, bf01), bf10)
+ m4c1(arg0, arg3, 23, 1, 1, bf01, bf10)
+ // bf(i,b),bf(i,b)
+ Store(Concatenate(arg1, arg2, bf01), bf11)
+ m4c1(arg0, arg3, 24, 1, 1, bf01, bf11)
+
+ // ============= Result omited
+ // ,i,s,b,bf
+
+ // ,i
+ Store(Concatenate(arg1, arg2), ii10)
+ m4c1(arg0, arg3, 25, 0, 1, 0, ii10)
+ // ,s
+ Store(Concatenate(arg1, arg2), ss10)
+ m4c1(arg0, arg3, 26, 0, 1, 0, ss10)
+ // ,b
+ Store(Concatenate(arg1, arg2), bb80)
+ m4c1(arg0, arg3, 27, 0, 1, 0, bb80)
+ // ,bf(i,i)
+ Store(Concatenate(arg1, arg2), bf10)
+ m4c1(arg0, arg3, 28, 0, 1, 0, bf10)
+ // b,bf(i,b)
+ Store(Concatenate(arg1, arg2), bf11)
+ m4c1(arg0, arg3, 29, 0, 1, 0, bf11)
+
+ // ============= Store omited
+ // i,s,b,bf,
+
+ // i,
+ Concatenate(arg1, arg2, ii00)
+ m4c1(arg0, arg3, 30, 1, 0, ii00, 0)
+ // s,
+ Concatenate(arg1, arg2, ss00)
+ m4c1(arg0, arg3, 31, 1, 0, ss00, 0)
+ // b,
+ Concatenate(arg1, arg2, bb00)
+ m4c1(arg0, arg3, 32, 1, 0, bb00, 0)
+ // bf(i,i),
+ Concatenate(arg1, arg2, bf00)
+ m4c1(arg0, arg3, 33, 1, 0, bf00, 0)
+ // bf(i,b),
+ Concatenate(arg1, arg2, bf01)
+ m4c1(arg0, arg3, 34, 1, 0, bf01, 0)
+
+ // ============= Particular additional cases
+
+ // Buffer Field, incomplete last byte
+ Store(Concatenate(arg1, arg2, bf02), bf12)
+ m4c1(arg0, arg3, 35, 1, 1, bf02, bf12)
+
+ // Buffer Field, incomplete extra byte
+ Store(Concatenate(arg1, arg2, bf03), bf13)
+ m4c1(arg0, arg3, 36, 1, 1, bf03, bf13)
+
+ // Buffer Field, size exceeding result
+ Store(Concatenate(arg1, arg2, bf04), bf14)
+ m4c1(arg0, arg3, 37, 1, 1, bf04, bf14)
+
+ // Buffer, inside 32-bit Integer
+ Store(Concatenate(arg1, arg2, bb01), bb81)
+ m4c1(arg0, arg3, 38, 1, 1, bb01, bb81)
+
+ // Buffer, 32-bit Integer
+ Store(Concatenate(arg1, arg2, bb02), bb82)
+ m4c1(arg0, arg3, 39, 1, 1, bb02, bb82)
+
+ // Buffer, inside 64-bit Integer
+ Store(Concatenate(arg1, arg2, bb03), bb83)
+ m4c1(arg0, arg3, 40, 1, 1, bb03, bb83)
+
+ // Buffer, 64-bit Integer
+ Store(Concatenate(arg1, arg2, bb04), bb84)
+ m4c1(arg0, arg3, 41, 1, 1, bb04, bb84)
+
+ // Buffer, size exceeding result
+ Store(Concatenate(arg1, arg2, bb05), bb85)
+ m4c1(arg0, arg3, 42, 1, 1, bb05, bb85)
+}
+
+// ConcatenateResTemplate (rtb, rtb, Result) => Buffer
+Method(m504, 1, Serialized)
+{
+ Name(op, 4)
+
+ Name(ts, "m504")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// CondRefOf (any, Result) => Boolean
+Method(m505, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m505")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// CopyObject (any, Destination) => DataRefObject
+Method(m506, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m506")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Decrement (int) => Integer
+Method(m507, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m507")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// DerefOf ({ref|str}) => Object
+Method(m508, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m508")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Divide (int, int, Remainder, Result) => Integer
+Method(m509, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m509")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// FindSetLeftBit (int, Result) => Integer
+Method(m511, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m511")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// FindSetRightBit (int, Result) => Integer
+Method(m512, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m512")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// FromBCD (int, Result) => Integer
+Method(m513, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m513")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Increment (int) => Integer
+Method(m514, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m514")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Index ({str|buf|pkg}, int, Destination) => ObjectReference
+Method(m515, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m515")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LAnd (int, int) => Boolean
+Method(m516, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m516")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LEqual ({int|str|buf}, {int|str|buf}) => Boolean
+Method(m517, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m517")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LGreater ({int|str|buf}, {int|str|buf}) => Boolean
+Method(m518, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m518")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LGreaterEqual ({int|str|buf}, {int|str|buf}) => Boolean
+Method(m519, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m519")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LLess ({int|str|buf}, {int|str|buf}) => Boolean
+Method(m520, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m520")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LLessEqual ({int|str|buf}, {int|str|buf}) => Boolean
+Method(m521, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m521")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LNot (int) => Boolean
+Method(m522, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m522")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LNotEqual ({int|str|buf}, {int|str|buf}) => Boolean
+Method(m523, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m523")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// LOr (int, int) => Boolean
+Method(m524, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m524")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Match (pkg, byt, int, byt, int, int) => Ones | Integer
+Method(m525, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m525")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Mid ({str|buf}, int, int, Result) => Buffer or String
+Method(m526, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m526")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Mod (int, int, Result) => Integer
+Method(m527, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m527")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Multiply (int, int, Result) => Integer
+Method(m528, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m528")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// NAnd (int, int, Result) => Integer
+Method(m529, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m529")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// NOr (int, int, Result) => Integer
+Method(m530, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m530")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Not (int, Result) => Integer
+Method(m531, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m531")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ObjectType (any) => Integer
+Method(m532, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m532")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Or (int, int, Result) => Integer
+Method(m533, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m533")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// RefOf (any) => ObjectReference
+Method(m534, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m534")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Return ({any|ref})
+Method(m537, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m537")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ShiftLeft (int, int, Result) => Integer
+Method(m538, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m538")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ShiftRight (int, int, Result) => Integer
+Method(m539, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m539")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// SizeOf ({int|str|buf|pkg}) => Integer
+Method(m541, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m541")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Store (any, Destination) => DataRefObject
+Method(m544, 1, Serialized)
+{
+ Name(ts, "m544")
+
+ ts00(ts)
+
+ Name(ss00, "DEF")
+ Store("ABC", ss00)
+
+ Store(ObjectType(ss00), Local0)
+ if (LNotEqual(Local0, 2)) {
+ err(ts, z067, 8, 0, 0, Local0, 2)
+ } elseif (LNotEqual(ss00, "ABC")) {
+ err(ts, z067, 9, 0, 0, ss00, "ABC")
+ }
+
+ // If the string is shorter than the buffer, the buffer size is reduced.
+
+ Name(b000, Buffer(200) {})
+ Name(b001, Buffer() {0x41,0x42,0x43,0x44,0x45,0x46})
+
+ Store("ABCDEF", b000)
+ Store(ObjectType(b000), Local0)
+ Store(SizeOf(b000), Local1)
+
+ if (LNotEqual(Local0, 3)) {
+ err(ts, z067, 10, 0, 0, Local0, 3)
+ } elseif (LNotEqual(Local1, 6)) {
+ err(ts, z067, 11, 0, 0, Local1, 6)
+ } elseif (LNotEqual(b000, b001)) {
+ err(ts, z067, 12, 0, 0, b000, b001)
+ }
+
+/*
+ Store("================ 000000000:", Debug)
+ Store(Local0, Debug)
+ Store(Local1, Debug)
+
+
+ CopyObject("ABC", b000)
+ Store(SizeOf(b000), Local0)
+ Store(ObjectType(b000), Local1)
+
+ Store("================ 000000000:", Debug)
+ Store(Local0, Debug)
+ Store(Local1, Debug)
+*/
+}
+
+// Subtract (int, int, Result) => Integer
+Method(m545, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m545")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ToBCD (int, Result) => Integer
+Method(m546, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m546")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ToBuffer ({int|str|buf}, Result) => Buffer
+Method(m547, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m547")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ToDecimalString ({int|str|buf}, Result) => String
+Method(m548, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m548")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ToHexString ({int|str|buf}, Result) => String
+Method(m549, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m549")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ToInteger ({int|str|buf}, Result) => Integer
+Method(m550, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m550")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// ToString (buf, int, Result) => String
+Method(m551, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m551")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// Wait (evt, int) => Boolean
+Method(m552, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m552")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+// XOr (int, int, Result) => Integer
+Method(m553, 1, Serialized)
+{
+ Name(op, 0)
+
+ Name(ts, "m553")
+
+ ts00(ts)
+
+ if (arg0) {
+ } else {
+ }
+}
+
+Method(m560, 1)
+{
+/*
+ m500(arg0)
+ m501(arg0)
+ m502(arg0)
+ m503(arg0)
+ m504(arg0)
+ m505(arg0)
+ m506(arg0)
+ m507(arg0)
+ m508(arg0)
+ m509(arg0)
+ m511(arg0)
+ m512(arg0)
+ m513(arg0)
+ m514(arg0)
+ m515(arg0)
+ m516(arg0)
+ m517(arg0)
+ m518(arg0)
+ m519(arg0)
+ m520(arg0)
+ m521(arg0)
+ m522(arg0)
+ m523(arg0)
+ m524(arg0)
+ m525(arg0)
+ m526(arg0)
+ m527(arg0)
+ m528(arg0)
+ m529(arg0)
+ m530(arg0)
+ m531(arg0)
+ m532(arg0)
+ m533(arg0)
+ m534(arg0)
+ m537(arg0)
+ m538(arg0)
+ m539(arg0)
+ m541(arg0)
+ m544(arg0)
+ m545(arg0)
+ m546(arg0)
+ m547(arg0)
+ m548(arg0)
+ m549(arg0)
+ m550(arg0)
+ m551(arg0)
+ m552(arg0)
+ m553(arg0)
+*/
+
+ m500(arg0)
+ m501(arg0)
+ m502(arg0)
+ m503(arg0)
+ m544(arg0)
+}
diff --git a/tests/aslts/src/runtime/common/data.asl b/tests/aslts/src/runtime/common/data.asl
index d7f4de38e..68a39f56d 100644
--- a/tests/aslts/src/runtime/common/data.asl
+++ b/tests/aslts/src/runtime/common/data.asl
@@ -1,279 +1,279 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- *
- * Different type data for different needs
- *
- */
-
-/*
-SEE: uncomment m918 after fixing bug (?) of ACPICA
-SEE: uncomment below:
-// Method(m918) { return (tz90) }
-*/
-
-Name(z113, 113)
-
- // Not Computational Data
-
- Event(e900)
- Event(e9Z0)
- Mutex(mx90, 0)
- Mutex(mx91, 0)
- Device(d900) { Name(i900, 0xabcd0017) }
- Device(d9Z0) { Name(i900, 0xabcd0017) }
- ThermalZone(tz90) {}
- ThermalZone(tz91) {}
- Processor(pr90, 0, 0xFFFFFFFF, 0) {}
- Processor(pr91, 0, 0xFFFFFFFF, 0) {}
- OperationRegion(r900, SystemMemory, 0x100, 0x100)
- OperationRegion(r9Z0, SystemMemory, 0x100, 0x100)
- PowerResource(pw90, 1, 0) {Method(mmmm){return (0)}}
- PowerResource(pw91, 1, 0) {Method(mmmm){return (0)}}
-
- // Computational Data
-
- Name(i900, 0xfe7cb391d65a0000)
- Name(i9Z0, 0xfe7cb391d65a0000)
- Name(i901, 0xc1790001)
- Name(i9Z1, 0xc1790001)
- Name(i902, 0)
- Name(i903, 0xffffffffffffffff)
- Name(i904, 0xffffffff)
- Name(s900, "12340002")
- Name(s9Z0, "12340002")
- Name(s901, "qwrtyu0003")
- Name(s9Z1, "qwrtyu0003")
- Name(b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
- Name(b9Z0, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
-
- CreateField(b9Z0, 0, 8, bf90)
- Field(r9Z0, ByteAcc, NoLock, Preserve) {f900,8,f901,8,f902,8,f903,8}
- BankField(r9Z0, f901, 0, ByteAcc, NoLock, Preserve) {bn90,4}
- IndexField(f902, f903, ByteAcc, NoLock, Preserve) {if90,8,if91,8}
-
- // Elements of Package are Uninitialized
-
- Name(p900, Package(1) {})
-
- // Elements of Package are Computational Data
-
- Name(p901, Package() {0xabcd0004, 0x1122334455660005})
- Name(p902, Package() {"12340006", "q1w2e3r4t5y6u7i80007"})
- Name(p903, Package() {"qwrtyuiop0008", "1234567890abdef0250009"})
- Name(p904, Package() {Buffer() {0xb5,0xb6,0xb7}, Buffer() {0xb8,0xb9}})
- Name(p905, Package() {Package() {0xabc000a, "0xabc000b", "abc000c"}})
- Name(p906, Package() {Package() {"abc000d"}})
- Name(p907, Package() {Package() {"aqwevbgnm000e"}})
- Name(p908, Package() {Package() {Buffer() {0xba,0xbb,0xbc,0xbd,0xbe}}})
- Name(p909, Package() {Package() {Package() {0xabc000f}}})
- Name(p90a, Package() {Package() {Package() {"12340010"}}})
- Name(p90b, Package() {Package() {Package() {"zxswefas0011"}}})
- Name(p90c, Package() {Package() {Package() {Buffer() {0xbf,0xc0,0xc1}}}})
-
- Name(p90d, Package() {i900})
- Name(p90e, Package() {i901})
- Name(p90f, Package() {s900})
- Name(p910, Package() {s901})
- Name(p911, Package() {b9Z0})
- Name(p912, Package() {f900})
- Name(p913, Package() {bn90})
- Name(p914, Package() {if90})
- Name(p915, Package() {bf90})
-
- // Elements of Package are NOT Computational Data
-
- Name(p916, Package() {d900})
- Name(p917, Package() {e900})
- Name(p918, Package() {mx90})
- Name(p919, Package() {r9Z0})
- Name(p91a, Package() {pw90})
- Name(p91b, Package() {pr90})
- Name(p91c, Package() {tz90})
-
- // Methods
-
- Method(m900) {}
- Method(m901) { return (0xabc0012) }
- Method(m902) { return ("zxvgswquiy0013") }
- Method(m903) { return (Buffer() {0xc2}) }
- Method(m904) { return (Package() {0xabc0014}) }
- Method(m905) { return (Package() {"lkjhgtre0015"}) }
- Method(m906) { return (Package() {Buffer() {0xc3}}) }
- Method(m907) { return (Package() {Package() {0xabc0016}}) }
-
- Method(m908) { return (i900) }
- Method(m909) { return (i901) }
- Method(m90a) { return (s900) }
- Method(m90b) { return (s901) }
- Method(m90c) { return (b9Z0) }
- Method(m90d) { return (f900) }
- Method(m90e) { return (bn90) }
- Method(m90f) { return (if90) }
- Method(m910) { return (bf90) }
-
- Method(m911) { return (d900) }
- Method(m912) { return (e900) }
- Method(m913) { return (m901) }
- Method(m914) { return (mx90) }
- Method(m915) { return (r9Z0) }
- Method(m916) { return (pw90) }
- Method(m917) { return (pr90) }
-// Method(m918) { return (tz90) }
- Method(m918) { return (0) }
-
- Method(m919) { return (p900) }
- Method(m91a) { return (p901) }
- Method(m91b) { return (p902) }
- Method(m91c) { return (p903) }
- Method(m91d) { return (p904) }
- Method(m91e) { return (p905) }
- Method(m91f) { return (p906) }
- Method(m920) { return (p907) }
- Method(m921) { return (p908) }
- Method(m922) { return (p909) }
- Method(m923) { return (p90a) }
- Method(m924) { return (p90b) }
- Method(m925) { return (p90c) }
- Method(m926) { return (p90d) }
- Method(m927) { return (p90e) }
- Method(m928) { return (p90f) }
- Method(m929) { return (p910) }
- Method(m92a) { return (p911) }
- Method(m92b) { return (p912) }
- Method(m92c) { return (p913) }
- Method(m92d) { return (p914) }
- Method(m92e) { return (p915) }
- Method(m92f) { return (p916) }
- Method(m930) { return (p917) }
- Method(m931) { return (p918) }
- Method(m932) { return (p919) }
- Method(m933) { return (p91a) }
- Method(m934) { return (p91b) }
- Method(m935) { return (p91c) }
-
- // Elements of Package are Methods
-
- Name(p91d, Package() {m900})
- Name(p91e, Package() {m901})
- Name(p91f, Package() {m902})
- Name(p920, Package() {m903})
- Name(p921, Package() {m904})
- Name(p922, Package() {m905})
- Name(p923, Package() {m906})
- Name(p924, Package() {m907})
- Name(p925, Package() {m908})
- Name(p926, Package() {m909})
- Name(p927, Package() {m90a})
- Name(p928, Package() {m90b})
- Name(p929, Package() {m90c})
- Name(p92a, Package() {m90d})
- Name(p92b, Package() {m90e})
- Name(p92c, Package() {m90f})
- Name(p92d, Package() {m910})
- Name(p92e, Package() {m911})
- Name(p92f, Package() {m912})
- Name(p930, Package() {m913})
- Name(p931, Package() {m914})
- Name(p932, Package() {m915})
- Name(p933, Package() {m916})
- Name(p934, Package() {m917})
- if (y103) {
- Name(p935, Package() {m918})
- }
- Name(p936, Package() {m919})
- Name(p937, Package() {m91a})
- Name(p938, Package() {m91b})
- Name(p939, Package() {m91c})
- Name(p93a, Package() {m91d})
- Name(p93b, Package() {m91e})
- Name(p93c, Package() {m91f})
- Name(p93d, Package() {m920})
- Name(p93e, Package() {m921})
- Name(p93f, Package() {m922})
- Name(p940, Package() {m923})
- Name(p941, Package() {m924})
- Name(p942, Package() {m925})
- Name(p943, Package() {m926})
- Name(p944, Package() {m927})
- Name(p945, Package() {m928})
- Name(p946, Package() {m929})
- Name(p947, Package() {m92a})
- Name(p948, Package() {m92b})
- Name(p949, Package() {m92c})
- Name(p94a, Package() {m92d})
- Name(p94b, Package() {m92e})
- Name(p94c, Package() {m92f})
- Name(p94d, Package() {m930})
- Name(p94e, Package() {m931})
- Name(p94f, Package() {m932})
- Name(p950, Package() {m933})
- Name(p951, Package() {m934})
- Name(p952, Package() {m935})
-
- Name(p953, Package() {0xabcd0018, 0xabcd0019})
- Name(p954, Package() {0xabcd0018, 0xabcd0019})
-
- Name(i905, 0xabcd001a)
- Name(i9Z5, 0xabcd001a)
-
- Method(m936) {
- Store(0, i905)
- return (mx90)
- }
-
- Name(p955, Package(18) {
- 0,i900,s900,b900,p953,f900,d900,e900,
- m936,mx90,r900,pw90,pr90,tz90,bf90,15,16})
- Name(p956, Package(18) {
- 0,i900,s900,b900,p953,f900,d900,e900,
- m936,mx90,r900,pw90,pr90,tz90,bf90,15,16})
-
- // Global Standard Data
-
- Name(ia00, 0x77)
- Name(sa00, "qwer0000")
- Name(ba00, Buffer(4) {1,0x77,3,4})
- Name(pa00, Package(3) {5,0x77,7})
-
- Name(ia10, 0x77)
- Name(sa10, "qwer0000")
- Name(ba10, Buffer(4) {1,0x77,3,4})
- Name(pa10, Package(3) {5,0x77,7})
-
- Name(ia01, 0x2b)
- Name(sa01, "qw+r0000")
- Name(ba01, Buffer(4) {1,0x2b,3,4})
- Name(pa01, Package(3) {5,0x2b,7})
-
- Name(ia11, 0x2b)
- Name(sa11, "qw+r0000")
- Name(ba11, Buffer(4) {1,0x2b,3,4})
- Name(pa11, Package(3) {5,0x2b,7})
-
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ *
+ * Different type data for different needs
+ *
+ */
+
+/*
+SEE: uncomment m918 after fixing bug (?) of ACPICA
+SEE: uncomment below:
+// Method(m918) { return (tz90) }
+*/
+
+Name(z113, 113)
+
+ // Not Computational Data
+
+ Event(e900)
+ Event(e9Z0)
+ Mutex(mx90, 0)
+ Mutex(mx91, 0)
+ Device(d900) { Name(i900, 0xabcd0017) }
+ Device(d9Z0) { Name(i900, 0xabcd0017) }
+ ThermalZone(tz90) {}
+ ThermalZone(tz91) {}
+ Processor(pr90, 0, 0xFFFFFFFF, 0) {}
+ Processor(pr91, 0, 0xFFFFFFFF, 0) {}
+ OperationRegion(r900, SystemMemory, 0x100, 0x100)
+ OperationRegion(r9Z0, SystemMemory, 0x100, 0x100)
+ PowerResource(pw90, 1, 0) {Method(mmmm){return (0)}}
+ PowerResource(pw91, 1, 0) {Method(mmmm){return (0)}}
+
+ // Computational Data
+
+ Name(i900, 0xfe7cb391d65a0000)
+ Name(i9Z0, 0xfe7cb391d65a0000)
+ Name(i901, 0xc1790001)
+ Name(i9Z1, 0xc1790001)
+ Name(i902, 0)
+ Name(i903, 0xffffffffffffffff)
+ Name(i904, 0xffffffff)
+ Name(s900, "12340002")
+ Name(s9Z0, "12340002")
+ Name(s901, "qwrtyu0003")
+ Name(s9Z1, "qwrtyu0003")
+ Name(b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
+ Name(b9Z0, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
+
+ CreateField(b9Z0, 0, 8, bf90)
+ Field(r9Z0, ByteAcc, NoLock, Preserve) {f900,8,f901,8,f902,8,f903,8}
+ BankField(r9Z0, f901, 0, ByteAcc, NoLock, Preserve) {bn90,4}
+ IndexField(f902, f903, ByteAcc, NoLock, Preserve) {if90,8,if91,8}
+
+ // Elements of Package are Uninitialized
+
+ Name(p900, Package(1) {})
+
+ // Elements of Package are Computational Data
+
+ Name(p901, Package() {0xabcd0004, 0x1122334455660005})
+ Name(p902, Package() {"12340006", "q1w2e3r4t5y6u7i80007"})
+ Name(p903, Package() {"qwrtyuiop0008", "1234567890abdef0250009"})
+ Name(p904, Package() {Buffer() {0xb5,0xb6,0xb7}, Buffer() {0xb8,0xb9}})
+ Name(p905, Package() {Package() {0xabc000a, "0xabc000b", "abc000c"}})
+ Name(p906, Package() {Package() {"abc000d"}})
+ Name(p907, Package() {Package() {"aqwevbgnm000e"}})
+ Name(p908, Package() {Package() {Buffer() {0xba,0xbb,0xbc,0xbd,0xbe}}})
+ Name(p909, Package() {Package() {Package() {0xabc000f}}})
+ Name(p90a, Package() {Package() {Package() {"12340010"}}})
+ Name(p90b, Package() {Package() {Package() {"zxswefas0011"}}})
+ Name(p90c, Package() {Package() {Package() {Buffer() {0xbf,0xc0,0xc1}}}})
+
+ Name(p90d, Package() {i900})
+ Name(p90e, Package() {i901})
+ Name(p90f, Package() {s900})
+ Name(p910, Package() {s901})
+ Name(p911, Package() {b9Z0})
+ Name(p912, Package() {f900})
+ Name(p913, Package() {bn90})
+ Name(p914, Package() {if90})
+ Name(p915, Package() {bf90})
+
+ // Elements of Package are NOT Computational Data
+
+ Name(p916, Package() {d900})
+ Name(p917, Package() {e900})
+ Name(p918, Package() {mx90})
+ Name(p919, Package() {r9Z0})
+ Name(p91a, Package() {pw90})
+ Name(p91b, Package() {pr90})
+ Name(p91c, Package() {tz90})
+
+ // Methods
+
+ Method(m900) {}
+ Method(m901) { return (0xabc0012) }
+ Method(m902) { return ("zxvgswquiy0013") }
+ Method(m903) { return (Buffer() {0xc2}) }
+ Method(m904) { return (Package() {0xabc0014}) }
+ Method(m905) { return (Package() {"lkjhgtre0015"}) }
+ Method(m906) { return (Package() {Buffer() {0xc3}}) }
+ Method(m907) { return (Package() {Package() {0xabc0016}}) }
+
+ Method(m908) { return (i900) }
+ Method(m909) { return (i901) }
+ Method(m90a) { return (s900) }
+ Method(m90b) { return (s901) }
+ Method(m90c) { return (b9Z0) }
+ Method(m90d) { return (f900) }
+ Method(m90e) { return (bn90) }
+ Method(m90f) { return (if90) }
+ Method(m910) { return (bf90) }
+
+ Method(m911) { return (d900) }
+ Method(m912) { return (e900) }
+ Method(m913) { return (m901) }
+ Method(m914) { return (mx90) }
+ Method(m915) { return (r9Z0) }
+ Method(m916) { return (pw90) }
+ Method(m917) { return (pr90) }
+// Method(m918) { return (tz90) }
+ Method(m918) { return (0) }
+
+ Method(m919) { return (p900) }
+ Method(m91a) { return (p901) }
+ Method(m91b) { return (p902) }
+ Method(m91c) { return (p903) }
+ Method(m91d) { return (p904) }
+ Method(m91e) { return (p905) }
+ Method(m91f) { return (p906) }
+ Method(m920) { return (p907) }
+ Method(m921) { return (p908) }
+ Method(m922) { return (p909) }
+ Method(m923) { return (p90a) }
+ Method(m924) { return (p90b) }
+ Method(m925) { return (p90c) }
+ Method(m926) { return (p90d) }
+ Method(m927) { return (p90e) }
+ Method(m928) { return (p90f) }
+ Method(m929) { return (p910) }
+ Method(m92a) { return (p911) }
+ Method(m92b) { return (p912) }
+ Method(m92c) { return (p913) }
+ Method(m92d) { return (p914) }
+ Method(m92e) { return (p915) }
+ Method(m92f) { return (p916) }
+ Method(m930) { return (p917) }
+ Method(m931) { return (p918) }
+ Method(m932) { return (p919) }
+ Method(m933) { return (p91a) }
+ Method(m934) { return (p91b) }
+ Method(m935) { return (p91c) }
+
+ // Elements of Package are Methods
+
+ Name(p91d, Package() {m900})
+ Name(p91e, Package() {m901})
+ Name(p91f, Package() {m902})
+ Name(p920, Package() {m903})
+ Name(p921, Package() {m904})
+ Name(p922, Package() {m905})
+ Name(p923, Package() {m906})
+ Name(p924, Package() {m907})
+ Name(p925, Package() {m908})
+ Name(p926, Package() {m909})
+ Name(p927, Package() {m90a})
+ Name(p928, Package() {m90b})
+ Name(p929, Package() {m90c})
+ Name(p92a, Package() {m90d})
+ Name(p92b, Package() {m90e})
+ Name(p92c, Package() {m90f})
+ Name(p92d, Package() {m910})
+ Name(p92e, Package() {m911})
+ Name(p92f, Package() {m912})
+ Name(p930, Package() {m913})
+ Name(p931, Package() {m914})
+ Name(p932, Package() {m915})
+ Name(p933, Package() {m916})
+ Name(p934, Package() {m917})
+ if (y103) {
+ Name(p935, Package() {m918})
+ }
+ Name(p936, Package() {m919})
+ Name(p937, Package() {m91a})
+ Name(p938, Package() {m91b})
+ Name(p939, Package() {m91c})
+ Name(p93a, Package() {m91d})
+ Name(p93b, Package() {m91e})
+ Name(p93c, Package() {m91f})
+ Name(p93d, Package() {m920})
+ Name(p93e, Package() {m921})
+ Name(p93f, Package() {m922})
+ Name(p940, Package() {m923})
+ Name(p941, Package() {m924})
+ Name(p942, Package() {m925})
+ Name(p943, Package() {m926})
+ Name(p944, Package() {m927})
+ Name(p945, Package() {m928})
+ Name(p946, Package() {m929})
+ Name(p947, Package() {m92a})
+ Name(p948, Package() {m92b})
+ Name(p949, Package() {m92c})
+ Name(p94a, Package() {m92d})
+ Name(p94b, Package() {m92e})
+ Name(p94c, Package() {m92f})
+ Name(p94d, Package() {m930})
+ Name(p94e, Package() {m931})
+ Name(p94f, Package() {m932})
+ Name(p950, Package() {m933})
+ Name(p951, Package() {m934})
+ Name(p952, Package() {m935})
+
+ Name(p953, Package() {0xabcd0018, 0xabcd0019})
+ Name(p954, Package() {0xabcd0018, 0xabcd0019})
+
+ Name(i905, 0xabcd001a)
+ Name(i9Z5, 0xabcd001a)
+
+ Method(m936) {
+ Store(0, i905)
+ return (mx90)
+ }
+
+ Name(p955, Package(18) {
+ 0,i900,s900,b900,p953,f900,d900,e900,
+ m936,mx90,r900,pw90,pr90,tz90,bf90,15,16})
+ Name(p956, Package(18) {
+ 0,i900,s900,b900,p953,f900,d900,e900,
+ m936,mx90,r900,pw90,pr90,tz90,bf90,15,16})
+
+ // Global Standard Data
+
+ Name(ia00, 0x77)
+ Name(sa00, "qwer0000")
+ Name(ba00, Buffer(4) {1,0x77,3,4})
+ Name(pa00, Package(3) {5,0x77,7})
+
+ Name(ia10, 0x77)
+ Name(sa10, "qwer0000")
+ Name(ba10, Buffer(4) {1,0x77,3,4})
+ Name(pa10, Package(3) {5,0x77,7})
+
+ Name(ia01, 0x2b)
+ Name(sa01, "qw+r0000")
+ Name(ba01, Buffer(4) {1,0x2b,3,4})
+ Name(pa01, Package(3) {5,0x2b,7})
+
+ Name(ia11, 0x2b)
+ Name(sa11, "qw+r0000")
+ Name(ba11, Buffer(4) {1,0x2b,3,4})
+ Name(pa11, Package(3) {5,0x2b,7})
+
diff --git a/tests/aslts/src/runtime/common/dataproc.asl b/tests/aslts/src/runtime/common/dataproc.asl
index 22558867d..5dde841e2 100644
--- a/tests/aslts/src/runtime/common/dataproc.asl
+++ b/tests/aslts/src/runtime/common/dataproc.asl
@@ -1,750 +1,750 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-Name(z114, 114)
-
-// Check the type of Object
-// arg0 - Object
-// arg1 - expected type
-// arg2 - absolute index of file initiating the checking
-// arg3 - the name of Method initiating the checking
-// arg4 - index of checking (inside the file)
-Method(m1a3, 5)
-{
- Store(1, Local7)
-
- Store(ObjectType(arg0), Local0)
-
- if (LNotEqual(Local0, arg1)) {
- err("m1a3", z114, 0, arg2, arg4, Local0, arg1)
- Store(0, Local7)
- }
-
- return (Local7)
-}
-
-// Check that all the data (global) are not corrupted
-Method(m1a6,, Serialized)
-{
- Name(ts, "m1a6")
-
- // Computational Data
-
- // Integer
-
- Store(ObjectType(i900), Local0)
- if (LNotEqual(Local0, c009)) {
- err(ts, z114, 0x100, 0, 0, Local0, c009)
- }
- if (LNotEqual(i900, 0xfe7cb391d65a0000)) {
- err(ts, z114, 0x101, 0, 0, i900, 0xfe7cb391d65a0000)
- }
-
- Store(ObjectType(i901), Local0)
- if (LNotEqual(Local0, c009)) {
- err(ts, z114, 0x102, 0, 0, Local0, c009)
- }
- if (LNotEqual(i901, 0xc1790001)) {
- err(ts, z114, 0x103, 0, 0, i901, 0xc1790001)
- }
-
- Store(ObjectType(i902), Local0)
- if (LNotEqual(Local0, c009)) {
- err(ts, z114, 0x104, 0, 0, Local0, c009)
- }
- if (LNotEqual(i902, 0)) {
- err(ts, z114, 0x105, 0, 0, i902, 0)
- }
-
- Store(ObjectType(i903), Local0)
- if (LNotEqual(Local0, c009)) {
- err(ts, z114, 0x106, 0, 0, Local0, c009)
- }
- if (LNotEqual(i903, 0xffffffffffffffff)) {
- err(ts, z114, 0x107, 0, 0, i903, 0xffffffffffffffff)
- }
-
- Store(ObjectType(i904), Local0)
- if (LNotEqual(Local0, c009)) {
- err(ts, z114, 0x108, 0, 0, Local0, c009)
- }
- if (LNotEqual(i904, 0xffffffff)) {
- err(ts, z114, 0x109, 0, 0, i904, 0xffffffff)
- }
-
- // String
-
- Store(ObjectType(s900), Local0)
- if (LNotEqual(Local0, c00a)) {
- err(ts, z114, 0x10a, 0, 0, Local0, c00a)
- }
- if (LNotEqual(s900, "12340002")) {
- err(ts, z114, 0x10b, 0, 0, s900, "12340002")
- }
-
- Store(ObjectType(s901), Local0)
- if (LNotEqual(Local0, c00a)) {
- err(ts, z114, 0x10c, 0, 0, Local0, c00a)
- }
- if (LNotEqual(s901, "qwrtyu0003")) {
- err(ts, z114, 0x10d, 0, 0, s901, "qwrtyu0003")
- }
-
- // Buffer
-
- Store(ObjectType(b900), Local0)
- if (LNotEqual(Local0, c00b)) {
- err(ts, z114, 0x10e, 0, 0, Local0, c00b)
- }
- if (LNotEqual(b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})) {
- err(ts, z114, 0x10f, 0, 0, b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
- }
-
- // Buffer Field
-
- Store(ObjectType(bf90), Local0)
- if (LNotEqual(Local0, c016)) {
- err(ts, z114, 0x110, 0, 0, Local0, c016)
- }
- if (LNotEqual(bf90, 0xb0)) {
- err(ts, z114, 0x111, 0, 0, bf90, 0xb0)
- }
-
- // One level Package
-
- Store(Index(p900, 0), Local0)
- Store(ObjectType(Local0), Local1)
- if (LNotEqual(Local1, c008)) {
- err(ts, z114, 0x112, 0, 0, Local1, c008)
- }
-
- Store(Index(p901, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c009)) {
- err(ts, z114, 0x113, 0, 0, Local2, c009)
- }
- if (LNotEqual(Local1, 0xabcd0004)) {
- err(ts, z114, 0x114, 0, 0, Local1, 0xabcd0004)
- }
-
- Store(Index(p901, 1), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c009)) {
- err(ts, z114, 0x115, 0, 0, Local2, c009)
- }
- if (LNotEqual(Local1, 0x1122334455660005)) {
- err(ts, z114, 0x116, 0, 0, Local1, 0x1122334455660005)
- }
-
- Store(Index(p902, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c00a)) {
- err(ts, z114, 0x117, 0, 0, Local2, c00a)
- }
- if (LNotEqual(Local1, "12340006")) {
- err(ts, z114, 0x118, 0, 0, Local1, "12340006")
- }
-
- Store(Index(p902, 1), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c00a)) {
- err(ts, z114, 0x119, 0, 0, Local2, c00a)
- }
- if (LNotEqual(Local1, "q1w2e3r4t5y6u7i80007")) {
- err(ts, z114, 0x11a, 0, 0, Local1, "q1w2e3r4t5y6u7i80007")
- }
-
- Store(Index(p903, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c00a)) {
- err(ts, z114, 0x11b, 0, 0, Local2, c00a)
- }
- if (LNotEqual(Local1, "qwrtyuiop0008")) {
- err(ts, z114, 0x11c, 0, 0, Local1, "qwrtyuiop0008")
- }
-
- Store(Index(p903, 1), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c00a)) {
- err(ts, z114, 0x11d, 0, 0, Local2, c00a)
- }
- if (LNotEqual(Local1, "1234567890abdef0250009")) {
- err(ts, z114, 0x11e, 0, 0, Local1, "1234567890abdef0250009")
- }
-
- Store(Index(p904, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c00b)) {
- err(ts, z114, 0x11f, 0, 0, Local2, c00b)
- }
- if (LNotEqual(Local1, Buffer() {0xb5,0xb6,0xb7})) {
- err(ts, z114, 0x120, 0, 0, Local1, Buffer() {0xb5,0xb6,0xb7})
- }
-
- Store(Index(p904, 1), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c00b)) {
- err(ts, z114, 0x121, 0, 0, Local2, c00b)
- }
- if (LNotEqual(Local1, Buffer() {0xb8,0xb9})) {
- err(ts, z114, 0x122, 0, 0, Local1, Buffer() {0xb8,0xb9})
- }
-
- // Two level Package
-
- Store(Index(p905, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(ObjectType(Local3), Local4)
- if (LNotEqual(Local4, c009)) {
- err(ts, z114, 0x123, 0, 0, Local4, c009)
- }
- if (LNotEqual(Local3, 0xabc000a)) {
- err(ts, z114, 0x124, 0, 0, Local3, 0xabc000a)
- }
-
- Store(Index(p905, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 1), Local2)
- Store(DerefOf(Local2), Local3)
- Store(ObjectType(Local3), Local4)
- if (LNotEqual(Local4, c00a)) {
- err(ts, z114, 0x125, 0, 0, Local4, c00a)
- }
- if (LNotEqual(Local3, "0xabc000b")) {
- err(ts, z114, 0x126, 0, 0, Local3, "0xabc000b")
- }
-
- Store(Index(p905, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 2), Local2)
- Store(DerefOf(Local2), Local3)
- Store(ObjectType(Local3), Local4)
- if (LNotEqual(Local4, c00a)) {
- err(ts, z114, 0x127, 0, 0, Local4, c00a)
- }
- if (LNotEqual(Local3, "abc000c")) {
- err(ts, z114, 0x128, 0, 0, Local3, "abc000c")
- }
-
- Store(Index(p906, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(ObjectType(Local3), Local4)
- if (LNotEqual(Local4, c00a)) {
- err(ts, z114, 0x129, 0, 0, Local4, c00a)
- }
- if (LNotEqual(Local3, "abc000d")) {
- err(ts, z114, 0x12a, 0, 0, Local3, "abc000d")
- }
-
- Store(Index(p907, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(ObjectType(Local3), Local4)
- if (LNotEqual(Local4, c00a)) {
- err(ts, z114, 0x12b, 0, 0, Local4, c00a)
- }
- if (LNotEqual(Local3, "aqwevbgnm000e")) {
- err(ts, z114, 0x12c, 0, 0, Local3, "aqwevbgnm000e")
- }
-
- Store(Index(p908, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(ObjectType(Local3), Local4)
- if (LNotEqual(Local4, c00b)) {
- err(ts, z114, 0x12d, 0, 0, Local4, c00b)
- }
- if (LNotEqual(Local3, Buffer() {0xba,0xbb,0xbc,0xbd,0xbe})) {
- err(ts, z114, 0x12e, 0, 0, Local3, Buffer() {0xba,0xbb,0xbc,0xbd,0xbe})
- }
-
- // Three level Package
-
- Store(Index(p909, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(Index(Local3, 0), Local4)
- Store(DerefOf(Local4), Local5)
- Store(ObjectType(Local5), Local6)
- if (LNotEqual(Local6, c009)) {
- err(ts, z114, 0x12f, 0, 0, Local6, c009)
- }
- if (LNotEqual(Local5, 0xabc000f)) {
- err(ts, z114, 0x130, 0, 0, Local5, 0xabc000f)
- }
-
- Store(Index(p90a, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(Index(Local3, 0), Local4)
- Store(DerefOf(Local4), Local5)
- Store(ObjectType(Local5), Local6)
- if (LNotEqual(Local6, c00a)) {
- err(ts, z114, 0x131, 0, 0, Local6, c00a)
- }
- if (LNotEqual(Local5, "12340010")) {
- err(ts, z114, 0x132, 0, 0, Local5, "12340010")
- }
-
- Store(Index(p90b, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(Index(Local3, 0), Local4)
- Store(DerefOf(Local4), Local5)
- Store(ObjectType(Local5), Local6)
- if (LNotEqual(Local6, c00a)) {
- err(ts, z114, 0x133, 0, 0, Local6, c00a)
- }
- if (LNotEqual(Local5, "zxswefas0011")) {
- err(ts, z114, 0x134, 0, 0, Local5, "zxswefas0011")
- }
-
- Store(Index(p90c, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(Index(Local1, 0), Local2)
- Store(DerefOf(Local2), Local3)
- Store(Index(Local3, 0), Local4)
- Store(DerefOf(Local4), Local5)
- Store(ObjectType(Local5), Local6)
- if (LNotEqual(Local6, c00b)) {
- err(ts, z114, 0x135, 0, 0, Local6, c00b)
- }
- if (LNotEqual(Local5, Buffer() {0xbf,0xc0,0xc1})) {
- err(ts, z114, 0x136, 0, 0, Local5, Buffer() {0xbf,0xc0,0xc1})
- }
-
- // Additional Packages
-
- // p953
-
- Store(Index(p953, 0), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c009)) {
- err(ts, z114, 0x137, 0, 0, Local2, c009)
- }
- if (LNotEqual(Local1, 0xabcd0018)) {
- err(ts, z114, 0x138, 0, 0, Local1, 0xabcd0018)
- }
-
- Store(Index(p953, 1), Local0)
- Store(DerefOf(Local0), Local1)
- Store(ObjectType(Local1), Local2)
- if (LNotEqual(Local2, c009)) {
- err(ts, z114, 0x139, 0, 0, Local2, c009)
- }
- if (LNotEqual(Local1, 0xabcd0019)) {
- err(ts, z114, 0x13a, 0, 0, Local1, 0xabcd0019)
- }
-
- // p955
-
- m1af(p955, 1, 1, 0)
-
- // Not Computational Data
-
- m1aa(ts, e900, c00f, 0, 0x13b)
- m1aa(ts, mx90, c011, 0, 0x13c)
- m1aa(ts, d900, c00e, 0, 0x13d)
- if (y508) {
- m1aa(ts, tz90, c015, 0, 0x13e)
- }
- m1aa(ts, pr90, c014, 0, 0x13f)
- m1aa(ts, r900, c012, 0, 0x140)
- m1aa(ts, pw90, c013, 0, 0x141)
-
- // Field Unit (Field)
-
- Store(ObjectType(f900), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x142, 0, 0, Local0, c00d)
- }
- Store(ObjectType(f901), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x143, 0, 0, Local0, c00d)
- }
- Store(ObjectType(f902), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x144, 0, 0, Local0, c00d)
- }
- Store(ObjectType(f903), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x145, 0, 0, Local0, c00d)
- }
-
- // Field Unit (IndexField)
-
- Store(ObjectType(if90), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x146, 0, 0, Local0, c00d)
- }
- Store(ObjectType(if91), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x147, 0, 0, Local0, c00d)
- }
-
- // Field Unit (BankField)
-
- Store(ObjectType(bn90), Local0)
- if (LNotEqual(Local0, c00d)) {
- err(ts, z114, 0x148, 0, 0, Local0, c00d)
- }
-
-/*
- * if (LNotEqual(f900, 0xd7)) {
- * err(ts, z114, 0x149, 0, 0, f900, 0xd7)
- * }
- *
- * if (LNotEqual(if90, 0xd7)) {
- * err(ts, z114, 0x14a, 0, 0, if90, 0xd7)
- * }
- */
-}
-
-// Verifying result
-// arg0 - test name
-// arg1 - object
-// arg2 - expected type of object
-// arg3 - expected value of object
-// arg4 - index of checking (inside the file)
-Method(m1aa, 5)
-{
- Store(0, Local7)
-
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, arg2)) {
- err(arg0, z114, 8, 0, arg4, Local0, arg2)
- Store(1, Local7)
- } elseif (LLess(arg2, c00c)) {
- if (LNotEqual(arg1, arg3)) {
- err(arg0, z114, 9, 0, arg4, arg1, arg3)
- Store(1, Local7)
- }
- }
-
- Return (Local7)
-}
-
-// Check and restore the global data after writing into them
-
-Method(m1ab,, Serialized)
-{
- Name(ts, "m1ab")
-
- // Computational Data
-
- m1aa(ts, i900, c009, c08a, 0x144)
- m1aa(ts, i901, c009, c08a, 0x145)
- m1aa(ts, s900, c009, c08a, 0x146)
- m1aa(ts, s901, c009, c08a, 0x147)
- m1aa(ts, b900, c009, c08a, 0x148)
-
- // Package
-
- m1aa(ts, p953, c009, c08a, 0x149)
-
- // Not Computational Data
-
- m1aa(ts, e900, c009, c08a, 0x14a)
- m1aa(ts, mx90, c009, c08a, 0x14b)
- m1aa(ts, d900, c009, c08a, 0x14c)
-
- if (y508) {
- m1aa(ts, tz90, c009, c08a, 0x14d)
- }
-
- m1aa(ts, pr90, c009, c08a, 0x14e)
-
- if (y510) {
- m1aa(ts, r900, c009, c08a, 0x14f)
- }
-
- m1aa(ts, pw90, c009, c08a, 0x150)
-
- m1ac()
-
- m1a6()
-}
-
-// Restore the global data after writing into them
-Method(m1ac)
-{
-
- // Computational Data
-
- CopyObject(i9Z0, i900)
- CopyObject(i9Z1, i901)
- CopyObject(s9Z0, s900)
- CopyObject(s9Z1, s901)
- CopyObject(b9Z0, b900)
-
- // Package
-
- CopyObject(p954, p953)
-
- // Restore p955 Package
- m1c6()
-
- // Not Computational Data
-
- CopyObject(e9Z0, e900)
- CopyObject(mx91, mx90)
- CopyObject(d9Z0, d900)
-
- if (y508) {
- CopyObject(tz91, tz90)
- }
-
- CopyObject(pr91, pr90)
-
- if (y510) {
- CopyObject(r9Z0, r900)
- }
-
- CopyObject(pw91, pw90)
-}
-
-// Verify p955-like Package
-// arg0 - Package
-// arg1 - check for non-computational data
-// arg2 - check Field Unit and Buffer Field
-// arg3 - elements of Package are RefOf_References
-Method(m1af, 4, Serialized)
-{
- Name(ts, "m1af")
-
- Store(Index(arg0, 0), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c009)) {
- err(ts, z114, 0x112, 0, 0, Local1, c009)
- } else {
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 0)) {
- err(ts, z113, 0x112, 0, 0, Local1, 0)
- }
- }
-
- Store(Index(arg0, 1), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c009)) {
- err(ts, z114, 0x112, 0, 0, Local1, c009)
- } else {
- Store(DerefOf(Local0), Local1)
- if (arg3) {
- Store(DerefOf(Local1), Local2)
- Store(Local2, Local1)
- }
- if (LNotEqual(Local1, 0xfe7cb391d65a0000)) {
- err(ts, z114, 0x112, 0, 0, Local1, 0xfe7cb391d65a0000)
- }
- }
-
- Store(Index(arg0, 2), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c00a)) {
- err(ts, z114, 0x112, 0, 0, Local1, c00a)
- } else {
- Store(DerefOf(Local0), Local1)
- if (arg3) {
- Store(DerefOf(Local1), Local2)
- Store(Local2, Local1)
- }
- if (LNotEqual(Local1, "12340002")) {
- err(ts, z114, 0x112, 0, 0, Local1, "12340002")
- }
- }
-
- Store(Index(arg0, 3), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c00b)) {
- err(ts, z114, 0x112, 0, 0, Local1, c00a)
- } else {
- Store(DerefOf(Local0), Local1)
- if (arg3) {
- Store(DerefOf(Local1), Local2)
- Store(Local2, Local1)
- }
- if (LNotEqual(Local1, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})) {
- err(ts, z114, 0x112, 0, 0, Local1, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
- }
- }
-
- Store(Index(arg0, 4), Local0)
- m1aa(ts, Local0, c00c, 0, 0x13f)
-
-
- // 5th element is a region field, which will be resolved to an integer
-
- if (arg2) {
- Store(Index(arg0, 5), Local0)
- Store(ObjectType(Local0), Local1)
- Store(DerefOf(Local0), Local7)
-
- if (arg3) {
- if (LNotEqual(Local1, c00d)) {
- err(ts, z114, 0x112, 0, 0, Local1, c00d)
- } else {
- Store(DerefOf(Local7), Local6)
- Store(Local6, Local7)
- }
- }
-
- Store(ObjectType(Local7), Local5)
-
- if (LNotEqual(Local5, c009)) {
- err(ts, z114, 0x112, 0, 0, Local5, c009)
- } else {
- if (LNotEqual(Local7, 0)) {
- err(ts, z114, 0x112, 0, 0, Local7, 0)
- }
- }
- }
-
- if (arg1) {
-
- Store(Index(arg0, 6), Local0)
- m1aa(ts, Local0, c00e, 0, 0x13f)
-
- Store(Index(arg0, 7), Local0)
- m1aa(ts, Local0, c00f, 0, 0x13f)
-
- Store(Index(arg0, 8), Local0)
- m1aa(ts, Local0, c010, 0, 0x13f)
-
- Store(Index(arg0, 9), Local0)
- m1aa(ts, Local0, c011, 0, 0x13f)
-
- Store(Index(arg0, 10), Local0)
- m1aa(ts, Local0, c012, 0, 0x13f)
-
- Store(Index(arg0, 11), Local0)
- m1aa(ts, Local0, c013, 0, 0x13f)
-
- Store(Index(arg0, 12), Local0)
- m1aa(ts, Local0, c014, 0, 0x13f)
-
- Store(Index(arg0, 13), Local0)
- m1aa(ts, Local0, c015, 0, 0x13f)
- }
-
- // 14th element is a buffer field, which will be resolved to an integer
-
- if (arg2) {
- Store(Index(arg0, 14), Local0)
- Store(ObjectType(Local0), Local1)
- Store(DerefOf(Local0), Local7)
-
- if (arg3) {
- if (LNotEqual(Local1, c016)) {
- err(ts, z114, 0x112, 0, 0, Local1, c016)
- } else {
- Store(DerefOf(Local7), Local6)
- Store(Local6, Local7)
- }
- }
-
- Store(ObjectType(Local7), Local5)
-
- if (LNotEqual(Local5, c009)) {
- err(ts, z114, 0x112, 0, 0, Local5, c009)
- } else {
- if (LNotEqual(Local7, 0xb0)) {
- err(ts, z114, 0x112, 0, 0, Local7, 0)
- }
- }
- }
-
- Store(Index(arg0, 15), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c009)) {
- err(ts, z114, 0x112, 0, 0, Local1, c009)
- } else {
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 15)) {
- err(ts, z114, 0x112, 0, 0, Local1, 15)
- }
- }
-
- Store(Index(arg0, 16), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c009)) {
- err(ts, z114, 0x112, 0, 0, Local1, c009)
- } else {
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 16)) {
- err(ts, z114, 0x112, 0, 0, Local1, 16)
- }
- }
-
- Store(Index(arg0, 17), Local0)
- Store(ObjectType(Local0), Local1)
-
- if (LNotEqual(Local1, c008)) {
- err(ts, z114, 0x115, 0, 0, Local1, c008)
- }
-
- // Evaluation of Method m936 takes place
-
- if (LNotEqual(i905, 0xabcd001a)) {
- err(ts, z114, 0x116, 0, 0, i905, 0xabcd001a)
- }
-}
-
-// Restore p955 Package
-Method(m1c6)
-{
- CopyObject(p956, p955)
- Store(i9Z5, i905)
-}
-
-
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+Name(z114, 114)
+
+// Check the type of Object
+// arg0 - Object
+// arg1 - expected type
+// arg2 - absolute index of file initiating the checking
+// arg3 - the name of Method initiating the checking
+// arg4 - index of checking (inside the file)
+Method(m1a3, 5)
+{
+ Store(1, Local7)
+
+ Store(ObjectType(arg0), Local0)
+
+ if (LNotEqual(Local0, arg1)) {
+ err("m1a3", z114, 0, arg2, arg4, Local0, arg1)
+ Store(0, Local7)
+ }
+
+ return (Local7)
+}
+
+// Check that all the data (global) are not corrupted
+Method(m1a6,, Serialized)
+{
+ Name(ts, "m1a6")
+
+ // Computational Data
+
+ // Integer
+
+ Store(ObjectType(i900), Local0)
+ if (LNotEqual(Local0, c009)) {
+ err(ts, z114, 0x100, 0, 0, Local0, c009)
+ }
+ if (LNotEqual(i900, 0xfe7cb391d65a0000)) {
+ err(ts, z114, 0x101, 0, 0, i900, 0xfe7cb391d65a0000)
+ }
+
+ Store(ObjectType(i901), Local0)
+ if (LNotEqual(Local0, c009)) {
+ err(ts, z114, 0x102, 0, 0, Local0, c009)
+ }
+ if (LNotEqual(i901, 0xc1790001)) {
+ err(ts, z114, 0x103, 0, 0, i901, 0xc1790001)
+ }
+
+ Store(ObjectType(i902), Local0)
+ if (LNotEqual(Local0, c009)) {
+ err(ts, z114, 0x104, 0, 0, Local0, c009)
+ }
+ if (LNotEqual(i902, 0)) {
+ err(ts, z114, 0x105, 0, 0, i902, 0)
+ }
+
+ Store(ObjectType(i903), Local0)
+ if (LNotEqual(Local0, c009)) {
+ err(ts, z114, 0x106, 0, 0, Local0, c009)
+ }
+ if (LNotEqual(i903, 0xffffffffffffffff)) {
+ err(ts, z114, 0x107, 0, 0, i903, 0xffffffffffffffff)
+ }
+
+ Store(ObjectType(i904), Local0)
+ if (LNotEqual(Local0, c009)) {
+ err(ts, z114, 0x108, 0, 0, Local0, c009)
+ }
+ if (LNotEqual(i904, 0xffffffff)) {
+ err(ts, z114, 0x109, 0, 0, i904, 0xffffffff)
+ }
+
+ // String
+
+ Store(ObjectType(s900), Local0)
+ if (LNotEqual(Local0, c00a)) {
+ err(ts, z114, 0x10a, 0, 0, Local0, c00a)
+ }
+ if (LNotEqual(s900, "12340002")) {
+ err(ts, z114, 0x10b, 0, 0, s900, "12340002")
+ }
+
+ Store(ObjectType(s901), Local0)
+ if (LNotEqual(Local0, c00a)) {
+ err(ts, z114, 0x10c, 0, 0, Local0, c00a)
+ }
+ if (LNotEqual(s901, "qwrtyu0003")) {
+ err(ts, z114, 0x10d, 0, 0, s901, "qwrtyu0003")
+ }
+
+ // Buffer
+
+ Store(ObjectType(b900), Local0)
+ if (LNotEqual(Local0, c00b)) {
+ err(ts, z114, 0x10e, 0, 0, Local0, c00b)
+ }
+ if (LNotEqual(b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})) {
+ err(ts, z114, 0x10f, 0, 0, b900, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
+ }
+
+ // Buffer Field
+
+ Store(ObjectType(bf90), Local0)
+ if (LNotEqual(Local0, c016)) {
+ err(ts, z114, 0x110, 0, 0, Local0, c016)
+ }
+ if (LNotEqual(bf90, 0xb0)) {
+ err(ts, z114, 0x111, 0, 0, bf90, 0xb0)
+ }
+
+ // One level Package
+
+ Store(Index(p900, 0), Local0)
+ Store(ObjectType(Local0), Local1)
+ if (LNotEqual(Local1, c008)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c008)
+ }
+
+ Store(Index(p901, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c009)) {
+ err(ts, z114, 0x113, 0, 0, Local2, c009)
+ }
+ if (LNotEqual(Local1, 0xabcd0004)) {
+ err(ts, z114, 0x114, 0, 0, Local1, 0xabcd0004)
+ }
+
+ Store(Index(p901, 1), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c009)) {
+ err(ts, z114, 0x115, 0, 0, Local2, c009)
+ }
+ if (LNotEqual(Local1, 0x1122334455660005)) {
+ err(ts, z114, 0x116, 0, 0, Local1, 0x1122334455660005)
+ }
+
+ Store(Index(p902, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c00a)) {
+ err(ts, z114, 0x117, 0, 0, Local2, c00a)
+ }
+ if (LNotEqual(Local1, "12340006")) {
+ err(ts, z114, 0x118, 0, 0, Local1, "12340006")
+ }
+
+ Store(Index(p902, 1), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c00a)) {
+ err(ts, z114, 0x119, 0, 0, Local2, c00a)
+ }
+ if (LNotEqual(Local1, "q1w2e3r4t5y6u7i80007")) {
+ err(ts, z114, 0x11a, 0, 0, Local1, "q1w2e3r4t5y6u7i80007")
+ }
+
+ Store(Index(p903, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c00a)) {
+ err(ts, z114, 0x11b, 0, 0, Local2, c00a)
+ }
+ if (LNotEqual(Local1, "qwrtyuiop0008")) {
+ err(ts, z114, 0x11c, 0, 0, Local1, "qwrtyuiop0008")
+ }
+
+ Store(Index(p903, 1), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c00a)) {
+ err(ts, z114, 0x11d, 0, 0, Local2, c00a)
+ }
+ if (LNotEqual(Local1, "1234567890abdef0250009")) {
+ err(ts, z114, 0x11e, 0, 0, Local1, "1234567890abdef0250009")
+ }
+
+ Store(Index(p904, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c00b)) {
+ err(ts, z114, 0x11f, 0, 0, Local2, c00b)
+ }
+ if (LNotEqual(Local1, Buffer() {0xb5,0xb6,0xb7})) {
+ err(ts, z114, 0x120, 0, 0, Local1, Buffer() {0xb5,0xb6,0xb7})
+ }
+
+ Store(Index(p904, 1), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c00b)) {
+ err(ts, z114, 0x121, 0, 0, Local2, c00b)
+ }
+ if (LNotEqual(Local1, Buffer() {0xb8,0xb9})) {
+ err(ts, z114, 0x122, 0, 0, Local1, Buffer() {0xb8,0xb9})
+ }
+
+ // Two level Package
+
+ Store(Index(p905, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(ObjectType(Local3), Local4)
+ if (LNotEqual(Local4, c009)) {
+ err(ts, z114, 0x123, 0, 0, Local4, c009)
+ }
+ if (LNotEqual(Local3, 0xabc000a)) {
+ err(ts, z114, 0x124, 0, 0, Local3, 0xabc000a)
+ }
+
+ Store(Index(p905, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 1), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(ObjectType(Local3), Local4)
+ if (LNotEqual(Local4, c00a)) {
+ err(ts, z114, 0x125, 0, 0, Local4, c00a)
+ }
+ if (LNotEqual(Local3, "0xabc000b")) {
+ err(ts, z114, 0x126, 0, 0, Local3, "0xabc000b")
+ }
+
+ Store(Index(p905, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 2), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(ObjectType(Local3), Local4)
+ if (LNotEqual(Local4, c00a)) {
+ err(ts, z114, 0x127, 0, 0, Local4, c00a)
+ }
+ if (LNotEqual(Local3, "abc000c")) {
+ err(ts, z114, 0x128, 0, 0, Local3, "abc000c")
+ }
+
+ Store(Index(p906, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(ObjectType(Local3), Local4)
+ if (LNotEqual(Local4, c00a)) {
+ err(ts, z114, 0x129, 0, 0, Local4, c00a)
+ }
+ if (LNotEqual(Local3, "abc000d")) {
+ err(ts, z114, 0x12a, 0, 0, Local3, "abc000d")
+ }
+
+ Store(Index(p907, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(ObjectType(Local3), Local4)
+ if (LNotEqual(Local4, c00a)) {
+ err(ts, z114, 0x12b, 0, 0, Local4, c00a)
+ }
+ if (LNotEqual(Local3, "aqwevbgnm000e")) {
+ err(ts, z114, 0x12c, 0, 0, Local3, "aqwevbgnm000e")
+ }
+
+ Store(Index(p908, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(ObjectType(Local3), Local4)
+ if (LNotEqual(Local4, c00b)) {
+ err(ts, z114, 0x12d, 0, 0, Local4, c00b)
+ }
+ if (LNotEqual(Local3, Buffer() {0xba,0xbb,0xbc,0xbd,0xbe})) {
+ err(ts, z114, 0x12e, 0, 0, Local3, Buffer() {0xba,0xbb,0xbc,0xbd,0xbe})
+ }
+
+ // Three level Package
+
+ Store(Index(p909, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(Index(Local3, 0), Local4)
+ Store(DerefOf(Local4), Local5)
+ Store(ObjectType(Local5), Local6)
+ if (LNotEqual(Local6, c009)) {
+ err(ts, z114, 0x12f, 0, 0, Local6, c009)
+ }
+ if (LNotEqual(Local5, 0xabc000f)) {
+ err(ts, z114, 0x130, 0, 0, Local5, 0xabc000f)
+ }
+
+ Store(Index(p90a, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(Index(Local3, 0), Local4)
+ Store(DerefOf(Local4), Local5)
+ Store(ObjectType(Local5), Local6)
+ if (LNotEqual(Local6, c00a)) {
+ err(ts, z114, 0x131, 0, 0, Local6, c00a)
+ }
+ if (LNotEqual(Local5, "12340010")) {
+ err(ts, z114, 0x132, 0, 0, Local5, "12340010")
+ }
+
+ Store(Index(p90b, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(Index(Local3, 0), Local4)
+ Store(DerefOf(Local4), Local5)
+ Store(ObjectType(Local5), Local6)
+ if (LNotEqual(Local6, c00a)) {
+ err(ts, z114, 0x133, 0, 0, Local6, c00a)
+ }
+ if (LNotEqual(Local5, "zxswefas0011")) {
+ err(ts, z114, 0x134, 0, 0, Local5, "zxswefas0011")
+ }
+
+ Store(Index(p90c, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(Index(Local1, 0), Local2)
+ Store(DerefOf(Local2), Local3)
+ Store(Index(Local3, 0), Local4)
+ Store(DerefOf(Local4), Local5)
+ Store(ObjectType(Local5), Local6)
+ if (LNotEqual(Local6, c00b)) {
+ err(ts, z114, 0x135, 0, 0, Local6, c00b)
+ }
+ if (LNotEqual(Local5, Buffer() {0xbf,0xc0,0xc1})) {
+ err(ts, z114, 0x136, 0, 0, Local5, Buffer() {0xbf,0xc0,0xc1})
+ }
+
+ // Additional Packages
+
+ // p953
+
+ Store(Index(p953, 0), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c009)) {
+ err(ts, z114, 0x137, 0, 0, Local2, c009)
+ }
+ if (LNotEqual(Local1, 0xabcd0018)) {
+ err(ts, z114, 0x138, 0, 0, Local1, 0xabcd0018)
+ }
+
+ Store(Index(p953, 1), Local0)
+ Store(DerefOf(Local0), Local1)
+ Store(ObjectType(Local1), Local2)
+ if (LNotEqual(Local2, c009)) {
+ err(ts, z114, 0x139, 0, 0, Local2, c009)
+ }
+ if (LNotEqual(Local1, 0xabcd0019)) {
+ err(ts, z114, 0x13a, 0, 0, Local1, 0xabcd0019)
+ }
+
+ // p955
+
+ m1af(p955, 1, 1, 0)
+
+ // Not Computational Data
+
+ m1aa(ts, e900, c00f, 0, 0x13b)
+ m1aa(ts, mx90, c011, 0, 0x13c)
+ m1aa(ts, d900, c00e, 0, 0x13d)
+ if (y508) {
+ m1aa(ts, tz90, c015, 0, 0x13e)
+ }
+ m1aa(ts, pr90, c014, 0, 0x13f)
+ m1aa(ts, r900, c012, 0, 0x140)
+ m1aa(ts, pw90, c013, 0, 0x141)
+
+ // Field Unit (Field)
+
+ Store(ObjectType(f900), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x142, 0, 0, Local0, c00d)
+ }
+ Store(ObjectType(f901), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x143, 0, 0, Local0, c00d)
+ }
+ Store(ObjectType(f902), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x144, 0, 0, Local0, c00d)
+ }
+ Store(ObjectType(f903), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x145, 0, 0, Local0, c00d)
+ }
+
+ // Field Unit (IndexField)
+
+ Store(ObjectType(if90), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x146, 0, 0, Local0, c00d)
+ }
+ Store(ObjectType(if91), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x147, 0, 0, Local0, c00d)
+ }
+
+ // Field Unit (BankField)
+
+ Store(ObjectType(bn90), Local0)
+ if (LNotEqual(Local0, c00d)) {
+ err(ts, z114, 0x148, 0, 0, Local0, c00d)
+ }
+
+/*
+ * if (LNotEqual(f900, 0xd7)) {
+ * err(ts, z114, 0x149, 0, 0, f900, 0xd7)
+ * }
+ *
+ * if (LNotEqual(if90, 0xd7)) {
+ * err(ts, z114, 0x14a, 0, 0, if90, 0xd7)
+ * }
+ */
+}
+
+// Verifying result
+// arg0 - test name
+// arg1 - object
+// arg2 - expected type of object
+// arg3 - expected value of object
+// arg4 - index of checking (inside the file)
+Method(m1aa, 5)
+{
+ Store(0, Local7)
+
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, arg2)) {
+ err(arg0, z114, 8, 0, arg4, Local0, arg2)
+ Store(1, Local7)
+ } elseif (LLess(arg2, c00c)) {
+ if (LNotEqual(arg1, arg3)) {
+ err(arg0, z114, 9, 0, arg4, arg1, arg3)
+ Store(1, Local7)
+ }
+ }
+
+ Return (Local7)
+}
+
+// Check and restore the global data after writing into them
+
+Method(m1ab,, Serialized)
+{
+ Name(ts, "m1ab")
+
+ // Computational Data
+
+ m1aa(ts, i900, c009, c08a, 0x144)
+ m1aa(ts, i901, c009, c08a, 0x145)
+ m1aa(ts, s900, c009, c08a, 0x146)
+ m1aa(ts, s901, c009, c08a, 0x147)
+ m1aa(ts, b900, c009, c08a, 0x148)
+
+ // Package
+
+ m1aa(ts, p953, c009, c08a, 0x149)
+
+ // Not Computational Data
+
+ m1aa(ts, e900, c009, c08a, 0x14a)
+ m1aa(ts, mx90, c009, c08a, 0x14b)
+ m1aa(ts, d900, c009, c08a, 0x14c)
+
+ if (y508) {
+ m1aa(ts, tz90, c009, c08a, 0x14d)
+ }
+
+ m1aa(ts, pr90, c009, c08a, 0x14e)
+
+ if (y510) {
+ m1aa(ts, r900, c009, c08a, 0x14f)
+ }
+
+ m1aa(ts, pw90, c009, c08a, 0x150)
+
+ m1ac()
+
+ m1a6()
+}
+
+// Restore the global data after writing into them
+Method(m1ac)
+{
+
+ // Computational Data
+
+ CopyObject(i9Z0, i900)
+ CopyObject(i9Z1, i901)
+ CopyObject(s9Z0, s900)
+ CopyObject(s9Z1, s901)
+ CopyObject(b9Z0, b900)
+
+ // Package
+
+ CopyObject(p954, p953)
+
+ // Restore p955 Package
+ m1c6()
+
+ // Not Computational Data
+
+ CopyObject(e9Z0, e900)
+ CopyObject(mx91, mx90)
+ CopyObject(d9Z0, d900)
+
+ if (y508) {
+ CopyObject(tz91, tz90)
+ }
+
+ CopyObject(pr91, pr90)
+
+ if (y510) {
+ CopyObject(r9Z0, r900)
+ }
+
+ CopyObject(pw91, pw90)
+}
+
+// Verify p955-like Package
+// arg0 - Package
+// arg1 - check for non-computational data
+// arg2 - check Field Unit and Buffer Field
+// arg3 - elements of Package are RefOf_References
+Method(m1af, 4, Serialized)
+{
+ Name(ts, "m1af")
+
+ Store(Index(arg0, 0), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c009)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c009)
+ } else {
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 0)) {
+ err(ts, z113, 0x112, 0, 0, Local1, 0)
+ }
+ }
+
+ Store(Index(arg0, 1), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c009)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c009)
+ } else {
+ Store(DerefOf(Local0), Local1)
+ if (arg3) {
+ Store(DerefOf(Local1), Local2)
+ Store(Local2, Local1)
+ }
+ if (LNotEqual(Local1, 0xfe7cb391d65a0000)) {
+ err(ts, z114, 0x112, 0, 0, Local1, 0xfe7cb391d65a0000)
+ }
+ }
+
+ Store(Index(arg0, 2), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c00a)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c00a)
+ } else {
+ Store(DerefOf(Local0), Local1)
+ if (arg3) {
+ Store(DerefOf(Local1), Local2)
+ Store(Local2, Local1)
+ }
+ if (LNotEqual(Local1, "12340002")) {
+ err(ts, z114, 0x112, 0, 0, Local1, "12340002")
+ }
+ }
+
+ Store(Index(arg0, 3), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c00b)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c00a)
+ } else {
+ Store(DerefOf(Local0), Local1)
+ if (arg3) {
+ Store(DerefOf(Local1), Local2)
+ Store(Local2, Local1)
+ }
+ if (LNotEqual(Local1, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})) {
+ err(ts, z114, 0x112, 0, 0, Local1, Buffer() {0xb0,0xb1,0xb2,0xb3,0xb4})
+ }
+ }
+
+ Store(Index(arg0, 4), Local0)
+ m1aa(ts, Local0, c00c, 0, 0x13f)
+
+
+ // 5th element is a region field, which will be resolved to an integer
+
+ if (arg2) {
+ Store(Index(arg0, 5), Local0)
+ Store(ObjectType(Local0), Local1)
+ Store(DerefOf(Local0), Local7)
+
+ if (arg3) {
+ if (LNotEqual(Local1, c00d)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c00d)
+ } else {
+ Store(DerefOf(Local7), Local6)
+ Store(Local6, Local7)
+ }
+ }
+
+ Store(ObjectType(Local7), Local5)
+
+ if (LNotEqual(Local5, c009)) {
+ err(ts, z114, 0x112, 0, 0, Local5, c009)
+ } else {
+ if (LNotEqual(Local7, 0)) {
+ err(ts, z114, 0x112, 0, 0, Local7, 0)
+ }
+ }
+ }
+
+ if (arg1) {
+
+ Store(Index(arg0, 6), Local0)
+ m1aa(ts, Local0, c00e, 0, 0x13f)
+
+ Store(Index(arg0, 7), Local0)
+ m1aa(ts, Local0, c00f, 0, 0x13f)
+
+ Store(Index(arg0, 8), Local0)
+ m1aa(ts, Local0, c010, 0, 0x13f)
+
+ Store(Index(arg0, 9), Local0)
+ m1aa(ts, Local0, c011, 0, 0x13f)
+
+ Store(Index(arg0, 10), Local0)
+ m1aa(ts, Local0, c012, 0, 0x13f)
+
+ Store(Index(arg0, 11), Local0)
+ m1aa(ts, Local0, c013, 0, 0x13f)
+
+ Store(Index(arg0, 12), Local0)
+ m1aa(ts, Local0, c014, 0, 0x13f)
+
+ Store(Index(arg0, 13), Local0)
+ m1aa(ts, Local0, c015, 0, 0x13f)
+ }
+
+ // 14th element is a buffer field, which will be resolved to an integer
+
+ if (arg2) {
+ Store(Index(arg0, 14), Local0)
+ Store(ObjectType(Local0), Local1)
+ Store(DerefOf(Local0), Local7)
+
+ if (arg3) {
+ if (LNotEqual(Local1, c016)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c016)
+ } else {
+ Store(DerefOf(Local7), Local6)
+ Store(Local6, Local7)
+ }
+ }
+
+ Store(ObjectType(Local7), Local5)
+
+ if (LNotEqual(Local5, c009)) {
+ err(ts, z114, 0x112, 0, 0, Local5, c009)
+ } else {
+ if (LNotEqual(Local7, 0xb0)) {
+ err(ts, z114, 0x112, 0, 0, Local7, 0)
+ }
+ }
+ }
+
+ Store(Index(arg0, 15), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c009)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c009)
+ } else {
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 15)) {
+ err(ts, z114, 0x112, 0, 0, Local1, 15)
+ }
+ }
+
+ Store(Index(arg0, 16), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c009)) {
+ err(ts, z114, 0x112, 0, 0, Local1, c009)
+ } else {
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 16)) {
+ err(ts, z114, 0x112, 0, 0, Local1, 16)
+ }
+ }
+
+ Store(Index(arg0, 17), Local0)
+ Store(ObjectType(Local0), Local1)
+
+ if (LNotEqual(Local1, c008)) {
+ err(ts, z114, 0x115, 0, 0, Local1, c008)
+ }
+
+ // Evaluation of Method m936 takes place
+
+ if (LNotEqual(i905, 0xabcd001a)) {
+ err(ts, z114, 0x116, 0, 0, i905, 0xabcd001a)
+ }
+}
+
+// Restore p955 Package
+Method(m1c6)
+{
+ CopyObject(p956, p955)
+ Store(i9Z5, i905)
+}
+
+
diff --git a/tests/aslts/src/runtime/common/datastproc.asl b/tests/aslts/src/runtime/common/datastproc.asl
index 0f810a182..f453b1482 100644
--- a/tests/aslts/src/runtime/common/datastproc.asl
+++ b/tests/aslts/src/runtime/common/datastproc.asl
@@ -1,228 +1,228 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Methods applied to the Standard Data
- */
-
-Name(z115, 115)
-
-// Check original values
-
-// arg0 - test name
-// arg1 - Integer, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m380, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c009)) {
- err(arg0, z115, 0, arg2, arg3, Local0, c009)
- } elseif (LNotEqual(arg1, 0x77)) {
- err(arg0, z115, 1, arg2, arg3, arg1, 0x77)
- }
-}
-
-// arg0 - test name
-// arg1 - String, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m381, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c00a)) {
- err(arg0, z115, 2, arg2, arg3, Local0, c00a)
- } elseif (LNotEqual(arg1, "qwer0000")) {
- err(arg0, z115, 3, arg2, arg3, arg1, "qwer0000")
- }
-}
-
-// arg0 - test name
-// arg1 - Buffer, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m382, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c00b)) {
- err(arg0, z115, 4, arg2, arg3, Local0, c00b)
- } elseif (LNotEqual(arg1, Buffer(4) {1,0x77,3,4})) {
- err(arg0, z115, 5, arg2, arg3, arg1, Buffer(4) {1,0x77,3,4})
- }
-}
-
-// arg0 - test name
-// arg1 - Package, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m383, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c00c)) {
- err(arg0, z115, 6, arg2, arg3, Local0, c00c)
- } else {
- Index(arg1, 0, Local0)
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 5)) {
- err(arg0, z115, 7, arg2, arg3, Local1, 5)
- }
-
- Index(arg1, 1, Local0)
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 0x77)) {
- err(arg0, z115, 8, arg2, arg3, Local1, 0x77)
- }
-
- Index(arg1, 2, Local0)
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 7)) {
- err(arg0, z115, 9, arg2, arg3, Local1, 7)
- }
- }
-}
-
-// Check result of writing
-
-// arg0 - test name
-// arg1 - Integer, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m384, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c009)) {
- err(arg0, z115, 10, arg2, arg3, Local0, c009)
- } elseif (LNotEqual(arg1, 0x2b)) {
- err(arg0, z115, 11, arg2, arg3, arg1, 0x2b)
- }
-}
-
-// arg0 - test name
-// arg1 - String, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m385, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c00a)) {
- err(arg0, z115, 12, arg2, arg3, Local0, c00a)
- } elseif (LNotEqual(arg1, "q+er0000")) {
- err(arg0, z115, 13, arg2, arg3, arg1, "q+er0000")
- }
-}
-
-// arg0 - test name
-// arg1 - Buffer, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m386, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c00b)) {
- err(arg0, z115, 14, arg2, arg3, Local0, c00b)
- } elseif (LNotEqual(arg1, Buffer(4) {1,0x2b,3,4})) {
- err(arg0, z115, 15, arg2, arg3, arg1, Buffer(4) {1,0x2b,3,4})
- }
-}
-
-// arg0 - test name
-// arg1 - Package, original object
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m387, 4)
-{
- Store(ObjectType(arg1), Local0)
-
- if (LNotEqual(Local0, c00c)) {
- err(arg0, z115, 16, arg2, arg3, Local0, c00c)
- } else {
- Index(arg1, 0, Local0)
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 5)) {
- err(arg0, z115, 17, arg2, arg3, Local1, 5)
- }
-
- Index(arg1, 1, Local0)
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 0x2b)) {
- err(arg0, z115, 18, arg2, arg3, Local1, 0x2b)
- }
-
- Index(arg1, 2, Local0)
- Store(DerefOf(Local0), Local1)
- if (LNotEqual(Local1, 7)) {
- err(arg0, z115, 19, arg2, arg3, Local1, 7)
- }
- }
-}
-
-// arg0 - original object
-// arg1 - type of it
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m390, 4, Serialized)
-{
- Name(ts, "m390")
-
- if (LEqual(arg1, c009)) {
- m380(ts, arg0, arg2, arg3)
- } elseif (LEqual(arg1, c00a)) {
- m381(ts, arg0, arg2, arg3)
- } elseif (LEqual(arg1, c00b)) {
- m382(ts, arg0, arg2, arg3)
- } elseif (LEqual(arg1, c00c)) {
- m383(ts, arg0, arg2, arg3)
- }
-}
-
-// arg0 - original object
-// arg1 - type of it
-// arg2 - absolute index of file initiating the checking
-// arg3 - index of checking (inside the file)
-Method(m391, 4, Serialized)
-{
- Name(ts, "m391")
-
- if (LEqual(arg1, c009)) {
- m384(ts, arg0, arg2, arg3)
- } elseif (LEqual(arg1, c00a)) {
- m385(ts, arg0, arg2, arg3)
- } elseif (LEqual(arg1, c00b)) {
- m386(ts, arg0, arg2, arg3)
- } elseif (LEqual(arg1, c00c)) {
- m387(ts, arg0, arg2, arg3)
- }
-}
-
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Methods applied to the Standard Data
+ */
+
+Name(z115, 115)
+
+// Check original values
+
+// arg0 - test name
+// arg1 - Integer, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m380, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c009)) {
+ err(arg0, z115, 0, arg2, arg3, Local0, c009)
+ } elseif (LNotEqual(arg1, 0x77)) {
+ err(arg0, z115, 1, arg2, arg3, arg1, 0x77)
+ }
+}
+
+// arg0 - test name
+// arg1 - String, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m381, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c00a)) {
+ err(arg0, z115, 2, arg2, arg3, Local0, c00a)
+ } elseif (LNotEqual(arg1, "qwer0000")) {
+ err(arg0, z115, 3, arg2, arg3, arg1, "qwer0000")
+ }
+}
+
+// arg0 - test name
+// arg1 - Buffer, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m382, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c00b)) {
+ err(arg0, z115, 4, arg2, arg3, Local0, c00b)
+ } elseif (LNotEqual(arg1, Buffer(4) {1,0x77,3,4})) {
+ err(arg0, z115, 5, arg2, arg3, arg1, Buffer(4) {1,0x77,3,4})
+ }
+}
+
+// arg0 - test name
+// arg1 - Package, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m383, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c00c)) {
+ err(arg0, z115, 6, arg2, arg3, Local0, c00c)
+ } else {
+ Index(arg1, 0, Local0)
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 5)) {
+ err(arg0, z115, 7, arg2, arg3, Local1, 5)
+ }
+
+ Index(arg1, 1, Local0)
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 0x77)) {
+ err(arg0, z115, 8, arg2, arg3, Local1, 0x77)
+ }
+
+ Index(arg1, 2, Local0)
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 7)) {
+ err(arg0, z115, 9, arg2, arg3, Local1, 7)
+ }
+ }
+}
+
+// Check result of writing
+
+// arg0 - test name
+// arg1 - Integer, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m384, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c009)) {
+ err(arg0, z115, 10, arg2, arg3, Local0, c009)
+ } elseif (LNotEqual(arg1, 0x2b)) {
+ err(arg0, z115, 11, arg2, arg3, arg1, 0x2b)
+ }
+}
+
+// arg0 - test name
+// arg1 - String, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m385, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c00a)) {
+ err(arg0, z115, 12, arg2, arg3, Local0, c00a)
+ } elseif (LNotEqual(arg1, "q+er0000")) {
+ err(arg0, z115, 13, arg2, arg3, arg1, "q+er0000")
+ }
+}
+
+// arg0 - test name
+// arg1 - Buffer, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m386, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c00b)) {
+ err(arg0, z115, 14, arg2, arg3, Local0, c00b)
+ } elseif (LNotEqual(arg1, Buffer(4) {1,0x2b,3,4})) {
+ err(arg0, z115, 15, arg2, arg3, arg1, Buffer(4) {1,0x2b,3,4})
+ }
+}
+
+// arg0 - test name
+// arg1 - Package, original object
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m387, 4)
+{
+ Store(ObjectType(arg1), Local0)
+
+ if (LNotEqual(Local0, c00c)) {
+ err(arg0, z115, 16, arg2, arg3, Local0, c00c)
+ } else {
+ Index(arg1, 0, Local0)
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 5)) {
+ err(arg0, z115, 17, arg2, arg3, Local1, 5)
+ }
+
+ Index(arg1, 1, Local0)
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 0x2b)) {
+ err(arg0, z115, 18, arg2, arg3, Local1, 0x2b)
+ }
+
+ Index(arg1, 2, Local0)
+ Store(DerefOf(Local0), Local1)
+ if (LNotEqual(Local1, 7)) {
+ err(arg0, z115, 19, arg2, arg3, Local1, 7)
+ }
+ }
+}
+
+// arg0 - original object
+// arg1 - type of it
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m390, 4, Serialized)
+{
+ Name(ts, "m390")
+
+ if (LEqual(arg1, c009)) {
+ m380(ts, arg0, arg2, arg3)
+ } elseif (LEqual(arg1, c00a)) {
+ m381(ts, arg0, arg2, arg3)
+ } elseif (LEqual(arg1, c00b)) {
+ m382(ts, arg0, arg2, arg3)
+ } elseif (LEqual(arg1, c00c)) {
+ m383(ts, arg0, arg2, arg3)
+ }
+}
+
+// arg0 - original object
+// arg1 - type of it
+// arg2 - absolute index of file initiating the checking
+// arg3 - index of checking (inside the file)
+Method(m391, 4, Serialized)
+{
+ Name(ts, "m391")
+
+ if (LEqual(arg1, c009)) {
+ m384(ts, arg0, arg2, arg3)
+ } elseif (LEqual(arg1, c00a)) {
+ m385(ts, arg0, arg2, arg3)
+ } elseif (LEqual(arg1, c00b)) {
+ m386(ts, arg0, arg2, arg3)
+ } elseif (LEqual(arg1, c00c)) {
+ m387(ts, arg0, arg2, arg3)
+ }
+}
+
diff --git a/tests/aslts/src/runtime/common/mx_objects.asl b/tests/aslts/src/runtime/common/mx_objects.asl
index 54b2f7bed..986121323 100644
--- a/tests/aslts/src/runtime/common/mx_objects.asl
+++ b/tests/aslts/src/runtime/common/mx_objects.asl
@@ -1,1699 +1,1699 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Mutex
- *
- * declarations for common use
- */
-
-Name(max0, 16) // Number of different Levels of mutexes
-Name(hlmx, 15) // Highest Level of mutex
-Name(max1, 18) // Max number of mutexes of the same level
-Name(unim, 18) // Undefined index of mutex
-
-Name(max2, Buffer(max0) { // Numbers of mutexes of the relevant level
- 18, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4})
-
-/*
- * GLLL - Level of mutex for Global Lock.
- * GLIX - Index of mutex for Global Lock.
- *
- * The Global Lock in tests is represented as mutex of 0-th Level 1-th Index.
- */
-Name(GLLL, 0) // Level of mutex for GL
-Name(GLIX, 1) // Index of mutex for GL
-/*
- * Flag of Global lock.
- * If non-zero then actually the Global lock is used in tests
- * instead of the usual mutex T001 (of level 0 index 1).
- */
-Name(GL00, 0)
-
-Name(min0, 4) // Minimal number of mutexes of the same level in groups below
-Name(min1, 5) // Minimal number of threads corresponding to min0
-
-/*
- * See TOV0 and TOV0 below,
- * all other opcodes of TimeOutValue correspond to 0xffff.
- */
-Name(TOV0, 5) // opcode of TimeOutValue corresponding to 0 milliseconds
-Name(TOV1, 6) // opcode of TimeOutValue corresponding to 1 milliseconds
-Name(TOVF, 0) // opcode of TimeOutValue corresponding to 0xffff (endless)
-
-
-/* Level 0 */
-Mutex(T000, 0)
-Mutex(T001, 0) // used in case when the flag of the Global Lock (GL00) is zero
-Mutex(T002, 0)
-Mutex(T003, 0)
-Mutex(T004, 0)
-Mutex(T005, 0)
-Mutex(T006, 0)
-Mutex(T007, 0)
-Mutex(T008, 0)
-Mutex(T009, 0)
-Mutex(T00a, 0)
-Mutex(T00b, 0)
-Mutex(T00c, 0)
-Mutex(T00d, 0)
-Mutex(T00e, 0)
-Mutex(T00f, 0)
-Mutex(T010, 0)
-Mutex(T011, 0)
-
-/* Level 1 */
-Mutex(T100, 1)
-Mutex(T101, 1)
-Mutex(T102, 1)
-Mutex(T103, 1)
-
-/* Level 2 */
-Mutex(T200, 2)
-Mutex(T201, 2)
-Mutex(T202, 2)
-Mutex(T203, 2)
-
-/* Level 3 */
-Mutex(T300, 3)
-Mutex(T301, 3)
-Mutex(T302, 3)
-Mutex(T303, 3)
-
-/* Level 4 */
-Mutex(T400, 4)
-Mutex(T401, 4)
-Mutex(T402, 4)
-Mutex(T403, 4)
-
-/* Level 5 */
-Mutex(T500, 5)
-Mutex(T501, 5)
-Mutex(T502, 5)
-Mutex(T503, 5)
-
-/* Level 6 */
-Mutex(T600, 6)
-Mutex(T601, 6)
-Mutex(T602, 6)
-Mutex(T603, 6)
-
-/* Level 7 */
-Mutex(T700, 7)
-Mutex(T701, 7)
-Mutex(T702, 7)
-Mutex(T703, 7)
-
-/* Level 8 */
-Mutex(T800, 8)
-Mutex(T801, 8)
-Mutex(T802, 8)
-Mutex(T803, 8)
-Mutex(T804, 8) // used in functional/synchronization
-Mutex(T805, 8) // used in functional/synchronization
-
-/* Level 9 */
-Mutex(T900, 9)
-Mutex(T901, 9)
-Mutex(T902, 9)
-Mutex(T903, 9)
-
-/* Level 10 */
-Mutex(Ta00, 0x0a)
-Mutex(Ta01, 0x0a)
-Mutex(Ta02, 0x0a)
-Mutex(Ta03, 0x0a)
-
-/* Level 11 */
-Mutex(Tb00, 0x0b)
-Mutex(Tb01, 0x0b)
-Mutex(Tb02, 0x0b)
-Mutex(Tb03, 0x0b)
-
-/* Level 12 */
-Mutex(Tc00, 0x0c)
-Mutex(Tc01, 0x0c)
-Mutex(Tc02, 0x0c)
-Mutex(Tc03, 0x0c)
-
-/* Level 13 */
-Mutex(Td00, 0x0d)
-Mutex(Td01, 0x0d)
-Mutex(Td02, 0x0d)
-Mutex(Td03, 0x0d)
-
-/* Level 14 */
-Mutex(Te00, 0x0e)
-Mutex(Te01, 0x0e)
-Mutex(Te02, 0x0e)
-Mutex(Te03, 0x0e)
-
-/* Level 15 */
-Mutex(Tf00, 0x0f)
-Mutex(Tf01, 0x0f)
-Mutex(Tf02, 0x0f)
-Mutex(Tf03, 0x0f)
-
-
-/*
- *
- * Methods to manage mutexes declared above
- *
- */
-
-
-/*
- * Set flag of Global lock
- *
- * arg0 - new value of flag of GL
- *
- * Return:
- * old value of flag of GL
- */
-Method(m078, 1)
-{
- Store(GL00, Local7)
- Store(arg0, GL00)
-
- return (Local7)
-}
-
-/*
- * Acquire mutex of level 0
- *
- * arg0 - Index of mutex
- * arg1 - opcode of exception to be generated or zero
- * arg2 - opcode of TimeOutValue (unfortunately, ACPA doesn't allow TermArg there)
- * 0 - 0
- * 1 - 1
- * otherwise - oxffff
- */
-Method(ma00, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T000, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T000, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T000, 1), Local0)
- } else {
- Store(Acquire(T000, 0xffff), Local0)
- }
- }
- Case (1) {
- if (GL00) {
- if (arg1) {
- Acquire(\_GL, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(\_GL, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(\_GL, 1), Local0)
- } else {
- Store(Acquire(\_GL, 0xffff), Local0)
- }
- } else {
- if (arg1) {
- Acquire(T001, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T001, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T001, 1), Local0)
- } else {
- Store(Acquire(T001, 0xffff), Local0)
- }
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T002, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T002, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T002, 1), Local0)
- } else {
- Store(Acquire(T002, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T003, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T003, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T003, 1), Local0)
- } else {
- Store(Acquire(T003, 0xffff), Local0)
- }
- }
- Case (4) {
- if (arg1) {
- Acquire(T004, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T004, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T004, 1), Local0)
- } else {
- Store(Acquire(T004, 0xffff), Local0)
- }
- }
- Case (5) {
- if (arg1) {
- Acquire(T005, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T005, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T005, 1), Local0)
- } else {
- Store(Acquire(T005, 0xffff), Local0)
- }
- }
- Case (6) {
- if (arg1) {
- Acquire(T006, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T006, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T006, 1), Local0)
- } else {
- Store(Acquire(T006, 0xffff), Local0)
- }
- }
- Case (7) {
- if (arg1) {
- Acquire(T007, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T007, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T007, 1), Local0)
- } else {
- Store(Acquire(T007, 0xffff), Local0)
- }
- }
- Case (8) {
- if (arg1) {
- Acquire(T008, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T008, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T008, 1), Local0)
- } else {
- Store(Acquire(T008, 0xffff), Local0)
- }
- }
- Case (9) {
- if (arg1) {
- Acquire(T009, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T009, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T009, 1), Local0)
- } else {
- Store(Acquire(T009, 0xffff), Local0)
- }
- }
- Case (10) {
- if (arg1) {
- Acquire(T00a, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T00a, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T00a, 1), Local0)
- } else {
- Store(Acquire(T00a, 0xffff), Local0)
- }
- }
- Case (11) {
- if (arg1) {
- Acquire(T00b, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T00b, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T00b, 1), Local0)
- } else {
- Store(Acquire(T00b, 0xffff), Local0)
- }
- }
- Case (12) {
- if (arg1) {
- Acquire(T00c, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T00c, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T00c, 1), Local0)
- } else {
- Store(Acquire(T00c, 0xffff), Local0)
- }
- }
- Case (13) {
- if (arg1) {
- Acquire(T00d, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T00d, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T00d, 1), Local0)
- } else {
- Store(Acquire(T00d, 0xffff), Local0)
- }
- }
- Case (14) {
- if (arg1) {
- Acquire(T00e, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T00e, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T00e, 1), Local0)
- } else {
- Store(Acquire(T00e, 0xffff), Local0)
- }
- }
- Case (15) {
- if (arg1) {
- Acquire(T00f, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T00f, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T00f, 1), Local0)
- } else {
- Store(Acquire(T00f, 0xffff), Local0)
- }
- }
- Case (16) {
- if (arg1) {
- Acquire(T010, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T010, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T010, 1), Local0)
- } else {
- Store(Acquire(T010, 0xffff), Local0)
- }
- }
- Case (17) {
- if (arg1) {
- Acquire(T011, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T011, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T011, 1), Local0)
- } else {
- Store(Acquire(T011, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 1
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma01, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T100, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T100, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T100, 1), Local0)
- } else {
- Store(Acquire(T100, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T101, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T101, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T101, 1), Local0)
- } else {
- Store(Acquire(T101, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T102, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T102, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T102, 1), Local0)
- } else {
- Store(Acquire(T102, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T103, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T103, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T103, 1), Local0)
- } else {
- Store(Acquire(T103, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 2
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma02, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T200, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T200, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T200, 1), Local0)
- } else {
- Store(Acquire(T200, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T201, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T201, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T201, 1), Local0)
- } else {
- Store(Acquire(T201, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T202, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T202, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T202, 1), Local0)
- } else {
- Store(Acquire(T202, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T203, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T203, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T203, 1), Local0)
- } else {
- Store(Acquire(T203, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 3
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma03, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T300, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T300, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T300, 1), Local0)
- } else {
- Store(Acquire(T300, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T301, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T301, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T301, 1), Local0)
- } else {
- Store(Acquire(T301, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T302, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T302, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T302, 1), Local0)
- } else {
- Store(Acquire(T302, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T303, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T303, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T303, 1), Local0)
- } else {
- Store(Acquire(T303, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 4
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma04, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T400, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T400, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T400, 1), Local0)
- } else {
- Store(Acquire(T400, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T401, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T401, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T401, 1), Local0)
- } else {
- Store(Acquire(T401, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T402, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T402, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T402, 1), Local0)
- } else {
- Store(Acquire(T402, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T403, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T403, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T403, 1), Local0)
- } else {
- Store(Acquire(T403, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 5
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma05, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T500, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T500, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T500, 1), Local0)
- } else {
- Store(Acquire(T500, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T501, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T501, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T501, 1), Local0)
- } else {
- Store(Acquire(T501, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T502, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T502, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T502, 1), Local0)
- } else {
- Store(Acquire(T502, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T503, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T503, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T503, 1), Local0)
- } else {
- Store(Acquire(T503, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 6
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma06, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T600, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T600, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T600, 1), Local0)
- } else {
- Store(Acquire(T600, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T601, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T601, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T601, 1), Local0)
- } else {
- Store(Acquire(T601, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T602, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T602, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T602, 1), Local0)
- } else {
- Store(Acquire(T602, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T603, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T603, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T603, 1), Local0)
- } else {
- Store(Acquire(T603, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 7
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma07, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T700, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T700, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T700, 1), Local0)
- } else {
- Store(Acquire(T700, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T701, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T701, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T701, 1), Local0)
- } else {
- Store(Acquire(T701, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T702, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T702, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T702, 1), Local0)
- } else {
- Store(Acquire(T702, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T703, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T703, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T703, 1), Local0)
- } else {
- Store(Acquire(T703, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 8
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma08, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T800, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T800, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T800, 1), Local0)
- } else {
- Store(Acquire(T800, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T801, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T801, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T801, 1), Local0)
- } else {
- Store(Acquire(T801, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T802, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T802, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T802, 1), Local0)
- } else {
- Store(Acquire(T802, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T803, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T803, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T803, 1), Local0)
- } else {
- Store(Acquire(T803, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 9
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma09, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(T900, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T900, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T900, 1), Local0)
- } else {
- Store(Acquire(T900, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(T901, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T901, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T901, 1), Local0)
- } else {
- Store(Acquire(T901, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(T902, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T902, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T902, 1), Local0)
- } else {
- Store(Acquire(T902, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(T903, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(T903, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(T903, 1), Local0)
- } else {
- Store(Acquire(T903, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 10
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma0a, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(Ta00, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Ta00, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Ta00, 1), Local0)
- } else {
- Store(Acquire(Ta00, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(Ta01, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Ta01, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Ta01, 1), Local0)
- } else {
- Store(Acquire(Ta01, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(Ta02, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Ta02, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Ta02, 1), Local0)
- } else {
- Store(Acquire(Ta02, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(Ta03, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Ta03, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Ta03, 1), Local0)
- } else {
- Store(Acquire(Ta03, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 11
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma0b, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(Tb00, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tb00, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tb00, 1), Local0)
- } else {
- Store(Acquire(Tb00, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(Tb01, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tb01, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tb01, 1), Local0)
- } else {
- Store(Acquire(Tb01, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(Tb02, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tb02, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tb02, 1), Local0)
- } else {
- Store(Acquire(Tb02, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(Tb03, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tb03, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tb03, 1), Local0)
- } else {
- Store(Acquire(Tb03, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 12
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma0c, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(Tc00, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tc00, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tc00, 1), Local0)
- } else {
- Store(Acquire(Tc00, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(Tc01, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tc01, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tc01, 1), Local0)
- } else {
- Store(Acquire(Tc01, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(Tc02, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tc02, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tc02, 1), Local0)
- } else {
- Store(Acquire(Tc02, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(Tc03, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tc03, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tc03, 1), Local0)
- } else {
- Store(Acquire(Tc03, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 13
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma0d, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(Td00, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Td00, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Td00, 1), Local0)
- } else {
- Store(Acquire(Td00, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(Td01, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Td01, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Td01, 1), Local0)
- } else {
- Store(Acquire(Td01, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(Td02, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Td02, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Td02, 1), Local0)
- } else {
- Store(Acquire(Td02, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(Td03, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Td03, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Td03, 1), Local0)
- } else {
- Store(Acquire(Td03, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 14
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma0e, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(Te00, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Te00, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Te00, 1), Local0)
- } else {
- Store(Acquire(Te00, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(Te01, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Te01, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Te01, 1), Local0)
- } else {
- Store(Acquire(Te01, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(Te02, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Te02, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Te02, 1), Local0)
- } else {
- Store(Acquire(Te02, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(Te03, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Te03, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Te03, 1), Local0)
- } else {
- Store(Acquire(Te03, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Acquire mutex of level 15
- * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
- */
-Method(ma0f, 3, Serialized)
-{
- Store(1, Local0)
-
- Switch (ToInteger (arg0)) {
- Case (0) {
- if (arg1) {
- Acquire(Tf00, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tf00, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tf00, 1), Local0)
- } else {
- Store(Acquire(Tf00, 0xffff), Local0)
- }
- }
- Case (1) {
- if (arg1) {
- Acquire(Tf01, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tf01, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tf01, 1), Local0)
- } else {
- Store(Acquire(Tf01, 0xffff), Local0)
- }
- }
- Case (2) {
- if (arg1) {
- Acquire(Tf02, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tf02, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tf02, 1), Local0)
- } else {
- Store(Acquire(Tf02, 0xffff), Local0)
- }
- }
- Case (3) {
- if (arg1) {
- Acquire(Tf03, 0xffff)
- } elseif (LEqual(arg2, TOV0)) {
- Store(Acquire(Tf03, 0), Local0)
- } elseif (LEqual(arg2, TOV1)) {
- Store(Acquire(Tf03, 1), Local0)
- } else {
- Store(Acquire(Tf03, 0xffff), Local0)
- }
- }
- }
- return (Local0)
-}
-
-/*
- * Release mutex of level 0
- *
- * arg0 - Index of mutex
- */
-Method(ma10, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T000)
- }
- Case (1) {
- if (GL00) {
- Release(\_GL)
- } else {
- Release(T001)
- }
- }
- Case (2) {
- Release(T002)
- }
- Case (3) {
- Release(T003)
- }
- Case (4) {
- Release(T004)
- }
- Case (5) {
- Release(T005)
- }
- Case (6) {
- Release(T006)
- }
- Case (7) {
- Release(T007)
- }
- Case (8) {
- Release(T008)
- }
- Case (9) {
- Release(T009)
- }
- Case (10) {
- Release(T00a)
- }
- Case (11) {
- Release(T00b)
- }
- Case (12) {
- Release(T00c)
- }
- Case (13) {
- Release(T00d)
- }
- Case (14) {
- Release(T00e)
- }
- Case (15) {
- Release(T00f)
- }
- Case (16) {
- Release(T010)
- }
- Case (17) {
- Release(T011)
- }
- }
-}
-
-/*
- * Release mutex of level 1 (Index of mux)
- */
-Method(ma11, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T100)
- }
- Case (1) {
- Release(T101)
- }
- Case (2) {
- Release(T102)
- }
- Case (3) {
- Release(T103)
- }
- }
-}
-
-/*
- * Release mutex of level 2 (Index of mux)
- */
-Method(ma12, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T200)
- }
- Case (1) {
- Release(T201)
- }
- Case (2) {
- Release(T202)
- }
- Case (3) {
- Release(T203)
- }
- }
-}
-
-/*
- * Release mutex of level 3 (Index of mux)
- */
-Method(ma13, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T300)
- }
- Case (1) {
- Release(T301)
- }
- Case (2) {
- Release(T302)
- }
- Case (3) {
- Release(T303)
- }
- }
-}
-
-/*
- * Release mutex of level 4 (Index of mux)
- */
-Method(ma14, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T400)
- }
- Case (1) {
- Release(T401)
- }
- Case (2) {
- Release(T402)
- }
- Case (3) {
- Release(T403)
- }
- }
-}
-
-/*
- * Release mutex of level 5 (Index of mux)
- */
-Method(ma15, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T500)
- }
- Case (1) {
- Release(T501)
- }
- Case (2) {
- Release(T502)
- }
- Case (3) {
- Release(T503)
- }
- }
-}
-
-/*
- * Release mutex of level 6 (Index of mux)
- */
-Method(ma16, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T600)
- }
- Case (1) {
- Release(T601)
- }
- Case (2) {
- Release(T602)
- }
- Case (3) {
- Release(T603)
- }
- }
-}
-
-/*
- * Release mutex of level 7 (Index of mux)
- */
-Method(ma17, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T700)
- }
- Case (1) {
- Release(T701)
- }
- Case (2) {
- Release(T702)
- }
- Case (3) {
- Release(T703)
- }
- }
-}
-
-/*
- * Release mutex of level 8 (Index of mux)
- */
-Method(ma18, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T800)
- }
- Case (1) {
- Release(T801)
- }
- Case (2) {
- Release(T802)
- }
- Case (3) {
- Release(T803)
- }
- }
-}
-
-/*
- * Release mutex of level 9 (Index of mux)
- */
-Method(ma19, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(T900)
- }
- Case (1) {
- Release(T901)
- }
- Case (2) {
- Release(T902)
- }
- Case (3) {
- Release(T903)
- }
- }
-}
-
-/*
- * Release mutex of level 10 (Index of mux)
- */
-Method(ma1a, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(Ta00)
- }
- Case (1) {
- Release(Ta01)
- }
- Case (2) {
- Release(Ta02)
- }
- Case (3) {
- Release(Ta03)
- }
- }
-}
-
-/*
- * Release mutex of level 11 (Index of mux)
- */
-Method(ma1b, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(Tb00)
- }
- Case (1) {
- Release(Tb01)
- }
- Case (2) {
- Release(Tb02)
- }
- Case (3) {
- Release(Tb03)
- }
- }
-}
-
-/*
- * Release mutex of level 12 (Index of mux)
- */
-Method(ma1c, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(Tc00)
- }
- Case (1) {
- Release(Tc01)
- }
- Case (2) {
- Release(Tc02)
- }
- Case (3) {
- Release(Tc03)
- }
- }
-}
-
-/*
- * Release mutex of level 13 (Index of mux)
- */
-Method(ma1d, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(Td00)
- }
- Case (1) {
- Release(Td01)
- }
- Case (2) {
- Release(Td02)
- }
- Case (3) {
- Release(Td03)
- }
- }
-}
-
-/*
- * Release mutex of level 14 (Index of mux)
- */
-Method(ma1e, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(Te00)
- }
- Case (1) {
- Release(Te01)
- }
- Case (2) {
- Release(Te02)
- }
- Case (3) {
- Release(Te03)
- }
- }
-}
-
-/*
- * Release mutex of level 15 (Index of mux)
- */
-Method(ma1f, 1, Serialized)
-{
- Switch (ToInteger (arg0)) {
- Case (0) {
- Release(Tf00)
- }
- Case (1) {
- Release(Tf01)
- }
- Case (2) {
- Release(Tf02)
- }
- Case (3) {
- Release(Tf03)
- }
- }
-}
-
-/*
- * Get name of mutex
- *
- * arg0 - string
- * arg1 - Level of mutex
- * arg2 - Index of mutex
- */
-Method(m21e, 3)
-{
- Concatenate(arg0, "Level ", Local0)
- Concatenate(Local0, arg1, Local1)
- Concatenate(Local1, ", Index ", Local0)
- Concatenate(Local0, arg2, Local1)
-
- if (LEqual(arg1, GLLL)) {
- if (LEqual(arg2, GLIX)) {
- if (GL00) {
- Concatenate(Local1, " (Global lock)", Local1)
- }
- }
- }
-
- return (Local1)
-}
-
-
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Mutex
+ *
+ * declarations for common use
+ */
+
+Name(max0, 16) // Number of different Levels of mutexes
+Name(hlmx, 15) // Highest Level of mutex
+Name(max1, 18) // Max number of mutexes of the same level
+Name(unim, 18) // Undefined index of mutex
+
+Name(max2, Buffer(max0) { // Numbers of mutexes of the relevant level
+ 18, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4})
+
+/*
+ * GLLL - Level of mutex for Global Lock.
+ * GLIX - Index of mutex for Global Lock.
+ *
+ * The Global Lock in tests is represented as mutex of 0-th Level 1-th Index.
+ */
+Name(GLLL, 0) // Level of mutex for GL
+Name(GLIX, 1) // Index of mutex for GL
+/*
+ * Flag of Global lock.
+ * If non-zero then actually the Global lock is used in tests
+ * instead of the usual mutex T001 (of level 0 index 1).
+ */
+Name(GL00, 0)
+
+Name(min0, 4) // Minimal number of mutexes of the same level in groups below
+Name(min1, 5) // Minimal number of threads corresponding to min0
+
+/*
+ * See TOV0 and TOV0 below,
+ * all other opcodes of TimeOutValue correspond to 0xffff.
+ */
+Name(TOV0, 5) // opcode of TimeOutValue corresponding to 0 milliseconds
+Name(TOV1, 6) // opcode of TimeOutValue corresponding to 1 milliseconds
+Name(TOVF, 0) // opcode of TimeOutValue corresponding to 0xffff (endless)
+
+
+/* Level 0 */
+Mutex(T000, 0)
+Mutex(T001, 0) // used in case when the flag of the Global Lock (GL00) is zero
+Mutex(T002, 0)
+Mutex(T003, 0)
+Mutex(T004, 0)
+Mutex(T005, 0)
+Mutex(T006, 0)
+Mutex(T007, 0)
+Mutex(T008, 0)
+Mutex(T009, 0)
+Mutex(T00a, 0)
+Mutex(T00b, 0)
+Mutex(T00c, 0)
+Mutex(T00d, 0)
+Mutex(T00e, 0)
+Mutex(T00f, 0)
+Mutex(T010, 0)
+Mutex(T011, 0)
+
+/* Level 1 */
+Mutex(T100, 1)
+Mutex(T101, 1)
+Mutex(T102, 1)
+Mutex(T103, 1)
+
+/* Level 2 */
+Mutex(T200, 2)
+Mutex(T201, 2)
+Mutex(T202, 2)
+Mutex(T203, 2)
+
+/* Level 3 */
+Mutex(T300, 3)
+Mutex(T301, 3)
+Mutex(T302, 3)
+Mutex(T303, 3)
+
+/* Level 4 */
+Mutex(T400, 4)
+Mutex(T401, 4)
+Mutex(T402, 4)
+Mutex(T403, 4)
+
+/* Level 5 */
+Mutex(T500, 5)
+Mutex(T501, 5)
+Mutex(T502, 5)
+Mutex(T503, 5)
+
+/* Level 6 */
+Mutex(T600, 6)
+Mutex(T601, 6)
+Mutex(T602, 6)
+Mutex(T603, 6)
+
+/* Level 7 */
+Mutex(T700, 7)
+Mutex(T701, 7)
+Mutex(T702, 7)
+Mutex(T703, 7)
+
+/* Level 8 */
+Mutex(T800, 8)
+Mutex(T801, 8)
+Mutex(T802, 8)
+Mutex(T803, 8)
+Mutex(T804, 8) // used in functional/synchronization
+Mutex(T805, 8) // used in functional/synchronization
+
+/* Level 9 */
+Mutex(T900, 9)
+Mutex(T901, 9)
+Mutex(T902, 9)
+Mutex(T903, 9)
+
+/* Level 10 */
+Mutex(Ta00, 0x0a)
+Mutex(Ta01, 0x0a)
+Mutex(Ta02, 0x0a)
+Mutex(Ta03, 0x0a)
+
+/* Level 11 */
+Mutex(Tb00, 0x0b)
+Mutex(Tb01, 0x0b)
+Mutex(Tb02, 0x0b)
+Mutex(Tb03, 0x0b)
+
+/* Level 12 */
+Mutex(Tc00, 0x0c)
+Mutex(Tc01, 0x0c)
+Mutex(Tc02, 0x0c)
+Mutex(Tc03, 0x0c)
+
+/* Level 13 */
+Mutex(Td00, 0x0d)
+Mutex(Td01, 0x0d)
+Mutex(Td02, 0x0d)
+Mutex(Td03, 0x0d)
+
+/* Level 14 */
+Mutex(Te00, 0x0e)
+Mutex(Te01, 0x0e)
+Mutex(Te02, 0x0e)
+Mutex(Te03, 0x0e)
+
+/* Level 15 */
+Mutex(Tf00, 0x0f)
+Mutex(Tf01, 0x0f)
+Mutex(Tf02, 0x0f)
+Mutex(Tf03, 0x0f)
+
+
+/*
+ *
+ * Methods to manage mutexes declared above
+ *
+ */
+
+
+/*
+ * Set flag of Global lock
+ *
+ * arg0 - new value of flag of GL
+ *
+ * Return:
+ * old value of flag of GL
+ */
+Method(m078, 1)
+{
+ Store(GL00, Local7)
+ Store(arg0, GL00)
+
+ return (Local7)
+}
+
+/*
+ * Acquire mutex of level 0
+ *
+ * arg0 - Index of mutex
+ * arg1 - opcode of exception to be generated or zero
+ * arg2 - opcode of TimeOutValue (unfortunately, ACPA doesn't allow TermArg there)
+ * 0 - 0
+ * 1 - 1
+ * otherwise - oxffff
+ */
+Method(ma00, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T000, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T000, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T000, 1), Local0)
+ } else {
+ Store(Acquire(T000, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (GL00) {
+ if (arg1) {
+ Acquire(\_GL, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(\_GL, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(\_GL, 1), Local0)
+ } else {
+ Store(Acquire(\_GL, 0xffff), Local0)
+ }
+ } else {
+ if (arg1) {
+ Acquire(T001, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T001, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T001, 1), Local0)
+ } else {
+ Store(Acquire(T001, 0xffff), Local0)
+ }
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T002, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T002, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T002, 1), Local0)
+ } else {
+ Store(Acquire(T002, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T003, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T003, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T003, 1), Local0)
+ } else {
+ Store(Acquire(T003, 0xffff), Local0)
+ }
+ }
+ Case (4) {
+ if (arg1) {
+ Acquire(T004, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T004, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T004, 1), Local0)
+ } else {
+ Store(Acquire(T004, 0xffff), Local0)
+ }
+ }
+ Case (5) {
+ if (arg1) {
+ Acquire(T005, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T005, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T005, 1), Local0)
+ } else {
+ Store(Acquire(T005, 0xffff), Local0)
+ }
+ }
+ Case (6) {
+ if (arg1) {
+ Acquire(T006, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T006, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T006, 1), Local0)
+ } else {
+ Store(Acquire(T006, 0xffff), Local0)
+ }
+ }
+ Case (7) {
+ if (arg1) {
+ Acquire(T007, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T007, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T007, 1), Local0)
+ } else {
+ Store(Acquire(T007, 0xffff), Local0)
+ }
+ }
+ Case (8) {
+ if (arg1) {
+ Acquire(T008, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T008, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T008, 1), Local0)
+ } else {
+ Store(Acquire(T008, 0xffff), Local0)
+ }
+ }
+ Case (9) {
+ if (arg1) {
+ Acquire(T009, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T009, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T009, 1), Local0)
+ } else {
+ Store(Acquire(T009, 0xffff), Local0)
+ }
+ }
+ Case (10) {
+ if (arg1) {
+ Acquire(T00a, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T00a, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T00a, 1), Local0)
+ } else {
+ Store(Acquire(T00a, 0xffff), Local0)
+ }
+ }
+ Case (11) {
+ if (arg1) {
+ Acquire(T00b, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T00b, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T00b, 1), Local0)
+ } else {
+ Store(Acquire(T00b, 0xffff), Local0)
+ }
+ }
+ Case (12) {
+ if (arg1) {
+ Acquire(T00c, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T00c, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T00c, 1), Local0)
+ } else {
+ Store(Acquire(T00c, 0xffff), Local0)
+ }
+ }
+ Case (13) {
+ if (arg1) {
+ Acquire(T00d, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T00d, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T00d, 1), Local0)
+ } else {
+ Store(Acquire(T00d, 0xffff), Local0)
+ }
+ }
+ Case (14) {
+ if (arg1) {
+ Acquire(T00e, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T00e, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T00e, 1), Local0)
+ } else {
+ Store(Acquire(T00e, 0xffff), Local0)
+ }
+ }
+ Case (15) {
+ if (arg1) {
+ Acquire(T00f, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T00f, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T00f, 1), Local0)
+ } else {
+ Store(Acquire(T00f, 0xffff), Local0)
+ }
+ }
+ Case (16) {
+ if (arg1) {
+ Acquire(T010, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T010, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T010, 1), Local0)
+ } else {
+ Store(Acquire(T010, 0xffff), Local0)
+ }
+ }
+ Case (17) {
+ if (arg1) {
+ Acquire(T011, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T011, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T011, 1), Local0)
+ } else {
+ Store(Acquire(T011, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 1
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma01, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T100, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T100, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T100, 1), Local0)
+ } else {
+ Store(Acquire(T100, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T101, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T101, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T101, 1), Local0)
+ } else {
+ Store(Acquire(T101, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T102, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T102, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T102, 1), Local0)
+ } else {
+ Store(Acquire(T102, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T103, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T103, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T103, 1), Local0)
+ } else {
+ Store(Acquire(T103, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 2
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma02, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T200, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T200, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T200, 1), Local0)
+ } else {
+ Store(Acquire(T200, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T201, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T201, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T201, 1), Local0)
+ } else {
+ Store(Acquire(T201, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T202, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T202, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T202, 1), Local0)
+ } else {
+ Store(Acquire(T202, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T203, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T203, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T203, 1), Local0)
+ } else {
+ Store(Acquire(T203, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 3
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma03, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T300, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T300, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T300, 1), Local0)
+ } else {
+ Store(Acquire(T300, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T301, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T301, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T301, 1), Local0)
+ } else {
+ Store(Acquire(T301, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T302, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T302, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T302, 1), Local0)
+ } else {
+ Store(Acquire(T302, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T303, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T303, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T303, 1), Local0)
+ } else {
+ Store(Acquire(T303, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 4
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma04, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T400, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T400, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T400, 1), Local0)
+ } else {
+ Store(Acquire(T400, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T401, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T401, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T401, 1), Local0)
+ } else {
+ Store(Acquire(T401, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T402, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T402, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T402, 1), Local0)
+ } else {
+ Store(Acquire(T402, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T403, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T403, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T403, 1), Local0)
+ } else {
+ Store(Acquire(T403, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 5
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma05, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T500, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T500, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T500, 1), Local0)
+ } else {
+ Store(Acquire(T500, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T501, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T501, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T501, 1), Local0)
+ } else {
+ Store(Acquire(T501, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T502, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T502, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T502, 1), Local0)
+ } else {
+ Store(Acquire(T502, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T503, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T503, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T503, 1), Local0)
+ } else {
+ Store(Acquire(T503, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 6
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma06, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T600, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T600, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T600, 1), Local0)
+ } else {
+ Store(Acquire(T600, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T601, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T601, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T601, 1), Local0)
+ } else {
+ Store(Acquire(T601, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T602, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T602, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T602, 1), Local0)
+ } else {
+ Store(Acquire(T602, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T603, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T603, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T603, 1), Local0)
+ } else {
+ Store(Acquire(T603, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 7
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma07, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T700, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T700, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T700, 1), Local0)
+ } else {
+ Store(Acquire(T700, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T701, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T701, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T701, 1), Local0)
+ } else {
+ Store(Acquire(T701, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T702, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T702, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T702, 1), Local0)
+ } else {
+ Store(Acquire(T702, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T703, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T703, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T703, 1), Local0)
+ } else {
+ Store(Acquire(T703, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 8
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma08, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T800, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T800, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T800, 1), Local0)
+ } else {
+ Store(Acquire(T800, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T801, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T801, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T801, 1), Local0)
+ } else {
+ Store(Acquire(T801, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T802, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T802, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T802, 1), Local0)
+ } else {
+ Store(Acquire(T802, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T803, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T803, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T803, 1), Local0)
+ } else {
+ Store(Acquire(T803, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 9
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma09, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(T900, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T900, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T900, 1), Local0)
+ } else {
+ Store(Acquire(T900, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(T901, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T901, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T901, 1), Local0)
+ } else {
+ Store(Acquire(T901, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(T902, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T902, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T902, 1), Local0)
+ } else {
+ Store(Acquire(T902, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(T903, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(T903, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(T903, 1), Local0)
+ } else {
+ Store(Acquire(T903, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 10
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma0a, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(Ta00, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Ta00, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Ta00, 1), Local0)
+ } else {
+ Store(Acquire(Ta00, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(Ta01, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Ta01, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Ta01, 1), Local0)
+ } else {
+ Store(Acquire(Ta01, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(Ta02, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Ta02, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Ta02, 1), Local0)
+ } else {
+ Store(Acquire(Ta02, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(Ta03, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Ta03, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Ta03, 1), Local0)
+ } else {
+ Store(Acquire(Ta03, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 11
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma0b, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(Tb00, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tb00, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tb00, 1), Local0)
+ } else {
+ Store(Acquire(Tb00, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(Tb01, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tb01, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tb01, 1), Local0)
+ } else {
+ Store(Acquire(Tb01, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(Tb02, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tb02, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tb02, 1), Local0)
+ } else {
+ Store(Acquire(Tb02, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(Tb03, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tb03, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tb03, 1), Local0)
+ } else {
+ Store(Acquire(Tb03, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 12
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma0c, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(Tc00, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tc00, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tc00, 1), Local0)
+ } else {
+ Store(Acquire(Tc00, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(Tc01, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tc01, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tc01, 1), Local0)
+ } else {
+ Store(Acquire(Tc01, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(Tc02, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tc02, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tc02, 1), Local0)
+ } else {
+ Store(Acquire(Tc02, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(Tc03, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tc03, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tc03, 1), Local0)
+ } else {
+ Store(Acquire(Tc03, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 13
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma0d, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(Td00, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Td00, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Td00, 1), Local0)
+ } else {
+ Store(Acquire(Td00, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(Td01, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Td01, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Td01, 1), Local0)
+ } else {
+ Store(Acquire(Td01, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(Td02, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Td02, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Td02, 1), Local0)
+ } else {
+ Store(Acquire(Td02, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(Td03, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Td03, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Td03, 1), Local0)
+ } else {
+ Store(Acquire(Td03, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 14
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma0e, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(Te00, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Te00, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Te00, 1), Local0)
+ } else {
+ Store(Acquire(Te00, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(Te01, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Te01, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Te01, 1), Local0)
+ } else {
+ Store(Acquire(Te01, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(Te02, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Te02, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Te02, 1), Local0)
+ } else {
+ Store(Acquire(Te02, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(Te03, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Te03, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Te03, 1), Local0)
+ } else {
+ Store(Acquire(Te03, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Acquire mutex of level 15
+ * (Index of mux, opcode of exception to be generated or zero, opcode of TimeOutValue)
+ */
+Method(ma0f, 3, Serialized)
+{
+ Store(1, Local0)
+
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ if (arg1) {
+ Acquire(Tf00, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tf00, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tf00, 1), Local0)
+ } else {
+ Store(Acquire(Tf00, 0xffff), Local0)
+ }
+ }
+ Case (1) {
+ if (arg1) {
+ Acquire(Tf01, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tf01, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tf01, 1), Local0)
+ } else {
+ Store(Acquire(Tf01, 0xffff), Local0)
+ }
+ }
+ Case (2) {
+ if (arg1) {
+ Acquire(Tf02, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tf02, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tf02, 1), Local0)
+ } else {
+ Store(Acquire(Tf02, 0xffff), Local0)
+ }
+ }
+ Case (3) {
+ if (arg1) {
+ Acquire(Tf03, 0xffff)
+ } elseif (LEqual(arg2, TOV0)) {
+ Store(Acquire(Tf03, 0), Local0)
+ } elseif (LEqual(arg2, TOV1)) {
+ Store(Acquire(Tf03, 1), Local0)
+ } else {
+ Store(Acquire(Tf03, 0xffff), Local0)
+ }
+ }
+ }
+ return (Local0)
+}
+
+/*
+ * Release mutex of level 0
+ *
+ * arg0 - Index of mutex
+ */
+Method(ma10, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T000)
+ }
+ Case (1) {
+ if (GL00) {
+ Release(\_GL)
+ } else {
+ Release(T001)
+ }
+ }
+ Case (2) {
+ Release(T002)
+ }
+ Case (3) {
+ Release(T003)
+ }
+ Case (4) {
+ Release(T004)
+ }
+ Case (5) {
+ Release(T005)
+ }
+ Case (6) {
+ Release(T006)
+ }
+ Case (7) {
+ Release(T007)
+ }
+ Case (8) {
+ Release(T008)
+ }
+ Case (9) {
+ Release(T009)
+ }
+ Case (10) {
+ Release(T00a)
+ }
+ Case (11) {
+ Release(T00b)
+ }
+ Case (12) {
+ Release(T00c)
+ }
+ Case (13) {
+ Release(T00d)
+ }
+ Case (14) {
+ Release(T00e)
+ }
+ Case (15) {
+ Release(T00f)
+ }
+ Case (16) {
+ Release(T010)
+ }
+ Case (17) {
+ Release(T011)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 1 (Index of mux)
+ */
+Method(ma11, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T100)
+ }
+ Case (1) {
+ Release(T101)
+ }
+ Case (2) {
+ Release(T102)
+ }
+ Case (3) {
+ Release(T103)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 2 (Index of mux)
+ */
+Method(ma12, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T200)
+ }
+ Case (1) {
+ Release(T201)
+ }
+ Case (2) {
+ Release(T202)
+ }
+ Case (3) {
+ Release(T203)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 3 (Index of mux)
+ */
+Method(ma13, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T300)
+ }
+ Case (1) {
+ Release(T301)
+ }
+ Case (2) {
+ Release(T302)
+ }
+ Case (3) {
+ Release(T303)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 4 (Index of mux)
+ */
+Method(ma14, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T400)
+ }
+ Case (1) {
+ Release(T401)
+ }
+ Case (2) {
+ Release(T402)
+ }
+ Case (3) {
+ Release(T403)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 5 (Index of mux)
+ */
+Method(ma15, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T500)
+ }
+ Case (1) {
+ Release(T501)
+ }
+ Case (2) {
+ Release(T502)
+ }
+ Case (3) {
+ Release(T503)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 6 (Index of mux)
+ */
+Method(ma16, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T600)
+ }
+ Case (1) {
+ Release(T601)
+ }
+ Case (2) {
+ Release(T602)
+ }
+ Case (3) {
+ Release(T603)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 7 (Index of mux)
+ */
+Method(ma17, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T700)
+ }
+ Case (1) {
+ Release(T701)
+ }
+ Case (2) {
+ Release(T702)
+ }
+ Case (3) {
+ Release(T703)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 8 (Index of mux)
+ */
+Method(ma18, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T800)
+ }
+ Case (1) {
+ Release(T801)
+ }
+ Case (2) {
+ Release(T802)
+ }
+ Case (3) {
+ Release(T803)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 9 (Index of mux)
+ */
+Method(ma19, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(T900)
+ }
+ Case (1) {
+ Release(T901)
+ }
+ Case (2) {
+ Release(T902)
+ }
+ Case (3) {
+ Release(T903)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 10 (Index of mux)
+ */
+Method(ma1a, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(Ta00)
+ }
+ Case (1) {
+ Release(Ta01)
+ }
+ Case (2) {
+ Release(Ta02)
+ }
+ Case (3) {
+ Release(Ta03)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 11 (Index of mux)
+ */
+Method(ma1b, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(Tb00)
+ }
+ Case (1) {
+ Release(Tb01)
+ }
+ Case (2) {
+ Release(Tb02)
+ }
+ Case (3) {
+ Release(Tb03)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 12 (Index of mux)
+ */
+Method(ma1c, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(Tc00)
+ }
+ Case (1) {
+ Release(Tc01)
+ }
+ Case (2) {
+ Release(Tc02)
+ }
+ Case (3) {
+ Release(Tc03)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 13 (Index of mux)
+ */
+Method(ma1d, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(Td00)
+ }
+ Case (1) {
+ Release(Td01)
+ }
+ Case (2) {
+ Release(Td02)
+ }
+ Case (3) {
+ Release(Td03)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 14 (Index of mux)
+ */
+Method(ma1e, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(Te00)
+ }
+ Case (1) {
+ Release(Te01)
+ }
+ Case (2) {
+ Release(Te02)
+ }
+ Case (3) {
+ Release(Te03)
+ }
+ }
+}
+
+/*
+ * Release mutex of level 15 (Index of mux)
+ */
+Method(ma1f, 1, Serialized)
+{
+ Switch (ToInteger (arg0)) {
+ Case (0) {
+ Release(Tf00)
+ }
+ Case (1) {
+ Release(Tf01)
+ }
+ Case (2) {
+ Release(Tf02)
+ }
+ Case (3) {
+ Release(Tf03)
+ }
+ }
+}
+
+/*
+ * Get name of mutex
+ *
+ * arg0 - string
+ * arg1 - Level of mutex
+ * arg2 - Index of mutex
+ */
+Method(m21e, 3)
+{
+ Concatenate(arg0, "Level ", Local0)
+ Concatenate(Local0, arg1, Local1)
+ Concatenate(Local1, ", Index ", Local0)
+ Concatenate(Local0, arg2, Local1)
+
+ if (LEqual(arg1, GLLL)) {
+ if (LEqual(arg2, GLIX)) {
+ if (GL00) {
+ Concatenate(Local1, " (Global lock)", Local1)
+ }
+ }
+ }
+
+ return (Local1)
+}
+
+
diff --git a/tests/aslts/src/runtime/common/operations.asl b/tests/aslts/src/runtime/common/operations.asl
index 7ae32eb6a..39a738e3e 100644
--- a/tests/aslts/src/runtime/common/operations.asl
+++ b/tests/aslts/src/runtime/common/operations.asl
@@ -1,767 +1,767 @@
-/*
- * Some or all of this work - Copyright (c) 2006 - 2015, Intel Corp.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * Neither the name of Intel Corporation nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-// /////////////////////////////////////////////////////////////////////////
-// 0 - Acquire (arg0, arg1) => Local7
-// 1 - Add (arg0, arg1, RES) => Local7
-// 2 - And (arg0, arg1, RES) => Local7
-// 3 - Concatenate (arg0, arg1, RES) => Local7
-// 4 - ConcatenateResTemplate (arg0, arg1, RES) => Local7
-// 5 - CondRefOf (arg0, RES) => Local7
-// 6 - CopyObject (arg0, RES) => Local7
-// 7 - Decrement (arg0 --> RES) => Local7
-// 8 - DerefOf (arg0) => Local7
-// 9 - Divide (arg0, arg1, RES, RES) => Local7
-// 10 - Fatal (arg0, arg1, arg2)
-// 11 - FindSetLeftBit (arg0, RES) => Local7
-// 12 - FindSetRightBit (arg0, RES) => Local7
-// 13 - FromBCD (arg0, RES) => Local7
-// 14 - Increment (arg0 --> RES) => Local7
-// 15 - Index (arg0, arg1, RES) => Local7
-// 16 - LAnd (arg0, arg1) => Local7
-// 17 - LEqual (arg0, arg1) => Local7
-// 18 - LGreater (arg0, arg1) => Local7
-// 19 - LGreaterEqual (arg0, arg1) => Local7
-// 20 - LLess (arg0, arg1) => Local7
-// 21 - LLessEqual (arg0, arg1) => Local7
-// 22 - LNot (arg0) => Local7
-// 23 - LNotEqual (arg0, arg1) => Local7
-// 24 - LOr (arg0, arg1) => Local7
-// 25 - Match <arg1-O1,O2> (arg0, <O1>, arg2, <O2>, arg3, arg4) => Local7
-// 26 - Mid (arg0, arg1, arg2, RES) => Local7
-// 27 - Mod (arg0, arg1, RES) => Local7
-// 28 - Multiply (arg0, arg1, RES) => Local7
-// 29 - NAnd (arg0, arg1, RES) => Local7
-// 30 - NOr (arg0, arg1, RES) => Local7
-// 31 - Not (arg0, RES) => Local7
-// 32 - ObjectType (arg0) => Local7
-// 33 - Or (arg0, arg1, RES) => Local7
-// 34 - RefOf (arg0) => Local7
-// 35 - Release (arg0)
-// 36 - Reset (arg0)
-// 37 - Return (arg0)
-// 38 - ShiftLeft (arg0, arg1, RES) => Local7
-// 39 - ShiftRight (arg0, arg1, RES) => Local7
-// 40 - Signal (arg0)
-// 41 - SizeOf (arg0) => Local7
-// 42 - Sleep (arg0)
-// 43 - Stall (arg0)
-// 44 - Store (arg0, RES) => Local7
-// 45 - Subtract (arg0, arg1, RES) => Local7
-// 46 - ToBCD (arg0, RES) => Local7
-// 47 - ToBuffer (arg0, RES) => Local7
-// 48 - ToDecimalString (arg0, RES) => Local7
-// 49 - ToHexString (arg0, RES) => Local7
-// 50 - ToInteger (arg0, RES) => Local7
-// 51 - ToString (arg0, arg1, RES) => Local7
-// 52 - Wait (arg0, arg1) => Local7
-// 53 - XOr (arg0, arg1, RES) => Local7
-// //////////////////////////////////////////////////////////////////////////
-
-Name(z082, 82)
-
-// Flag - verify result with the contents of Package
-Name(FLG2, 0x3859a0d4)
-
-// Flag - it is expected that operation will cause exception
-Name(FLG3, 0)
-
-// Flag - dont do further checkings
-Name(FLG4, 0)
-
-// Collect calls to all operators
-//
-// arg0-arg4 - parameters of operators
-// arg5 - miscellaneous
-// arg6 - opcode of operation
-Method(m480, 7, Serialized)
-{
- Name(ts, "m480")
-
- Name(pr00, 0)
- Name(pr01, 0)
-
- Name(chk0, 1)
- Name(res0, 0)
- Name(res1, 0)
- Name(res2, 0)
-
- if (LEqual(arg5, FLG2)) {
- Store(0, chk0)
- }
-
- if (chk0) {
-
- Name(tmp0, 0)
- Name(tmp1, 0)
-
- Name(OT00, 0)
- Name(OT01, 0)
- Name(OT02, 0)
- Name(OT03, 0)
- Name(OT04, 0)
- Name(OT05, 0)
- Name(OT06, 0)
-
- Store(ObjectType(arg0), OT00)
- Store(ObjectType(arg1), OT01)
- Store(ObjectType(arg2), OT02)
- Store(ObjectType(arg3), OT03)
- Store(ObjectType(arg4), OT04)
- Store(ObjectType(arg5), OT05)
- Store(ObjectType(arg6), OT06)
-
- Store(arg0, Local0)
- Store(arg1, Local1)
- Store(arg2, Local2)
- Store(arg3, Local3)
- Store(arg4, Local4)
- Store(arg5, Local5)
- Store(arg6, Local6)
-
- Name(OT10, 0)
- Name(OT11, 0)
- Name(OT12, 0)
- Name(OT13, 0)
- Name(OT14, 0)
- Name(OT15, 0)
- Name(OT16, 0)
-
- Store(ObjectType(Local0), OT10)
- Store(ObjectType(Local1), OT11)
- Store(ObjectType(Local2), OT12)
- Store(ObjectType(Local3), OT13)
- Store(ObjectType(Local4), OT14)
- Store(ObjectType(Local5), OT15)
- Store(ObjectType(Local6), OT16)
-
- } // if(chk0)
-
- Store(0, Local7)
-
- if (pr00) {
- Store("===================== m480, Start:", Debug)
- Store(arg0, Debug)
- Store(arg1, Debug)
- Store(arg2, Debug)
- Store(arg3, Debug)
- Store(arg4, Debug)
- Store(arg5, Debug)
- Store(arg6, Debug)
- if (chk0) {
- Store("--------", Debug)
- Store(Local0, Debug)
- Store(Local1, Debug)
- Store(Local2, Debug)
- Store(Local3, Debug)
- Store(Local4, Debug)
- Store(Local5, Debug)
- Store(Local6, Debug)
- Store(Local7, Debug)
- }
- Store("=====================.", Debug)
- }
-
- switch (ToInteger (Arg6)) {
- case (0) {
- Store(Acquire(arg0, 100), Local7)
- }
- case (1) {
- Store(1, res0)
- Store(Add(arg0, arg1, arg5), Local7)
- }
- case (2) {
- Store(1, res0)
- Store(And(arg0, arg1, arg5), Local7)
- }
- case (3) {
- Store(1, res0)
- Store(Concatenate(arg0, arg1, arg5), Local7)
- }
- case (4) {
- Store(1, res0)
- Store(ConcatenateResTemplate(arg0, arg1, arg5), Local7)
- }
- case (5) {
- Store(1, res2)
- Store(CondRefOf(arg0, arg5), Local7)
- }
- case (6) {
- Store(1, res0)
- Store(CopyObject(arg0, arg5), Local7)
- }
- case (7) {
- Store(1, res0)
- Store(arg0, arg5)
- Store(Decrement(arg5), Local7)
- }
- case (8) {
- Store(DerefOf(arg0), Local7)
- }
- case (9) {
- Store(1, res0)
- Store(1, res1)
- Store(Divide(arg0, arg1, arg2, arg5), Local7)
- }
- case (10) {
- Fatal(0xff, 0xffffffff, arg0)
- }
- case (11) {
- Store(1, res0)
- Store(FindSetLeftBit(arg0, arg5), Local7)
- }
- case (12) {
- Store(1, res0)
- Store(FindSetRightBit(arg0, arg5), Local7)
- }
- case (13) {
- Store(1, res0)
- Store(FromBCD(arg0, arg5), Local7)
- }
- case (14) {
- Store(1, res0)
- Store(arg0, arg5)
- Store(Increment(arg5), Local7)
- }
- case (15) {
- Store(1, res0)
- Store(Index(arg0, arg1, arg5), Local7)
- }
- case (16) {
- Store(LAnd(arg0, arg1), Local7)
- }
- case (17) {
- Store(LEqual(arg0, arg1), Local7)
- }
- case (18) {
- Store(LGreater(arg0, arg1), Local7)
- }
- case (19) {
- Store(LGreaterEqual(arg0, arg1), Local7)
- }
- case (20) {
- Store(LLess(arg0, arg1), Local7)
- }
- case (21) {
- Store(LLessEqual(arg0, arg1), Local7)
- }
- case (22) {
- Store(LNot(arg0), Local7)
- }
- case (23) {
- Store(LNotEqual(arg0, arg1), Local7)
- }
- case (24) {
- Store(LOr(arg0, arg1), Local7)
- }
- case (25) {
- // arg1 - determine OP1 and OP2
- Store(Match(arg0, MTR, arg2, MTR, arg3, arg4), Local7)
- }
- case (26) {
- Store(1, res0)
- Store(Mid(arg0, arg1, arg2, arg5), Local7)
- }
- case (27) {
- Store(1, res0)
- Store(Mod(arg0, arg1, arg5), Local7)
- }
- case (28) {
- Store(1, res0)
- Store(Multiply(arg0, arg1, arg5), Local7)
- }
- case (29) {
- Store(1, res0)
- Store(NAnd(arg0, arg1, arg5), Local7)
- }
- case (30) {
- Store(1, res0)
- Store(NOr(arg0, arg1, arg5), Local7)
- }
- case (31) {
- Store(1, res0)
- Store(Not(arg0, arg5), Local7)
- }
- case (32) {
- Store(ObjectType(arg0), Local7)
- }
- case (33) {
- Store(1, res0)
- Store(Or(arg0, arg1, arg5), Local7)
- }
- case (34) {
- Store(RefOf(arg0), Local7)
- }
- case (35) {
- Release(arg0)
- }
- case (36) {
- Reset(arg0)
- }
- case (37) {
- Return(arg0)
- }
- case (38) {
- Store(1, res0)
- Store(ShiftLeft(arg0, arg1, arg5), Local7)
- }
- case (39) {
- Store(1, res0)
- Store(ShiftRight(arg0, arg1, arg5), Local7)
- }
- case (40) {
- Signal(arg0)
- }
- case (41) {
- Store(SizeOf(arg0), Local7)
- }
- case (42) {
- Sleep(arg0)
- }
- case (43) {
- Stall(arg0)
- }
- case (44) {
- Store(1, res0)
- Store(Store(arg0, arg5), Local7)
- }
- case (45) {
- Store(1, res0)
- Store(Subtract(arg0, arg1, arg5), Local7)
- }
- case (46) {
- Store(1, res0)
- Store(ToBCD(arg0, arg5), Local7)
- }
- case (47) {
- Store(1, res0)
- Store(ToBuffer(arg0, arg5), Local7)
- }
- case (48) {
- Store(1, res0)
- Store(ToDecimalString(arg0, arg5), Local7)
- }
- case (49) {
- Store(1, res0)
- Store(ToHexString(arg0, arg5), Local7)
- }
- case (50) {
- Store(1, res0)
- Store(ToInteger(arg0, arg5), Local7)
- }
- case (51) {
- Store(1, res0)
- Store(ToString(arg0, arg1, arg5), Local7)
- }
- case (52) {
- Store(Wait(arg0, arg1), Local7)
- }
- case (53) {
- Store(1, res0)
- Store(XOr(arg0, arg1, arg5), Local7)
- }
- Default {
- Store("Param error 0", Debug)
- Store(1, Local0)
- Store(0, Local1)
- Divide(Local0, Local1, Local2, Local3)
- }
- }
-
- if (FLG3) {
-
- // It was expected that operation will cause exception.
- // We verify only the presence of exception.
- // Nothing to do more.
-
- return (1)
- }
-
- if (FLG4) {
-
- // Dont do further checkings.
-
- return (1)
- }
-
- if (chk0) {
-
- // Types of ArgX are save
-
- Store(ObjectType(arg0), tmp0)
- if (LNotEqual(tmp0, OT00)) {
- err(ts, z082, 0, 0, 0, tmp0, OT00)
- }
- Store(ObjectType(arg1), tmp0)
- if (LNotEqual(tmp0, OT01)) {
- err(ts, z082, 1, 0, 0, tmp0, OT01)
- }
- Store(ObjectType(arg2), tmp0)
- if (LNotEqual(tmp0, OT02)) {
- err(ts, z082, 2, 0, 0, tmp0, OT02)
- }
- Store(ObjectType(arg3), tmp0)
- if (LNotEqual(tmp0, OT03)) {
- err(ts, z082, 3, 0, 0, tmp0, OT03)
- }
- Store(ObjectType(arg4), tmp0)
- if (LNotEqual(tmp0, OT04)) {
- err(ts, z082, 4, 0, 0, tmp0, OT04)
- }
-
- if (res0) {
- Store(ObjectType(arg5), tmp0)
- if (LNotEqual(tmp0, OT05)) {
- err(ts, z082, 5, 0, 0, tmp0, OT05)
- }
- }
- Store(ObjectType(arg6), tmp0)
- if (LNotEqual(tmp0, OT06)) {
- err(ts, z082, 6, 0, 0, tmp0, OT06)
- }
-
- // Types of LocalX are save, and data of LocalX and ArgX are identical
-
- Store(ObjectType(Local0), tmp0)
- if (LNotEqual(tmp0, OT10)) {
- err(ts, z082, 7, 0, 0, tmp0, OT10)
- } else {
- m481(ts, 8, tmp0, Local0, arg0)
- }
- Store(ObjectType(Local1), tmp0)
- if (LNotEqual(tmp0, OT11)) {
- err(ts, z082, 9, 0, 0, tmp0, OT11)
- } else {
- m481(ts, 10, tmp0, Local1, arg1)
- }
-
- if (res1) {
- Store(ObjectType(Local2), tmp0)
- if (LNotEqual(tmp0, OT12)) {
- err(ts, z082, 11, 0, 0, tmp0, OT12)
- } else {
- m481(ts, 12, tmp0, Local2, arg2)
- }
- }
-
- Store(ObjectType(Local3), tmp0)
- if (LNotEqual(tmp0, OT13)) {
- err(ts, z082, 13, 0, 0, tmp0, OT13)
- } else {
- m481(ts, 14, tmp0, Local3, arg3)
- }
- Store(ObjectType(Local4), tmp0)
- if (LNotEqual(tmp0, OT14)) {
- err(ts, z082, 15, 0, 0, tmp0, OT14)
- } else {
- m481(ts, 16, tmp0, Local4, arg4)
- }
- Store(ObjectType(Local5), tmp0)
- if (LNotEqual(tmp0, OT15)) {
- err(ts, z082, 17, 0, 0, tmp0, OT15)
- } elseif (res0) {
- m481(ts, 18, tmp0, Local5, arg5)
- }
- Store(ObjectType(Local6), tmp0)
- if (LNotEqual(tmp0, OT16)) {
- err(ts, z082, 19, 0, 0, tmp0, OT16)
- } else {
- m481(ts, 20, tmp0, Local6, arg6)
- }
-
- if (res2) {
- if (LNotEqual(Local7, Ones)) {
- err(ts, z082, 21, 0, 0, Local7, Ones)
- }
- } elseif (res0) {
- Store(ObjectType(Local7), tmp0)
- Store(ObjectType(arg5), tmp1)
- if (LNotEqual(tmp0, tmp1)) {
- err(ts, z082, 22, 0, 0, tmp0, tmp1)
- } else {
- m481(ts, 23, tmp0, Local7, arg5)
- }
- }
-
- } // if(chk0)
-
- if (pr01) {
- Store("===================== m480, Finish:", Debug)
- Store(arg0, Debug)
- Store(arg1, Debug)
- Store(arg2, Debug)
- Store(arg3, Debug)
- Store(arg4, Debug)
- Store(arg5, Debug)
- Store(arg6, Debug)
- if (chk0) {
- Store("--------", Debug)
- Store(Local0, Debug)
- Store(Local1, Debug)
- Store(Local2, Debug)
- Store(Local3, Debug)
- Store(Local4, Debug)
- Store(Local5, Debug)
- Store(Local6, Debug)
- Store(Local7, Debug)
- }
- Store("=====================.", Debug)
- }
-
- Return(Local7)
-}
-
-// Compare the contents of arg3 and arg4, arg2 - the type of objects
-Method(m481, 5, Serialized)
-{
- Store(0, Local0)
-
- switch (ToInteger (arg2)) {
- case (1) {
- if (LNotEqual(arg3, arg4)) {
- err(arg0, z082, 24, 0, 0, arg1, 0)
- Store(1, Local0)
- }
- }
- case (2) {
- if (LNotEqual(arg3, arg4)) {
- err(arg0, z082, 25, 0, 0, arg1, 0)
- Store(1, Local0)
- }
- }
- case (3) {
- if (LNotEqual(arg3, arg4)) {
- err(arg0, z082, 26, 0, 0, arg1, 0)
- Store(1, Local0)
- }
- }
- }
-
- if (Local0) {
- Store(arg3, Debug)
- Store(arg4, Debug)
- }
-
-}
-
-// Layer for checking referencies
-//
-// arg0-arg4 - parameters of operators
-// arg5 - miscellaneous
-// arg6 - opcode of operation
-Method(m482, 7, Serialized)
-{
-///////////////////
-//
-// !!!!!!!!!!!!!! ??????????????????????????????????????
-//
-// Looks like a bug - why this construction is impossible:
-//
-// Name(OT11, ObjectType(arg0))
-// Name(a000, arg0)
-///////////////////
-
- Name(ts, "m482")
-
- Name(pk06, 0)
-
- Name(tmp0, 0)
-
- Name(OT00, 0)
- Name(OT01, 0)
- Name(OT02, 0)
- Name(OT03, 0)
- Name(OT04, 0)
- Name(OT05, 0)
- Name(OT06, 0)
-
- Store(ObjectType(arg0), OT00)
- Store(ObjectType(arg1), OT01)
- Store(ObjectType(arg2), OT02)
- Store(ObjectType(arg3), OT03)
- Store(ObjectType(arg4), OT04)
- Store(ObjectType(arg5), OT05)
- Store(ObjectType(arg6), OT06)
-
- // Operation
-
- Store(ObjectType(arg6), OT06)
- if (LEqual(OT06, 4)) {
- Store(DeRefOf(Index(arg6, 0)), Local6)
- Store(1, pk06)
- } else {
- Store(arg6, Local6)
- }
-
- Store(arg0, Local0)
- Store(arg1, Local1)
- Store(arg2, Local2)
- Store(arg3, Local3)
- Store(arg4, Local4)
- Store(arg5, Local5)
-// Store(arg6, Local6)
- Store(arg6, Local7)
-
- Name(OT10, 0)
- Name(OT11, 0)
- Name(OT12, 0)
- Name(OT13, 0)
- Name(OT14, 0)
- Name(OT15, 0)
- Name(OT16, 0)
-
- Store(ObjectType(Local0), OT10)
- Store(ObjectType(Local1), OT11)
- Store(ObjectType(Local2), OT12)
- Store(ObjectType(Local3), OT13)
- Store(ObjectType(Local4), OT14)
- Store(ObjectType(Local5), OT15)
- Store(ObjectType(Local6), OT16)
-
- Store(m480(Local0, Local1, Local2, Local3, Local4, Local5, Local6), Local7)
-
- // Types of ArgX are save
-
- Store(ObjectType(arg0), tmp0)
- if (LNotEqual(tmp0, OT00)) {
- err(ts, z082, 27, 0, 0, tmp0, OT00)
- }
- Store(ObjectType(arg1), tmp0)
- if (LNotEqual(tmp0, OT01)) {
- err(ts, z082, 28, 0, 0, tmp0, OT01)
- }
- Store(ObjectType(arg2), tmp0)
- if (LNotEqual(tmp0, OT02)) {
- err(ts, z082, 29, 0, 0, tmp0, OT02)
- }
- Store(ObjectType(arg3), tmp0)
- if (LNotEqual(tmp0, OT03)) {
- err(ts, z082, 30, 0, 0, tmp0, OT03)
- }
- Store(ObjectType(arg4), tmp0)
- if (LNotEqual(tmp0, OT04)) {
- err(ts, z082, 31, 0, 0, tmp0, OT04)
- }
- Store(ObjectType(arg5), tmp0)
- if (LNotEqual(tmp0, OT05)) {
- err(ts, z082, 32, 0, 0, tmp0, OT05)
- }
- Store(ObjectType(arg6), tmp0)
- if (LNotEqual(tmp0, OT06)) {
- err(ts, z082, 33, 0, 0, tmp0, OT06)
- }
-
- // Types of LocalX are save, and data of LocalX and ArgX are identical
-
- Store(ObjectType(Local0), tmp0)
- if (LNotEqual(tmp0, OT10)) {
- err(ts, z082, 34, 0, 0, tmp0, OT10)
- } else {
- m481(ts, 35, tmp0, Local0, arg0)
- }
- Store(ObjectType(Local1), tmp0)
- if (LNotEqual(tmp0, OT11)) {
- err(ts, z082, 36, 0, 0, tmp0, OT11)
- } else {
- m481(ts, 37, tmp0, Local1, arg1)
- }
- Store(ObjectType(Local2), tmp0)
- if (LNotEqual(tmp0, OT12)) {
- err(ts, z082, 38, 0, 0, tmp0, OT12)
- } else {
- m481(ts, 39, tmp0, Local2, arg2)
- }
- Store(ObjectType(Local3), tmp0)
- if (LNotEqual(tmp0, OT13)) {
- err(ts, z082, 40, 0, 0, tmp0, OT13)
- } else {
- m481(ts, 41, tmp0, Local3, arg3)
- }
- Store(ObjectType(Local4), tmp0)
- if (LNotEqual(tmp0, OT14)) {
- err(ts, z082, 42, 0, 0, tmp0, OT14)
- } else {
- m481(ts, 43, tmp0, Local4, arg4)
- }
- Store(ObjectType(Local5), tmp0)
- if (LNotEqual(tmp0, OT15)) {
- err(ts, z082, 44, 0, 0, tmp0, OT15)
- } else {
- m481(ts, 45, tmp0, Local5, arg5)
- }
-
- Store(ObjectType(Local6), tmp0)
- if (LNotEqual(tmp0, OT16)) {
- err(ts, z082, 46, 0, 0, tmp0, OT16)
- } else {
- // Package is passed by arg6
- // m481(ts, 47, tmp0, Local6, arg6)
- }
-
- if (pk06) {
-
-// SEE: either to remove this ability???????????????????
-
- // Presence of result
- Store(DeRefOf(Index(arg6, 1)), Local0)
-
- if (Local0) {
-
- // Type of result
- Store(DeRefOf(Index(arg6, 2)), Local0)
-
- // Result
- Store(DeRefOf(Index(arg6, 3)), Local1)
-
- Store(ObjectType(Local7), Local2)
-
- Store(0, Local3)
-
- if (LNotEqual(Local2, Local0)) {
- err(ts, z082, 48, 0, 0, 0, 0)
- Store("Expected type of result:", Debug)
- Store(Local0, Debug)
- Store("The type of obtained result:", Debug)
- Store(Local2, Debug)
- Store(1, Local3)
- } elseif (LNotEqual(Local7, Local1)) {
- err(ts, z082, 49, 0, 0, 0, 0)
- Store(1, Local3)
- }
- if (Local3) {
- Store("Expected result:", Debug)
- Store(Local1, Debug)
- Store("Actual result:", Debug)
- Store(Local7, Debug)
- }
- }
- }
-
- Return(Local7)
-}
+/*
+ * Some or all of this work - Copyright (c) 2006 - 2014, Intel Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * Neither the name of Intel Corporation nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+// /////////////////////////////////////////////////////////////////////////
+// 0 - Acquire (arg0, arg1) => Local7
+// 1 - Add (arg0, arg1, RES) => Local7
+// 2 - And (arg0, arg1, RES) => Local7
+// 3 - Concatenate (arg0, arg1, RES) => Local7
+// 4 - ConcatenateResTemplate (arg0, arg1, RES) => Local7
+// 5 - CondRefOf (arg0, RES) => Local7
+// 6 - CopyObject (arg0, RES) => Local7
+// 7 - Decrement (arg0 --> RES) => Local7
+// 8 - DerefOf (arg0) => Local7
+// 9 - Divide (arg0, arg1, RES, RES) => Local7
+// 10 - Fatal (arg0, arg1, arg2)
+// 11 - FindSetLeftBit (arg0, RES) => Local7
+// 12 - FindSetRightBit (arg0, RES) => Local7
+// 13 - FromBCD (arg0, RES) => Local7
+// 14 - Increment (arg0 --> RES) => Local7
+// 15 - Index (arg0, arg1, RES) => Local7
+// 16 - LAnd (arg0, arg1) => Local7
+// 17 - LEqual (arg0, arg1) => Local7
+// 18 - LGreater (arg0, arg1) => Local7
+// 19 - LGreaterEqual (arg0, arg1) => Local7
+// 20 - LLess (arg0, arg1) => Local7
+// 21 - LLessEqual (arg0, arg1) => Local7
+// 22 - LNot (arg0) => Local7
+// 23 - LNotEqual (arg0, arg1) => Local7
+// 24 - LOr (arg0, arg1) => Local7
+// 25 - Match <arg1-O1,O2> (arg0, <O1>, arg2, <O2>, arg3, arg4) => Local7
+// 26 - Mid (arg0, arg1, arg2, RES) => Local7
+// 27 - Mod (arg0, arg1, RES) => Local7
+// 28 - Multiply (arg0, arg1, RES) => Local7
+// 29 - NAnd (arg0, arg1, RES) => Local7
+// 30 - NOr (arg0, arg1, RES) => Local7
+// 31 - Not (arg0, RES) => Local7
+// 32 - ObjectType (arg0) => Local7
+// 33 - Or (arg0, arg1, RES) => Local7
+// 34 - RefOf (arg0) => Local7
+// 35 - Release (arg0)
+// 36 - Reset (arg0)
+// 37 - Return (arg0)
+// 38 - ShiftLeft (arg0, arg1, RES) => Local7
+// 39 - ShiftRight (arg0, arg1, RES) => Local7
+// 40 - Signal (arg0)
+// 41 - SizeOf (arg0) => Local7
+// 42 - Sleep (arg0)
+// 43 - Stall (arg0)
+// 44 - Store (arg0, RES) => Local7
+// 45 - Subtract (arg0, arg1, RES) => Local7
+// 46 - ToBCD (arg0, RES) => Local7
+// 47 - ToBuffer (arg0, RES) => Local7
+// 48 - ToDecimalString (arg0, RES) => Local7
+// 49 - ToHexString (arg0, RES) => Local7
+// 50 - ToInteger (arg0, RES) => Local7
+// 51 - ToString (arg0, arg1, RES) => Local7
+// 52 - Wait (arg0, arg1) => Local7
+// 53 - XOr (arg0, arg1, RES) => Local7
+// //////////////////////////////////////////////////////////////////////////
+
+Name(z082, 82)
+
+// Flag - verify result with the contents of Package
+Name(FLG2, 0x3859a0d4)
+
+// Flag - it is expected that operation will cause exception
+Name(FLG3, 0)
+
+// Flag - dont do further checkings
+Name(FLG4, 0)
+
+// Collect calls to all operators
+//
+// arg0-arg4 - parameters of operators
+// arg5 - miscellaneous
+// arg6 - opcode of operation
+Method(m480, 7, Serialized)
+{
+ Name(ts, "m480")
+
+ Name(pr00, 0)
+ Name(pr01, 0)
+
+ Name(chk0, 1)
+ Name(res0, 0)
+ Name(res1, 0)
+ Name(res2, 0)
+
+ if (LEqual(arg5, FLG2)) {
+ Store(0, chk0)
+ }
+
+ if (chk0) {
+
+ Name(tmp0, 0)
+ Name(tmp1, 0)
+
+ Name(OT00, 0)
+ Name(OT01, 0)
+ Name(OT02, 0)
+ Name(OT03, 0)
+ Name(OT04, 0)
+ Name(OT05, 0)
+ Name(OT06, 0)
+
+ Store(ObjectType(arg0), OT00)
+ Store(ObjectType(arg1), OT01)
+ Store(ObjectType(arg2), OT02)
+ Store(ObjectType(arg3), OT03)
+ Store(ObjectType(arg4), OT04)
+ Store(ObjectType(arg5), OT05)
+ Store(ObjectType(arg6), OT06)
+
+ Store(arg0, Local0)
+ Store(arg1, Local1)
+ Store(arg2, Local2)
+ Store(arg3, Local3)
+ Store(arg4, Local4)
+ Store(arg5, Local5)
+ Store(arg6, Local6)
+
+ Name(OT10, 0)
+ Name(OT11, 0)
+ Name(OT12, 0)
+ Name(OT13, 0)
+ Name(OT14, 0)
+ Name(OT15, 0)
+ Name(OT16, 0)
+
+ Store(ObjectType(Local0), OT10)
+ Store(ObjectType(Local1), OT11)
+ Store(ObjectType(Local2), OT12)
+ Store(ObjectType(Local3), OT13)
+ Store(ObjectType(Local4), OT14)
+ Store(ObjectType(Local5), OT15)
+ Store(ObjectType(Local6), OT16)
+
+ } // if(chk0)
+
+ Store(0, Local7)
+
+ if (pr00) {
+ Store("===================== m480, Start:", Debug)
+ Store(arg0, Debug)
+ Store(arg1, Debug)
+ Store(arg2, Debug)
+ Store(arg3, Debug)
+ Store(arg4, Debug)
+ Store(arg5, Debug)
+ Store(arg6, Debug)
+ if (chk0) {
+ Store("--------", Debug)
+ Store(Local0, Debug)
+ Store(Local1, Debug)
+ Store(Local2, Debug)
+ Store(Local3, Debug)
+ Store(Local4, Debug)
+ Store(Local5, Debug)
+ Store(Local6, Debug)
+ Store(Local7, Debug)
+ }
+ Store("=====================.", Debug)
+ }
+
+ switch (ToInteger (Arg6)) {
+ case (0) {
+ Store(Acquire(arg0, 100), Local7)
+ }
+ case (1) {
+ Store(1, res0)
+ Store(Add(arg0, arg1, arg5), Local7)
+ }
+ case (2) {
+ Store(1, res0)
+ Store(And(arg0, arg1, arg5), Local7)
+ }
+ case (3) {
+ Store(1, res0)
+ Store(Concatenate(arg0, arg1, arg5), Local7)
+ }
+ case (4) {
+ Store(1, res0)
+ Store(ConcatenateResTemplate(arg0, arg1, arg5), Local7)
+ }
+ case (5) {
+ Store(1, res2)
+ Store(CondRefOf(arg0, arg5), Local7)
+ }
+ case (6) {
+ Store(1, res0)
+ Store(CopyObject(arg0, arg5), Local7)
+ }
+ case (7) {
+ Store(1, res0)
+ Store(arg0, arg5)
+ Store(Decrement(arg5), Local7)
+ }
+ case (8) {
+ Store(DerefOf(arg0), Local7)
+ }
+ case (9) {
+ Store(1, res0)
+ Store(1, res1)
+ Store(Divide(arg0, arg1, arg2, arg5), Local7)
+ }
+ case (10) {
+ Fatal(0xff, 0xffffffff, arg0)
+ }
+ case (11) {
+ Store(1, res0)
+ Store(FindSetLeftBit(arg0, arg5), Local7)
+ }
+ case (12) {
+ Store(1, res0)
+ Store(FindSetRightBit(arg0, arg5), Local7)
+ }
+ case (13) {
+ Store(1, res0)
+ Store(FromBCD(arg0, arg5), Local7)
+ }
+ case (14) {
+ Store(1, res0)
+ Store(arg0, arg5)
+ Store(Increment(arg5), Local7)
+ }
+ case (15) {
+ Store(1, res0)
+ Store(Index(arg0, arg1, arg5), Local7)
+ }
+ case (16) {
+ Store(LAnd(arg0, arg1), Local7)
+ }
+ case (17) {
+ Store(LEqual(arg0, arg1), Local7)
+ }
+ case (18) {
+ Store(LGreater(arg0, arg1), Local7)
+ }
+ case (19) {
+ Store(LGreaterEqual(arg0, arg1), Local7)
+ }
+ case (20) {
+ Store(LLess(arg0, arg1), Local7)
+ }
+ case (21) {
+ Store(LLessEqual(arg0, arg1), Local7)
+ }
+ case (22) {
+ Store(LNot(arg0), Local7)
+ }
+ case (23) {
+ Store(LNotEqual(arg0, arg1), Local7)
+ }
+ case (24) {
+ Store(LOr(arg0, arg1), Local7)
+ }
+ case (25) {
+ // arg1 - determine OP1 and OP2
+ Store(Match(arg0, MTR, arg2, MTR, arg3, arg4), Local7)
+ }
+ case (26) {
+ Store(1, res0)
+ Store(Mid(arg0, arg1, arg2, arg5), Local7)
+ }
+ case (27) {
+ Store(1, res0)
+ Store(Mod(arg0, arg1, arg5), Local7)
+ }
+ case (28) {
+ Store(1, res0)
+ Store(Multiply(arg0, arg1, arg5), Local7)
+ }
+ case (29) {
+ Store(1, res0)
+ Store(NAnd(arg0, arg1, arg5), Local7)
+ }
+ case (30) {
+ Store(1, res0)
+ Store(NOr(arg0, arg1, arg5), Local7)
+ }
+ case (31) {
+ Store(1, res0)
+ Store(Not(arg0, arg5), Local7)
+ }
+ case (32) {
+ Store(ObjectType(arg0), Local7)
+ }
+ case (33) {
+ Store(1, res0)
+ Store(Or(arg0, arg1, arg5), Local7)
+ }
+ case (34) {
+ Store(RefOf(arg0), Local7)
+ }
+ case (35) {
+ Release(arg0)
+ }
+ case (36) {
+ Reset(arg0)
+ }
+ case (37) {
+ Return(arg0)
+ }
+ case (38) {
+ Store(1, res0)
+ Store(ShiftLeft(arg0, arg1, arg5), Local7)
+ }
+ case (39) {
+ Store(1, res0)
+ Store(ShiftRight(arg0, arg1, arg5), Local7)
+ }
+ case (40) {
+ Signal(arg0)
+ }
+ case (41) {
+ Store(SizeOf(arg0), Local7)
+ }
+ case (42) {
+ Sleep(arg0)
+ }
+ case (43) {
+ Stall(arg0)
+ }
+ case (44) {
+ Store(1, res0)
+ Store(Store(arg0, arg5), Local7)
+ }
+ case (45) {
+ Store(1, res0)
+ Store(Subtract(arg0, arg1, arg5), Local7)
+ }
+ case (46) {
+ Store(1, res0)
+ Store(ToBCD(arg0, arg5), Local7)
+ }
+ case (47) {
+ Store(1, res0)
+ Store(ToBuffer(arg0, arg5), Local7)
+ }
+ case (48) {
+ Store(1, res0)
+ Store(ToDecimalString(arg0, arg5), Local7)
+ }
+ case (49) {
+ Store(1, res0)
+ Store(ToHexString(arg0, arg5), Local7)
+ }
+ case (50) {
+ Store(1, res0)
+ Store(ToInteger(arg0, arg5), Local7)
+ }
+ case (51) {
+ Store(1, res0)
+ Store(ToString(arg0, arg1, arg5), Local7)
+ }
+ case (52) {
+ Store(Wait(arg0, arg1), Local7)
+ }
+ case (53) {
+ Store(1, res0)
+ Store(XOr(arg0, arg1, arg5), Local7)
+ }
+ Default {
+ Store("Param error 0", Debug)
+ Store(1, Local0)
+ Store(0, Local1)
+ Divide(Local0, Local1, Local2, Local3)
+ }
+ }
+
+ if (FLG3) {
+
+ // It was expected that operation will cause exception.
+ // We verify only the presence of exception.
+ // Nothing to do more.
+
+ return (1)
+ }
+
+ if (FLG4) {
+
+ // Dont do further checkings.
+
+ return (1)
+ }
+
+ if (chk0) {
+
+ // Types of ArgX are save
+
+ Store(ObjectType(arg0), tmp0)
+ if (LNotEqual(tmp0, OT00)) {
+ err(ts, z082, 0, 0, 0, tmp0, OT00)
+ }
+ Store(ObjectType(arg1), tmp0)
+ if (LNotEqual(tmp0, OT01)) {
+ err(ts, z082, 1, 0, 0, tmp0, OT01)
+ }
+ Store(ObjectType(arg2), tmp0)
+ if (LNotEqual(tmp0, OT02)) {
+ err(ts, z082, 2, 0, 0, tmp0, OT02)
+ }
+ Store(ObjectType(arg3), tmp0)
+ if (LNotEqual(tmp0, OT03)) {
+ err(ts, z082, 3, 0, 0, tmp0, OT03)
+ }
+ Store(ObjectType(arg4), tmp0)
+ if (LNotEqual(tmp0, OT04)) {
+ err(ts, z082, 4, 0, 0, tmp0, OT04)
+ }
+
+ if (res0) {
+ Store(ObjectType(arg5), tmp0)
+ if (LNotEqual(tmp0, OT05)) {
+ err(ts, z082, 5, 0, 0, tmp0, OT05)
+ }
+ }
+ Store(ObjectType(arg6), tmp0)
+ if (LNotEqual(tmp0, OT06)) {
+ err(ts, z082, 6, 0, 0, tmp0, OT06)
+ }
+
+ // Types of LocalX are save, and data of LocalX and ArgX are identical
+
+ Store(ObjectType(Local0), tmp0)
+ if (LNotEqual(tmp0, OT10)) {
+ err(ts, z082, 7, 0, 0, tmp0, OT10)
+ } else {
+ m481(ts, 8, tmp0, Local0, arg0)
+ }
+ Store(ObjectType(Local1), tmp0)
+ if (LNotEqual(tmp0, OT11)) {
+ err(ts, z082, 9, 0, 0, tmp0, OT11)
+ } else {
+ m481(ts, 10, tmp0, Local1, arg1)
+ }
+
+ if (res1) {
+ Store(ObjectType(Local2), tmp0)
+ if (LNotEqual(tmp0, OT12)) {
+ err(ts, z082, 11, 0, 0, tmp0, OT12)
+ } else {
+ m481(ts, 12, tmp0, Local2, arg2)
+ }
+ }
+
+ Store(ObjectType(Local3), tmp0)
+ if (LNotEqual(tmp0, OT13)) {
+ err(ts, z082, 13, 0, 0, tmp0, OT13)
+ } else {
+ m481(ts, 14, tmp0, Local3, arg3)
+ }
+ Store(ObjectType(Local4), tmp0)
+ if (LNotEqual(tmp0, OT14)) {
+ err(ts, z082, 15, 0, 0, tmp0, OT14)
+ } else {
+ m481(ts, 16, tmp0, Local4, arg4)
+ }
+ Store(ObjectType(Local5), tmp0)
+ if (LNotEqual(tmp0, OT15)) {
+ err(ts, z082, 17, 0, 0, tmp0, OT15)
+ } elseif (res0) {
+ m481(ts, 18, tmp0, Local5, arg5)
+ }
+ Store(ObjectType(Local6), tmp0)
+ if (LNotEqual(tmp0, OT16)) {
+ err(ts, z082, 19, 0, 0, tmp0, OT16)
+ } else {
+ m481(ts, 20, tmp0, Local6, arg6)
+ }
+
+ if (res2) {
+ if (LNotEqual(Local7, Ones)) {
+ err(ts, z082, 21, 0, 0, Local7, Ones)
+ }
+ } elseif (res0) {
+ Store(ObjectType(Local7), tmp0)
+ Store(ObjectType(arg5), tmp1)
+ if (LNotEqual(tmp0, tmp1)) {
+ err(ts, z082, 22, 0, 0, tmp0, tmp1)
+ } else {
+ m481(ts, 23, tmp0, Local7, arg5)
+ }
+ }
+
+ } // if(chk0)
+
+ if (pr01) {
+ Store("===================== m480, Finish:", Debug)
+ Store(arg0, Debug)
+ Store(arg1, Debug)
+ Store(arg2, Debug)
+ Store(arg3, Debug)
+ Store(arg4, Debug)
+ Store(arg5, Debug)
+ Store(arg6, Debug)
+ if (chk0) {
+ Store("--------", Debug)
+ Store(Local0, Debug)
+ Store(Local1, Debug)
+ Store(Local2, Debug)
+ Store(Local3, Debug)
+ Store(Local4, Debug)
+ Store(Local5, Debug)
+ Store(Local6, Debug)
+ Store(Local7, Debug)
+ }
+ Store("=====================.", Debug)
+ }
+
+ Return(Local7)
+}
+
+// Compare the contents of arg3 and arg4, arg2 - the type of objects
+Method(m481, 5, Serialized)
+{
+ Store(0, Local0)
+
+ switch (ToInteger (arg2)) {
+ case (1) {
+ if (LNotEqual(arg3, arg4)) {
+ err(arg0, z082, 24, 0, 0, arg1, 0)
+ Store(1, Local0)
+ }
+ }
+ case (2) {
+ if (LNotEqual(arg3, arg4)) {
+ err(arg0, z082, 25, 0, 0, arg1, 0)
+ Store(1, Local0)
+ }
+ }
+ case (3) {
+ if (LNotEqual(arg3, arg4)) {
+ err(arg0, z082, 26, 0, 0, arg1, 0)
+ Store(1, Local0)
+ }
+ }
+ }
+
+ if (Local0) {
+ Store(arg3, Debug)
+ Store(arg4, Debug)
+ }
+
+}
+
+// Layer for checking referencies
+//
+// arg0-arg4 - parameters of operators
+// arg5 - miscellaneous
+// arg6 - opcode of operation
+Method(m482, 7, Serialized)
+{
+///////////////////
+//
+// !!!!!!!!!!!!!! ??????????????????????????????????????
+//
+// Looks like a bug - why this construction is impossible:
+//
+// Name(OT11, ObjectType(arg0))
+// Name(a000, arg0)
+///////////////////
+
+ Name(ts, "m482")
+
+ Name(pk06, 0)
+
+ Name(tmp0, 0)
+
+ Name(OT00, 0)
+ Name(OT01, 0)
+ Name(OT02, 0)
+ Name(OT03, 0)
+ Name(OT04, 0)
+ Name(OT05, 0)
+ Name(OT06, 0)
+
+ Store(ObjectType(arg0), OT00)
+ Store(ObjectType(arg1), OT01)
+ Store(ObjectType(arg2), OT02)
+ Store(ObjectType(arg3), OT03)
+ Store(ObjectType(arg4), OT04)
+ Store(ObjectType(arg5), OT05)
+ Store(ObjectType(arg6), OT06)
+
+ // Operation
+
+ Store(ObjectType(arg6), OT06)
+ if (LEqual(OT06, 4)) {
+ Store(DeRefOf(Index(arg6, 0)), Local6)
+ Store(1, pk06)
+ } else {
+ Store(arg6, Local6)
+ }
+
+ Store(arg0, Local0)
+ Store(arg1, Local1)
+ Store(arg2, Local2)
+ Store(arg3, Local3)
+ Store(arg4, Local4)
+ Store(arg5, Local5)
+// Store(arg6, Local6)
+ Store(arg6, Local7)
+
+ Name(OT10, 0)
+ Name(OT11, 0)
+ Name(OT12, 0)
+ Name(OT13, 0)
+ Name(OT14, 0)
+ Name(OT15, 0)
+ Name(OT16, 0)
+
+ Store(ObjectType(Local0), OT10)
+ Store(ObjectType(Local1), OT11)
+ Store(ObjectType(Local2), OT12)
+ Store(ObjectType(Local3), OT13)
+ Store(ObjectType(Local4), OT14)
+ Store(ObjectType(Local5), OT15)
+ Store(ObjectType(Local6), OT16)
+
+ Store(m480(Local0, Local1, Local2, Local3, Local4, Local5, Local6), Local7)
+
+ // Types of ArgX are save
+
+ Store(ObjectType(arg0), tmp0)
+ if (LNotEqual(tmp0, OT00)) {
+ err(ts, z082, 27, 0, 0, tmp0, OT00)
+ }
+ Store(ObjectType(arg1), tmp0)
+ if (LNotEqual(tmp0, OT01)) {
+ err(ts, z082, 28, 0, 0, tmp0, OT01)
+ }
+ Store(ObjectType(arg2), tmp0)
+ if (LNotEqual(tmp0, OT02)) {
+ err(ts, z082, 29, 0, 0, tmp0, OT02)
+ }
+ Store(ObjectType(arg3), tmp0)
+ if (LNotEqual(tmp0, OT03)) {
+ err(ts, z082, 30, 0, 0, tmp0, OT03)
+ }
+ Store(ObjectType(arg4), tmp0)
+ if (LNotEqual(tmp0, OT04)) {
+ err(ts, z082, 31, 0, 0, tmp0, OT04)
+ }
+ Store(ObjectType(arg5), tmp0)
+ if (LNotEqual(tmp0, OT05)) {
+ err(ts, z082, 32, 0, 0, tmp0, OT05)
+ }
+ Store(ObjectType(arg6), tmp0)
+ if (LNotEqual(tmp0, OT06)) {
+ err(ts, z082, 33, 0, 0, tmp0, OT06)
+ }
+
+ // Types of LocalX are save, and data of LocalX and ArgX are identical
+
+ Store(ObjectType(Local0), tmp0)
+ if (LNotEqual(tmp0, OT10)) {
+ err(ts, z082, 34, 0, 0, tmp0, OT10)
+ } else {
+ m481(ts, 35, tmp0, Local0, arg0)
+ }
+ Store(ObjectType(Local1), tmp0)
+ if (LNotEqual(tmp0, OT11)) {
+ err(ts, z082, 36, 0, 0, tmp0, OT11)
+ } else {
+ m481(ts, 37, tmp0, Local1, arg1)
+ }
+ Store(ObjectType(Local2), tmp0)
+ if (LNotEqual(tmp0, OT12)) {
+ err(ts, z082, 38, 0, 0, tmp0, OT12)
+ } else {
+ m481(ts, 39, tmp0, Local2, arg2)
+ }
+ Store(ObjectType(Local3), tmp0)
+ if (LNotEqual(tmp0, OT13)) {
+ err(ts, z082, 40, 0, 0, tmp0, OT13)
+ } else {
+ m481(ts, 41, tmp0, Local3, arg3)
+ }
+ Store(ObjectType(Local4), tmp0)
+ if (LNotEqual(tmp0, OT14)) {
+ err(ts, z082, 42, 0, 0, tmp0, OT14)
+ } else {
+ m481(ts, 43, tmp0, Local4, arg4)
+ }
+ Store(ObjectType(Local5), tmp0)
+ if (LNotEqual(tmp0, OT15)) {
+ err(ts, z082, 44, 0, 0, tmp0, OT15)
+ } else {
+ m481(ts, 45, tmp0, Local5, arg5)
+ }
+
+ Store(ObjectType(Local6), tmp0)
+ if (LNotEqual(tmp0, OT16)) {
+ err(ts, z082, 46, 0, 0, tmp0, OT16)
+ } else {
+ // Package is passed by arg6
+ // m481(ts, 47, tmp0, Local6, arg6)
+ }
+
+ if (pk06) {
+
+// SEE: either to remove this ability???????????????????
+
+ // Presence of result
+ Store(DeRefOf(Index(arg6, 1)), Local0)
+
+ if (Local0) {
+
+ // Type of result
+ Store(DeRefOf(Index(arg6, 2)), Local0)
+
+ // Result
+ Store(DeRefOf(Index(arg6, 3)), Local1)
+
+ Store(ObjectType(Local7), Local2)
+
+ Store(0, Local3)
+
+ if (LNotEqual(Local2, Local0)) {
+ err(ts, z082, 48, 0, 0, 0, 0)
+ Store("Expected type of result:", Debug)
+ Store(Local0, Debug)
+ Store("The type of obtained result:", Debug)
+ Store(Local2, Debug)
+ Store(1, Local3)
+ } elseif (LNotEqual(Local7, Local1)) {
+ err(ts, z082, 49, 0, 0, 0, 0)
+ Store(1, Local3)
+ }
+ if (Local3) {
+ Store("Expected result:", Debug)
+ Store(Local1, Debug)
+ Store("Actual result:", Debug)
+ Store(Local7, Debug)
+ }
+ }
+ }
+
+ Return(Local7)
+}