brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 107986a Raw
41 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=i386-unknown-unknown-code16 %s | llvm-objdump --triple=i386-unknown-unknown-code16 -d - | FileCheck %s2 3# Ensure that the "movzbl" is aligned such that the prefixes 0x67 0x66 are4# properly included in the "movz" instruction.5 6# CHECK-LABEL: <test>:7# CHECK:           1c: 8d b4 00 00                  	leaw	(%si), %si8# CHECK-NEXT:      20: 66 90                        	nop9# CHECK-NEXT:      22: 66 89 c7                     	movl	%eax, %edi10# CHECK-NEXT:      25: 66 31 db                     	xorl	%ebx, %ebx11# CHECK-NEXT:      28: 8d b4 00 00                  	leaw	(%si), %si12# CHECK-NEXT:      2c: 8d b4 00 00                      leaw	(%si), %si13# CHECK-NEXT:      30: 67 66 0f b6 0c 1e            	movzbl	(%esi,%ebx), %ecx14# CHECK-NEXT:      36: 66 e8 14 00 00 00            	calll	0x50 <called>15# CHECK-NEXT:      3c: 8d 74 00                     	leaw	(%si), %si16 17# CHECK-LABEL: <called>:18# CHECK-NEXT:      50: 90                           	nop19# CHECK-NEXT:      51: 66 c3                        	retl20 21	.text22	.code16gcc23	.globl	test24	.p2align	425	.type	test,@function26test:27	.nops	3428	movl	%eax, %edi29	xorl	%ebx, %ebx30	.p2align	431	movzbl	(%esi,%ebx), %ecx32	calll	called33	.nops	334	retl35 36	.p2align	437	.type	called,@function38called:39	.nops	140	retl41