[all-commits] [llvm/llvm-project] ba2db8: [test][AArch64] Adjust vector insertion lit tests

Björn Pettersson via All-commits all-commits at lists.llvm.org
Tue Jun 10 07:25:11 PDT 2025


  Branch: refs/heads/users/bjope/insertundef_1
  Home:   https://github.com/llvm/llvm-project
  Commit: ba2db8166775acc0187cc33f2cae6f73e86ae1cd
      https://github.com/llvm/llvm-project/commit/ba2db8166775acc0187cc33f2cae6f73e86ae1cd
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M llvm/test/CodeGen/AArch64/arm64-vector-insertion.ll

  Log Message:
  -----------
  [test][AArch64] Adjust vector insertion lit tests

The test cases test_insert_v16i8_insert_2_undef_base and
test_insert_v16i8_insert_2_undef_base_different_valeus in
CodeGen/AArch64/arm64-vector-insertion.ll was leaving element 8
in the vector as "undef" without any real explanation. It kind of
looked like a typo as the input IR looked like this
   %v.8 = insertelement <16 x i8> %v.7, i8 %a, i32 8
   %v.10 = insertelement <16 x i8> %v.7, i8 %a, i32 10
leaving %v.8 as unused.

This patch is cleaning up the tests a bit by adding separate test
cases to validate what is happening when skipping insert at index 8,
while amending the original tests cases to use %v.8 instead of %v.7
when creating %v.10.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list