1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=X64
3 ; X64-NEXT: movb %ah, (%rsi)
5 ; X64-NEXT: movb %ah, (%rsi)
7 ; X64-NEXT: movb %ah, (%rsi)
10 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s -check-prefix=X32
12 ; X32-NEXT: movb %ah, (%esi)
14 ; X32-NEXT: movb %ah, (%esi)
16 ; X32-NEXT: movb %ah, (%esi)
19 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s -check-prefix=W64
21 ; W64: movb %ch, (%rdx)
23 ; W64: movb %ch, (%rdx)
25 ; W64: movb %ch, (%rdx)
28 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefix=X86
37 ; Use h-register extract and store.
39 define void @foo16(i16 inreg %p, i8* inreg %z) nounwind {
41 %t = trunc i16 %q to i8
45 define void @foo32(i32 inreg %p, i8* inreg %z) nounwind {
47 %t = trunc i32 %q to i8
51 define void @foo64(i64 inreg %p, i8* inreg %z) nounwind {
53 %t = trunc i64 %q to i8