1 ; RUN: llc < %s -march=avr | FileCheck %s
3 define i8 @trunc8_loreg(i16 %x, i16 %y) {
4 ; CHECK-LABEL: trunc8_loreg:
7 %conv = trunc i16 %y to i8
11 define i8 @trunc8_hireg(i16 %x, i16 %y) {
12 ; CHECK-LABEL: trunc8_hireg:
15 %shr1 = lshr i16 %y, 8
16 %conv = trunc i16 %shr1 to i8