diff --git a/test/CodeGen/ARM/thumb2-size-opt.ll b/test/CodeGen/ARM/thumb2-size-opt.ll index 532c3d348fc..62938c61efd 100644 --- a/test/CodeGen/ARM/thumb2-size-opt.ll +++ b/test/CodeGen/ARM/thumb2-size-opt.ll @@ -37,3 +37,12 @@ entry: %and = and i32 %neg, %a ret i32 %and } + +define i32 @eor(i32 %a, i32 %b) nounwind readnone { +; CHECK-LABEL: eor: +; CHECK: eor.w r{{[0-9]+}}, r{{[0-9]+}}, r{{[0-9]+}} @ encoding: [{{0x..,0x..,0x..,0x..}}] +; CHECK-OPT: eors r{{[0-7]}}, r{{[0-7]}} @ encoding: [{{0x..,0x..}}] +entry: + %eor = xor i32 %a, %b + ret i32 %eor +}