1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-nacl | FileCheck %s
6 define zeroext i16 @t1(i32 %on_off) nounwind {
8 %0 = sub i32 %on_off, 1
10 %2 = trunc i32 %1 to i16
11 %3 = zext i16 %2 to i32
12 %4 = trunc i32 %3 to i16
17 define i32 @t2(i32 %on_off) nounwind {
19 %0 = sub i32 %on_off, 1
21 %2 = and i32 %1, 65535