1
; RUN: llc < %s -march=x86-64 > %t
2
; RUN: grep mov %t | count 6
3
; RUN: grep {movb %ah, (%rsi)} %t | count 3
4
; RUN: llc < %s -march=x86 > %t
5
; RUN: grep mov %t | count 3
6
; RUN: grep {movb %ah, (%e} %t | count 3
8
; Use h-register extract and store.
10
define void @foo16(i16 inreg %p, i8* inreg %z) nounwind {
12
%t = trunc i16 %q to i8
16
define void @foo32(i32 inreg %p, i8* inreg %z) nounwind {
18
%t = trunc i32 %q to i8
22
define void @foo64(i64 inreg %p, i8* inreg %z) nounwind {
24
%t = trunc i64 %q to i8