1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
4 define i32 @test1(i8 %X) {
6 ; CHECK-NEXT: [[TMP1:%.*]] = and i8 [[X:%.*]], 8
7 ; CHECK-NEXT: [[Z:%.*]] = zext nneg i8 [[TMP1]] to i32
8 ; CHECK-NEXT: ret i32 [[Z]]
10 %Y = zext i8 %X to i32
11 %Z = and i32 %Y, 65544