[llvm] [X86][APX] Enable NDD tunings (PR #186049)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 17 06:14:27 PDT 2026


================
@@ -54,11 +57,19 @@ define i64 @adc64rr(i64 %a, i64 %b, i64 %x, i64 %y) nounwind {
 }
 
 define i8 @adc8rm(i8 %a, ptr %ptr, i8 %x, i8 %y) nounwind {
-; CHECK-LABEL: adc8rm:
-; CHECK:       # %bb.0:
-; CHECK-NEXT:    cmpb %dl, %cl # encoding: [0x38,0xd1]
-; CHECK-NEXT:    adcb (%rsi), %dil, %al # encoding: [0x62,0xf4,0x7c,0x18,0x12,0x3e]
-; CHECK-NEXT:    retq # encoding: [0xc3]
+; NDD-LABEL: adc8rm:
+; NDD:       # %bb.0:
+; NDD-NEXT:    movl %edi, %eax # encoding: [0x89,0xf8]
+; NDD-NEXT:    cmpb %dl, %cl # encoding: [0x38,0xd1]
+; NDD-NEXT:    {evex} adcb (%rsi), %al # encoding: [0x62,0xf4,0x7c,0x08,0x12,0x06]
----------------
phoebewang wrote:

It turns out we shouldn't select these {evex} variants. Fixed by https://github.com/llvm/llvm-project/pull/187018

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


More information about the llvm-commits mailing list