diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-11-28 14:59:38 +0100 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-11-28 15:01:18 +0100 |
commit | 9d4db627b2a6a78f7f7959668da94e79e17a7e34 (patch) | |
tree | 7332f06f37336f5fb73a379c4aafe2e414b3f903 /sim/testsuite/bpf/endbe.s | |
parent | 4c5f2370fd1b53d56504f28ba55277dbed2a5b69 (diff) | |
download | binutils-9d4db627b2a6a78f7f7959668da94e79e17a7e34.zip binutils-9d4db627b2a6a78f7f7959668da94e79e17a7e34.tar.gz binutils-9d4db627b2a6a78f7f7959668da94e79e17a7e34.tar.bz2 |
sim: bpf: do not use semicolon to begin comments
The BPF assembler has been updated to follow the clang convention in
the interpretation of semicolons: they separate statements and
directives, and do not start line comments.
Diffstat (limited to 'sim/testsuite/bpf/endbe.s')
-rw-r--r-- | sim/testsuite/bpf/endbe.s | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sim/testsuite/bpf/endbe.s b/sim/testsuite/bpf/endbe.s index 2f662ae..2b2de96 100644 --- a/sim/testsuite/bpf/endbe.s +++ b/sim/testsuite/bpf/endbe.s @@ -3,11 +3,11 @@ # ld: --EB # sim: -E big # output: pass\nexit 0 (0x0)\n -;;; endbe.s -;;; Tests for BPF endianness-conversion instructions in simulator -;;; running in BIG ENDIAN -;;; -;;; Both 'be' and 'le' ISAs have both endbe and endle instructions. +/* endbe.s + Tests for BPF endianness-conversion instructions in simulator + running in BIG ENDIAN + + Both 'be' and 'le' ISAs have both endbe and endle instructions. */ .include "testutils.inc" @@ -21,7 +21,7 @@ main: endle %r1, 64 fail_ne %r1, 0x12345678deadbeef - ;; `bitsize` < 64 will truncate + /* `bitsize` < 64 will truncate */ endle %r1, 32 fail_ne %r1, 0xefbeadde endle %r1, 32 @@ -32,7 +32,7 @@ main: endle %r1, 16 fail_ne %r1, 0xbeef - ;; endbe on be should be noop (except truncate) + /* endbe on be should be noop (except truncate) */ lddw %r1, 0x12345678deadbeef endbe %r1, 64 fail_ne %r1, 0x12345678deadbeef |