1; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips -verify-machineinstrs < %s | FileCheck %s
2
3; Function Attrs: nounwind readnone
4define i1 @fun(i32 %a, i32 %b) {
5entry:
6; CHECK-LABEL: fun:
7; CHECK: xor16
8  %reg1 = or i32 %a, %b
9  %reg2 = xor i32 %reg1, -1
10  %bool1 = icmp ne i32 %a, -1
11  %bool1.ext = zext i1 %bool1 to i32
12  %bool2 = icmp eq i32 %bool1.ext, %reg2
13  ret i1 %bool2
14}
15