1# RUN: llvm-mc -filetype=obj -triple=i386-unknown-unknown-code16 %s | llvm-objdump --triple=i386-unknown-unknown-code16 -d - | FileCheck %s 2 3# Ensure that the "movzbl" is aligned such that the prefixes 0x67 0x66 are 4# properly included in the "movz" instruction. 5 6# CHECK-LABEL: <test>: 7# CHECK: 1c: 8d b4 00 00 leaw (%si), %si 8# CHECK-NEXT: 20: 66 90 nop 9# CHECK-NEXT: 22: 66 89 c7 movl %eax, %edi 10# CHECK-NEXT: 25: 66 31 db xorl %ebx, %ebx 11# CHECK-NEXT: 28: 8d b4 00 00 leaw (%si), %si 12# CHECK-NEXT: 2c: 8d b4 00 00 leaw (%si), %si 13# CHECK-NEXT: 30: 67 66 0f b6 0c 1e movzbl (%esi,%ebx), %ecx 14# CHECK-NEXT: 36: 66 e8 14 00 00 00 calll 0x50 <called> 15# CHECK-NEXT: 3c: 8d 74 00 leaw (%si), %si 16 17# CHECK-LABEL: <called>: 18# CHECK-NEXT: 50: 90 nop 19# CHECK-NEXT: 51: 66 c3 retl 20 21 .text 22 .code16gcc 23 .globl test 24 .p2align 4 25 .type test,@function 26test: 27 .nops 34 28 movl %eax, %edi 29 xorl %ebx, %ebx 30 .p2align 4 31 movzbl (%esi,%ebx), %ecx 32 calll called 33 .nops 3 34 retl 35 36 .p2align 4 37 .type called,@function 38called: 39 .nops 1 40 retl 41