mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
2f49a7b24b
scale factors in memory addresses. As it does for .att_syntax. It was producing: Assertion failed: (((Scale == 1 || Scale == 2 || Scale == 4 || Scale == 8)) && "Invalid scale!"), function CreateMem, file /Volumes/SandBox/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp, line 1133. rdar://14967214 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199942 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
380 B
ArmAsm
12 lines
380 B
ArmAsm
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
|
|
// RUN: FileCheck < %t.err %s
|
|
|
|
.intel_syntax
|
|
|
|
// CHECK: error: scale factor in address must be 1, 2, 4 or 8
|
|
lea rax, [rdi + rdx*64]
|
|
// CHECK: error: scale factor in address must be 1, 2, 4 or 8
|
|
lea rax, [rdi + rdx*32]
|
|
// CHECK: error: scale factor in address must be 1, 2, 4 or 8
|
|
lea rax, [rdi + rdx*16]
|