xref: /aosp_15_r20/external/llvm/test/MC/X86/intel-syntax-invalid-scale.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
2// RUN: FileCheck < %t.err %s
3
4.intel_syntax
5
6// CHECK: error: scale factor in address must be 1, 2, 4 or 8
7    lea rax, [rdi + rdx*64]
8// CHECK: error: scale factor in address must be 1, 2, 4 or 8
9    lea rax, [rdi + rdx*32]
10// CHECK: error: scale factor in address must be 1, 2, 4 or 8
11    lea rax, [rdi + rdx*16]
12