llvm-for-llvmta/test/MC/X86/encoder-fail.s

17 lines
546 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
// RUN: not llvm-mc -triple x86_64-unknown-unknown --show-encoding %s 2>&1 | FileCheck %s
// CHECK: error: can't encode 'dh' in an instruction requiring REX prefix
movzx %dh, %rsi
// CHECK: error: can't encode 'ah' in an instruction requiring REX prefix
movzx %ah, %r8d
// CHECK: error: can't encode 'bh' in an instruction requiring REX prefix
add %bh, %sil
// CHECK: error: can't encode 'ch' in an instruction requiring REX prefix
mov %ch, (%r8)
// CHECK: error: can't encode 'dh' in an instruction requiring REX prefix
mov %dh, (%rax,%r8)