[llvm] [AArch64] Lower disjoint_or+not to eon. (PR #147279)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 08:07:31 PDT 2025


================
@@ -30,3 +30,24 @@ entry:
   %shl2 = shl i64 %xor, %xor1
   ret i64 %shl2
 }
+
+; Check that eon is generated if the xor is a disjoint or.
+define i64 @disjoint_or(i64 %a, i64 %b) {
+; CHECK-LABEL: disjoint_or:
+; CHECK: eon
+; CHECK: ret
+  %or = or disjoint i64 %a, %b
----------------
david-arm wrote:

Yeah that sounds like a good idea, thanks a lot!

https://github.com/llvm/llvm-project/pull/147279


More information about the llvm-commits mailing list