[llvm] [NVPTX] Fixup v2i8 parameter and return lowering (PR #145585)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 12:26:35 PDT 2025


================
@@ -14,7 +14,7 @@ define i1 @and_ord(float %a, float %b) {
 ; CHECK-NEXT:    ld.param.b32 %r1, [and_ord_param_0];
 ; CHECK-NEXT:    ld.param.b32 %r2, [and_ord_param_1];
 ; CHECK-NEXT:    setp.num.f32 %p1, %r1, %r2;
-; CHECK-NEXT:    selp.b32 %r3, 1, 0, %p1;
+; CHECK-NEXT:    selp.b32 %r3, -1, 0, %p1;
----------------
AlexMaclean wrote:

This is actually a result of this: 

https://github.com/llvm/llvm-project/blob/a0c5f1992d2188dd58987445aa00a55edad2357f/llvm/lib/Target/NVPTX/NVPTXInstrInfo.td#L2508-L2511

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


More information about the llvm-commits mailing list