[llvm] [SLP][NFC] Add a new test for store chains that mix different sizes of values (PR #101979)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 09:26:10 PDT 2024
================
@@ -0,0 +1,34 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-unknown-linux < %s | FileCheck %s
+
+define void @test(ptr %p) {
+; CHECK-LABEL: define void @test(
+; CHECK-SAME: ptr [[P:%.*]]) {
+; CHECK-NEXT: [[ENTRY:.*:]]
+; CHECK-NEXT: [[IDX1:%.*]] = getelementptr i8, ptr [[P]], i64 1
+; CHECK-NEXT: [[IDX_64_9:%.*]] = getelementptr i64, ptr [[P]], i64 9
+; CHECK-NEXT: store i64 1, ptr [[IDX_64_9]], align 8
+; CHECK-NEXT: store <8 x i8> zeroinitializer, ptr [[IDX1]], align 4
----------------
tcwzxx wrote:
The check is generated after the patch, so the correct process is to add a current version of the compiler test case (NFC) and then update this test case in the patch?
https://github.com/llvm/llvm-project/pull/101979
More information about the llvm-commits
mailing list