aboutsummaryrefslogtreecommitdiff
path: root/test/MC/X86/address-size.s
blob: b105b40ec568b0ebef33c74d4f2073f484631a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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]