1 ; RUN: opt < %s -instsimplify -S | FileCheck %s
3 define i64 @pow2(i32 %x) {
6 %x2 = and i32 %x, %negx
7 %e = zext i32 %x2 to i64
9 %e2 = and i64 %e, %nege
14 define i64 @pow2b(i32 %x) {
15 ; CHECK-LABEL: @pow2b(
17 %e = zext i32 %sh to i64
19 %e2 = and i64 %e, %nege