mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
363b599ec0
The existing matcher has lots of AT&T assembly dialect assumptions baked into it. In particular, the hack for resolving the size of a memory operand by appending the four most common suffixes doesn't work at all. The Intel assembly dialect mnemonic table has ambiguous entries, so we need to try matching multiple times with different operand sizes, since that's the only way to choose different instruction variants. This makes us more compatible with gas's implementation of Intel assembly syntax. MSVC assumes you want byte-sized operations for the instructions that we reject as ambiguous. Reviewed By: grosbach Differential Revision: http://reviews.llvm.org/D4747 llvm-svn: 216481
21 lines
303 B
ArmAsm
21 lines
303 B
ArmAsm
// RUN: llvm-mc %s -triple=i686-pc-windows | FileCheck %s
|
|
|
|
.intel_syntax
|
|
|
|
push [eax]
|
|
// CHECK: pushl (%eax)
|
|
call [eax]
|
|
// CHECK: calll *(%eax)
|
|
jmp [eax]
|
|
// CHECK: jmpl *(%eax)
|
|
|
|
// mode switch
|
|
.code16
|
|
|
|
push [eax]
|
|
// CHECK: pushw (%eax)
|
|
call [eax]
|
|
// CHECK: callw *(%eax)
|
|
jmp [eax]
|
|
// CHECK: jmpw *(%eax)
|