OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 } | 1598 } |
1599 | 1599 |
1600 | 1600 |
1601 TEST_(debug) { | 1601 TEST_(debug) { |
1602 SET_UP(); | 1602 SET_UP(); |
1603 | 1603 |
1604 ASSERT(kImmExceptionIsDebug == 0xdeb0); | 1604 ASSERT(kImmExceptionIsDebug == 0xdeb0); |
1605 | 1605 |
1606 // All debug codes should produce the same instruction, and the debug code | 1606 // All debug codes should produce the same instruction, and the debug code |
1607 // can be any uint32_t. | 1607 // can be any uint32_t. |
1608 COMPARE(debug("message", 0, NO_PARAM), "hlt #0xdeb0"); | 1608 COMPARE(debug("message", 0, BREAK), "hlt #0xdeb0"); |
1609 COMPARE(debug("message", 1, NO_PARAM), "hlt #0xdeb0"); | 1609 COMPARE(debug("message", 1, BREAK), "hlt #0xdeb0"); |
1610 COMPARE(debug("message", 0xffff, NO_PARAM), "hlt #0xdeb0"); | 1610 COMPARE(debug("message", 0xffff, BREAK), "hlt #0xdeb0"); |
1611 COMPARE(debug("message", 0x10000, NO_PARAM), "hlt #0xdeb0"); | 1611 COMPARE(debug("message", 0x10000, BREAK), "hlt #0xdeb0"); |
1612 COMPARE(debug("message", 0x7fffffff, NO_PARAM), "hlt #0xdeb0"); | 1612 COMPARE(debug("message", 0x7fffffff, BREAK), "hlt #0xdeb0"); |
1613 COMPARE(debug("message", 0x80000000u, NO_PARAM), "hlt #0xdeb0"); | 1613 COMPARE(debug("message", 0x80000000u, BREAK), "hlt #0xdeb0"); |
1614 COMPARE(debug("message", 0xffffffffu, NO_PARAM), "hlt #0xdeb0"); | 1614 COMPARE(debug("message", 0xffffffffu, BREAK), "hlt #0xdeb0"); |
1615 | 1615 |
1616 CLEANUP(); | 1616 CLEANUP(); |
1617 } | 1617 } |
1618 | 1618 |
1619 | 1619 |
1620 TEST_(hlt) { | 1620 TEST_(hlt) { |
1621 SET_UP(); | 1621 SET_UP(); |
1622 | 1622 |
1623 COMPARE(hlt(0), "hlt #0x0"); | 1623 COMPARE(hlt(0), "hlt #0x0"); |
1624 COMPARE(hlt(1), "hlt #0x1"); | 1624 COMPARE(hlt(1), "hlt #0x1"); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1754 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)"); | 1754 COMPARE(Dsb(FullSystem, BarrierOther), "dsb sy (0b1100)"); |
1755 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)"); | 1755 COMPARE(Dsb(InnerShareable, BarrierOther), "dsb sy (0b1000)"); |
1756 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)"); | 1756 COMPARE(Dsb(NonShareable, BarrierOther), "dsb sy (0b0100)"); |
1757 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)"); | 1757 COMPARE(Dsb(OuterShareable, BarrierOther), "dsb sy (0b0000)"); |
1758 | 1758 |
1759 // ISB | 1759 // ISB |
1760 COMPARE(Isb(), "isb"); | 1760 COMPARE(Isb(), "isb"); |
1761 | 1761 |
1762 CLEANUP(); | 1762 CLEANUP(); |
1763 } | 1763 } |
OLD | NEW |