5 # output: pass\nexit 0 (0x0)\n
7 Tests for BPF endianness-conversion instructions in simulator
10 Both 'be' and 'le' ISAs have both endbe and endle instructions. */
12 .include "testutils.inc"
18 lddw
%r1, 0x12345678deadbeef
20 fail_ne
%r1, 0xefbeadde78563412
22 fail_ne
%r1, 0x12345678deadbeef
24 /* `bitsize` < 64 will truncate */
26 fail_ne
%r1, 0xefbeadde
28 fail_ne
%r1, 0xdeadbeef
35 /* endbe on be should be noop (except truncate) */
36 lddw
%r1, 0x12345678deadbeef
38 fail_ne
%r1, 0x12345678deadbeef
41 fail_ne
%r1, 0xdeadbeef