1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/X86/address-size.s
Joerg Sonnenberger 82af1c8704 Fix generation of the address size override prefix. Add assertions for
the invalid cases. At least 16bit operand in 64bit mode is currently not
rejected in the parser.

llvm-svn: 153166
2012-03-21 05:48:07 +00:00

14 lines
334 B
ArmAsm

// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
.code64
movb $0x0, (%esi)
// CHECK: encoding: [0x67,0xc6,0x06,0x00]
movb $0x0, (%rsi)
// CHECK: encoding: [0xc6,0x06,0x00]
.code32
movb $0x0, (%si)
// CHECK: encoding: [0x67,0xc6,0x06,0x00]
movb $0x0, (%esi)
// CHECK: encoding: [0xc6,0x06,0x00]