1 ; RUN: llc < %s -march=x86-64 | FileCheck %s
3 define zeroext i16 @t1(i32 %on_off) nounwind {
5 %0 = sub i32 %on_off, 1
7 %2 = trunc i32 %1 to i16
8 %3 = zext i16 %2 to i32
9 %4 = trunc i32 %3 to i16
14 define i32 @t2(i32 %on_off) nounwind {
16 %0 = sub i32 %on_off, 1
18 %2 = and i32 %1, 65535