[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / intel-syntax-invalid-scale.s
blob702f08a2f176fc708c1f7064ac3deadd6d97aad3
1 // RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
2 // RUN: FileCheck < %t.err %s
4 .intel_syntax
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 // CHECK: error: Scale can't be negative
13 lea rax, [rdi + rdx*-8]
14 // CHECK: error: scale factor in address must be 1, 2, 4 or 8
15 lea rax, [rdi + -1*rdx]