[llvm] Matched some basic ISD::AVGFLOORU patterns (PR #84903)
Shourya Goel via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 09:48:20 PDT 2024
================
@@ -0,0 +1,11 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=aarch64 | FileCheck %s
+
+define i4 @fixedwidth(i4 %a0, i4 %a1) {
+; CHECK-LABEL: fixedwidth:
+ %and = and i4 %a0, %a1
+ %xor = xor i4 %a0, %a1
+ %srl = lshr i4 %xor, 1
+ %res = add i4 %and, %srl
+ ret i4 %res
+}
----------------
Sh0g0-1758 wrote:
I moved the test and ran the script. but this had an unintended effect of modifying other tests also.
https://github.com/llvm/llvm-project/pull/84903
More information about the llvm-commits
mailing list