2 # output: pass\nexit 0 (0x0)\n
4 Tests for mov and mov32 instructions */
6 .include "testutils.inc"
12 /* some basic sanity checks */
25 /* should NOT sign extend */
27 fail_ne
%r1, 0x00000000ffffffff
29 /* should sign extend */
31 fail_ne
%r2, 0xffffffffffffffff
33 mov
%r3, -2147483648 /* 0x80000000 */
35 /* should NOT sign extend */
37 fail_ne
%r4, 0x0000000080000000
39 /* should sign extend */
41 fail_ne
%r5, 0xffffffff80000000
43 mov32
%r1, -2147483648
45 fail_ne32
%r1, -2147483648
47 /* casting shenanigans */
49 fail_ne
%r1, +2147483648
52 fail_ne
%r2, +4294967295