xref: /llvm-project/llvm/test/MC/X86/apx/long-instruction-err.s (revision 96b2c3bde72ec6b681b03370f9650cfd03e66753)
1# RUN: not llvm-mc -triple x86_64 -show-encoding %s 2>&1 | FileCheck %s
2
3# CHECK: [[#@LINE+2]]:1: error: instruction length exceeds the limit of 15
4# CHECK: addq    $1234, %cs:-96, %rax
5addq    $1234, %cs:-96, %rax
6
7# CHECK: [[#@LINE+2]]:1: error: instruction length exceeds the limit of 15
8# CHECK: subq    $1234, %fs:257(%rbx, %rcx), %rax
9subq    $1234, %fs:257(%rbx, %rcx), %rax
10
11# CHECK: [[#@LINE+2]]:1: error: instruction length exceeds the limit of 15
12# CHECK: orq     $1234, 257(%ebx, %ecx), %rax
13orq     $1234, 257(%ebx, %ecx), %rax
14
15# CHECK: [[#@LINE+2]]:1: error: instruction length exceeds the limit of 15
16# CHECK: xorq    $1234, %gs:257(%ebx), %rax
17xorq    $1234, %gs:257(%ebx), %rax
18
19# CHECK: [[#@LINE+2]]:1: error: instruction length exceeds the limit of 15
20# CHECK: {nf} andq    $1234, %cs:-96
21{nf} andq    $1234, %cs:-96
22
23# CHECK: [[#@LINE+2]]:1: error: instruction length exceeds the limit of 15
24# CHECK: {evex} adcq    $1234, %cs:-96
25{evex} adcq    $1234, %cs:-96
26