diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-03-02 20:39:28 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-03-02 20:39:28 +0000 |
| commit | 86e8dcd5e291965c27761633174fd9e65a293136 (patch) | |
| tree | 7252c4e6fb85bfc165df16ea74ca2f16b3f7ef1d /tests/tests2 | |
| parent | 883fd365c7e17b6ede1a49835661b2446c752d19 (diff) | |
| download | tinycc-86e8dcd5e291965c27761633174fd9e65a293136.tar.gz tinycc-86e8dcd5e291965c27761633174fd9e65a293136.tar.bz2 | |
arm64: Improve constant generation, with tests.
Diffstat (limited to 'tests/tests2')
| -rw-r--r-- | tests/tests2/73_arm64.c | 18 | ||||
| -rw-r--r-- | tests/tests2/73_arm64.expect | 15 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/tests2/73_arm64.c b/tests/tests2/73_arm64.c index 31abbd6..21a2462 100644 --- a/tests/tests2/73_arm64.c +++ b/tests/tests2/73_arm64.c @@ -409,6 +409,24 @@ void movi(void) pll(0x007fffc0); pll(0x03fff80003fff800); pll(0x0007fffffffffe00); + + pll(0xabcd1234); + pll(0xabcd00001234); + pll(0xabcd000000001234); + pll(0xabcd12340000); + pll(0xabcd000012340000); + pll(0xabcd123400000000); + pll(0xffffffffabcd1234); + pll(0xffffabcdffff1234); + pll(0xabcdffffffff1234); + pll(0xffffabcd1234ffff); + pll(0xabcdffff1234ffff); + pll(0xabcd1234ffffffff); + + pll(0xffffef0123456789); + pll(0xabcdef012345ffff); + + pll(0xabcdef0123456789); } void pcs(void) diff --git a/tests/tests2/73_arm64.expect b/tests/tests2/73_arm64.expect index c084677..00e5529 100644 --- a/tests/tests2/73_arm64.expect +++ b/tests/tests2/73_arm64.expect @@ -121,3 +121,18 @@ f8f8f8f8 7fffc0 3fff80003fff800 7fffffffffe00 +abcd1234 +abcd00001234 +abcd000000001234 +abcd12340000 +abcd000012340000 +abcd123400000000 +ffffffffabcd1234 +ffffabcdffff1234 +abcdffffffff1234 +ffffabcd1234ffff +abcdffff1234ffff +abcd1234ffffffff +ffffef0123456789 +abcdef012345ffff +abcdef0123456789 |
