x86: warn about insns exceeding the 15-byte limit
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-optimize-1.s
CommitLineData
b6f8c7c4
L
1# Check 64bit instructions with optimized encoding
2
3 .allow_index_reg
4 .text
5_start:
6 andq $foo, %rax
7 andq $((1<<31) - 1), %rax
8 andq $((1<<31) - 1), %rbx
9 andq $((1<<31) - 1), %r14
10 andq $-((1<<31)), %rax
11 andq $-((1<<31)), %rbx
12 andq $-((1<<31)), %r14
b8364fa7
JB
13 andq $((1<<7) - 1), %rax
14 andq $((1<<7) - 1), %rbx
15 andq $((1<<7) - 1), %r14
16 andq $-((1<<7)), %rax
17 andq $-((1<<7)), %rbx
18 andq $-((1<<7)), %r14
b6f8c7c4
L
19 testq $((1<<31) - 1), %rax
20 testq $((1<<31) - 1), %rbx
21 testq $((1<<31) - 1), %r14
22 testq $-((1<<31)), %rax
23 testq $-((1<<31)), %rbx
24 testq $-((1<<31)), %r14
25 xorq (%rsi), %rax
26 xorq %rax, %rax
27 xorq %rbx, %rbx
28 xorq %r14, %r14
29 xorq %rdx, %rax
30 xorq %rdx, %rbx
31 xorq %rdx, %r14
32 subq %rax, %rax
33 subq %rbx, %rbx
34 subq %r14, %r14
35 subq %rdx, %rax
36 subq %rdx, %rbx
37 subq %rdx, %r14
38 andq $((1<<31) - 1), (%rax)
39 andq $-((1<<31)), (%rax)
40 testq $((1<<31) - 1), (%rax)
41 testq $-((1<<31)), (%rax)
42 mov $((1<<31) - 1),%rax
43 movq $((1<<31) - 1),%rax
44 mov $((1<<31) - 1),%r8
45 movq $((1<<31) - 1),%r8
46 mov $0xffffffff,%rax
47 movq $0xffffffff,%rax
48 mov $0xffffffff,%r8
49 movq $0xffffffff,%r8
50 mov $1023,%rax
51 movq $1023,%rax
52 mov $0x100000000,%rax
53 movq $0x100000000,%rax
d3d50934
L
54 clrq %rax
55 clrq %r14
This page took 0.093403 seconds and 4 git commands to generate.