diff options
author | Alice Carlotti <alice.carlotti@arm.com> | 2025-04-20 23:12:00 +0100 |
---|---|---|
committer | Alice Carlotti <alice.carlotti@arm.com> | 2025-05-09 20:27:21 +0100 |
commit | f495cce64504db4b66a23479022c887fa04a1242 (patch) | |
tree | 5ff5c6ab02e413c6671c69d94ebc0ce29163542a | |
parent | 87d10eecf9db0e77948e701387111d20c1211da0 (diff) | |
download | binutils-f495cce64504db4b66a23479022c887fa04a1242.zip binutils-f495cce64504db4b66a23479022c887fa04a1242.tar.gz binutils-f495cce64504db4b66a23479022c887fa04a1242.tar.bz2 |
aarch64: Add new test exception-generation.d
svc and dcps* were already tested, but are included here as part of the
same encoding group.
-rw-r--r-- | gas/testsuite/gas/aarch64/exception-generation.d | 28 | ||||
-rw-r--r-- | gas/testsuite/gas/aarch64/exception-generation.s | 26 |
2 files changed, 54 insertions, 0 deletions
diff --git a/gas/testsuite/gas/aarch64/exception-generation.d b/gas/testsuite/gas/aarch64/exception-generation.d new file mode 100644 index 0000000..e35cccd --- /dev/null +++ b/gas/testsuite/gas/aarch64/exception-generation.d @@ -0,0 +1,28 @@ +#as: -march=armv8-a +#objdump: -dr + +.*: file format .* + + +Disassembly of section \.text: + +0+ <\.text>: + *[0-9a-f]+: d4000001 svc #0x0 + *[0-9a-f]+: d41fffe1 svc #0xffff + *[0-9a-f]+: d4000002 hvc #0x0 + *[0-9a-f]+: d41fffe2 hvc #0xffff + *[0-9a-f]+: d4000003 smc #0x0 + *[0-9a-f]+: d41fffe3 smc #0xffff + *[0-9a-f]+: d4200000 brk #0x0 + *[0-9a-f]+: d43fffe0 brk #0xffff + *[0-9a-f]+: d4400000 hlt #0x0 + *[0-9a-f]+: d45fffe0 hlt #0xffff + *[0-9a-f]+: d4a00001 dcps1 + *[0-9a-f]+: d4a00001 dcps1 + *[0-9a-f]+: d4bfffe1 dcps1 #0xffff + *[0-9a-f]+: d4a00002 dcps2 + *[0-9a-f]+: d4a00002 dcps2 + *[0-9a-f]+: d4bfffe2 dcps2 #0xffff + *[0-9a-f]+: d4a00003 dcps3 + *[0-9a-f]+: d4a00003 dcps3 + *[0-9a-f]+: d4bfffe3 dcps3 #0xffff diff --git a/gas/testsuite/gas/aarch64/exception-generation.s b/gas/testsuite/gas/aarch64/exception-generation.s new file mode 100644 index 0000000..56294fe --- /dev/null +++ b/gas/testsuite/gas/aarch64/exception-generation.s @@ -0,0 +1,26 @@ + svc #0 + svc #65535 + + hvc #0 + hvc #65535 + + smc #0 + smc #65535 + + brk #0 + brk #65535 + + hlt #0 + hlt #65535 + + dcps1 + dcps1 #0 + dcps1 #65535 + + dcps2 + dcps2 #0 + dcps2 #65535 + + dcps3 + dcps3 #0 + dcps3 #65535 |