efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land.
LGTM with a couple minor comments. ================ Comment at: clang/lib/CodeGen/CGBuiltin.cpp:7727 + Value *Offset = Ops.size() > 3 ? Ops[2] : Builder.getInt32(0); + BasePtr = Builder.CreateGEP(MemoryTy, BasePtr, Offset); + ---------------- It seems sort of silly to emit a no-op bitcast+gep+bitcast in the `Ops.size() <= 3` case, but I guess it doesn't matter much. ================ Comment at: clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_prfb.c:22 + // expected-error@+1 {{argument value -1 is outside the valid range [0, 13]}} + return svprfb(pg, base, -1); +} ---------------- Maybe worth adding a negative test for svprfb_vnum? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D78674/new/ https://reviews.llvm.org/D78674 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits