1 ; RUN: llc < %s -march=x86-64 | grep {movzbl %\[abcd\]h,} | count 4
2 ; RUN: llc < %s -march=x86 > %t
3 ; RUN: grep {incb %ah} %t | count 3
4 ; RUN: grep {movzbl %ah,} %t | count 3
6 ; Use h registers. On x86-64, codegen doesn't support general allocation
7 ; of h registers yet, due to x86 encoding complications.
9 define void @bar64(i64 inreg %x, i8* inreg %p) nounwind {
11 %t1 = trunc i64 %t0 to i8
17 define void @bar32(i32 inreg %x, i8* inreg %p) nounwind {
19 %t1 = trunc i32 %t0 to i8
25 define void @bar16(i16 inreg %x, i8* inreg %p) nounwind {
27 %t1 = trunc i16 %t0 to i8
33 define i64 @qux64(i64 inreg %x) nounwind {
35 %t1 = and i64 %t0, 255
39 define i32 @qux32(i32 inreg %x) nounwind {
41 %t1 = and i32 %t0, 255
45 define i16 @qux16(i16 inreg %x) nounwind {