• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=aarch64 -mattr=+no-quad-ldst-pairs -verify-machineinstrs -asm-verbose=false | FileCheck %s
2; RUN: llc < %s -march=aarch64 -mcpu=exynos-m1 -verify-machineinstrs -asm-verbose=false | FileCheck %s
3
4; CHECK-LABEL: test_nopair_st
5; CHECK: str
6; CHECK: stur
7; CHECK-NOT: stp
8define void @test_nopair_st(double* %ptr, <2 x double> %v1, <2 x double> %v2) {
9  %tmp1 = bitcast double* %ptr to <2 x double>*
10  store <2 x double> %v2, <2 x double>* %tmp1, align 16
11  %add.ptr = getelementptr inbounds double, double* %ptr, i64 -2
12  %tmp = bitcast double* %add.ptr to <2 x double>*
13  store <2 x double> %v1, <2 x double>* %tmp, align 16
14  ret void
15}
16
17; CHECK-LABEL: test_nopair_ld
18; CHECK: ldr
19; CHECK: ldr
20; CHECK-NOT: ldp
21define <2 x i64> @test_nopair_ld(i64* %p) {
22  %a1 = bitcast i64* %p to <2 x i64>*
23  %tmp1 = load <2 x i64>, < 2 x i64>* %a1, align 8
24  %add.ptr2 = getelementptr inbounds i64, i64* %p, i64 2
25  %a2 = bitcast i64* %add.ptr2 to <2 x i64>*
26  %tmp2 = load <2 x i64>, <2 x i64>* %a2, align 8
27  %add = add nsw <2 x i64> %tmp1, %tmp2
28  ret <2 x i64> %add
29}
30