27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s3 4; This code causes an assertion failure if dereferenceable flag is not properly set when in merging consecutive stores5 6define <2 x i64> @func(ptr %pdst) {7; CHECK-LABEL: func:8; CHECK: # %bb.0: # %entry9; CHECK-NEXT: addi 4, 1, -3210; CHECK-NEXT: lxvd2x 0, 0, 411; CHECK-NEXT: xxswapd 34, 012; CHECK-NEXT: lxvd2x 0, 0, 413; CHECK-NEXT: stxvd2x 0, 0, 314; CHECK-NEXT: blr15entry:16 %a = alloca [4 x i64], align 817 %psrc1 = getelementptr inbounds i64, ptr %a, i64 118 %d0 = load i64, ptr %a19 %d1 = load i64, ptr %psrc120 %pdst1 = getelementptr inbounds i64, ptr %pdst, i64 121 store i64 %d0, ptr %pdst, align 822 store i64 %d1, ptr %pdst1, align 823 %vec = load <2 x i64>, ptr %a24 ret <2 x i64> %vec25}26 27