brintos

brintos / llvm-project-archived public Read only

0
0
Text · 994 B · 7c5dce4 Raw
23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -o - %s -mtriple aarch64-- -mattr +slow-misaligned-128store | FileCheck %s3; Checks for a bug where selection dag store merging would construct wrong4; indices when extracting values from vectors, resulting in an invalid5; lane duplication in this case.6; The only way I could trigger stores with mismatching types getting merged was7; via the aarch64 slow-misaligned-128store code splitting stores earlier.8 9; aarch64 feature slow-misaligned-128store splits the following store.10; store merging immediately merges it back together (but used to get the11; merging wrong), this is the only way I was able to reproduce the bug...12 13define void @func(ptr %sptr, ptr %dptr) {14; CHECK-LABEL: func:15; CHECK:       // %bb.0:16; CHECK-NEXT:    ldr q0, [x0]17; CHECK-NEXT:    str q0, [x1]18; CHECK-NEXT:    ret19  %load = load <2 x double>, ptr %sptr, align 820  store <2 x double> %load, ptr %dptr, align 421  ret void22}23