1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=instsimplify -S %s | FileCheck %s
6 ; CHECK-NEXT: ret i32 undef
14 ; CHECK-NEXT: ret i32 undef
16 %r = and i32 -1, undef
20 define i32 @and3_no_identity() {
21 ; CHECK-LABEL: @and3_no_identity(
22 ; CHECK-NEXT: ret i32 0
24 %r = and i32 10, undef
30 ; CHECK-NEXT: ret i32 undef
38 ; CHECK-NEXT: ret i32 undef
44 define i32 @or3_no_identity() {
45 ; CHECK-LABEL: @or3_no_identity(
46 ; CHECK-NEXT: ret i32 -1