[llvm] [RISCV] Add missing check before accessing pointer (PR #121816)

Mikhail R. Gadelha via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 07:01:30 PST 2025


================
@@ -0,0 +1,33 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
+; RUN: llc -mtriple=riscv64 < %s | FileCheck -check-prefixes=NO-ZBA %s
+; RUN: llc -mtriple=riscv64 -mattr=+zba < %s | FileCheck -check-prefixes=ZBA %s
+
+define ptr @g(ptr %0, i32 %1) {
----------------
mikhailramalho wrote:

done


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


More information about the llvm-commits mailing list