[llvm] [GlobalISel] Implement G_UADDO/G_UADDE/G_SADDO/G_SADDE for computeKnownBits (PR #165497)
Yatao Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 19:10:26 PDT 2025
================
@@ -0,0 +1,63 @@
+# NOTE: Assertions have been autogenerated by utils/update_givaluetracking_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple=aarch64 -passes="print<gisel-value-tracking>" -filetype=null %s 2>&1 | FileCheck %s
+
+---
+name: CstCarryInZeroOutZero
+body: |
+ bb.1:
+ ; CHECK-LABEL: name: @CstCarryInZeroOutZero
+ ; CHECK-NEXT: %0:_ KnownBits:00000010 SignBits:6
+ ; CHECK-NEXT: %1:_ KnownBits:00011000 SignBits:3
+ ; CHECK-NEXT: %2:_ KnownBits:0 SignBits:1
+ ; CHECK-NEXT: %3:_ KnownBits:0001101? SignBits:3
+ ; CHECK-NEXT: %4:_ KnownBits:? SignBits:1
----------------
ningxinr wrote:
It seems the calculation with the carry bit is not propagated to the later computation. I will take a look.
https://github.com/llvm/llvm-project/pull/165497
More information about the llvm-commits
mailing list