39 lines · plain
1// RUN: not llvm-mc -triple x86_64-unknown-unknown --show-encoding %s 2>&1 | FileCheck %s2// RUN: not llvm-mc -triple x86_64-unknown-unknown --show-encoding -x86-asm-syntax=intel %s 2>&1 | FileCheck %s --check-prefix=CHECK-INTEL3 4// CHECK: error: can't encode 'dh' in an instruction requiring EVEX/REX2/REX prefix5movzx %dh, %rsi6 7// CHECK: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix8movzx %ah, %r8d9 10// CHECK: error: can't encode 'bh' in an instruction requiring EVEX/REX2/REX prefix11add %bh, %sil12 13// CHECK: error: can't encode 'ch' in an instruction requiring EVEX/REX2/REX prefix14mov %ch, (%r8)15 16// CHECK: error: can't encode 'dh' in an instruction requiring EVEX/REX2/REX prefix17mov %dh, (%rax,%r8)18 19// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix20add ah, ah, ah21 22// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix23and ah, byte ptr [-13426159], ah24 25// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix26ccmpa {dfv=of,cf} byte ptr [r8 + 4*rax + 291], ah27 28// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix29ccmpae {dfv=of,cf} byte ptr [r8 + 4*rax + 291], ah30 31// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix32sar ah, byte ptr [-13426159]33 34// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix35{rex2} add ah, al36 37// CHECK-INTEL: error: can't encode 'ah' in an instruction requiring EVEX/REX2/REX prefix38{rex} add ah, al39