1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=newgvn -S %s | FileCheck %s
8 ; CHECK-NEXT: [[A:%.*]] = xor i2 [[TMP0:%.*]], -1
9 ; CHECK-NEXT: [[B:%.*]] = select i1 [[TMP1:%.*]], i2 [[A]], i2 undef
10 ; CHECK-NEXT: [[C:%.*]] = and i2 [[A]], [[B]]
11 ; CHECK-NEXT: ret i2 [[C]]
14 %b = select i1 %1, i2 %a, i2 undef