brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 8d13398 Raw
34 lines · plain
1; RUN: llc < %s -mtriple=armv7-linux-gnueabihf -arm-atomic-cfg-tidy=0 -float-abi=hard -mcpu=cortex-a9 -O3 | FileCheck %s2 3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32-S64"4 5; This test will generate spills/fills using vldmia instructions that access 24 bytes of memory.6; Check that we don't crash when we generate these instructions on Cortex-A9.7 8; CHECK: test:9; CHECK: vstmia10; CHECK: vldmia11define void @test(ptr %src) #0 {12entry:13  %0 = load <8 x i64>, ptr %src, align 814 15  %1 = getelementptr inbounds <8 x i64>, ptr %src, i32 116  %2 = load <8 x i64>, ptr %1, align 817 18  %3 = getelementptr inbounds <8 x i64>, ptr %src, i32 219  %4 = load <8 x i64>, ptr %3, align 820 21  %5 = getelementptr inbounds <8 x i64>, ptr %src, i32 322  %6 = load <8 x i64>, ptr %5, align 823 24  %7 = shufflevector <8 x i64> %0, <8 x i64> %2, <8 x i32> <i32 12, i32 4, i32 15, i32 14, i32 8, i32 13, i32 2, i32 9>25  %8 = shufflevector <8 x i64> %0, <8 x i64> %2, <8 x i32> <i32 1, i32 0, i32 3, i32 10, i32 5, i32 11, i32 7, i32 6>26 27  tail call void(<8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>) @foo(<8 x i64> %0, <8 x i64> %2, <8 x i64> %4, <8 x i64> %6, <8 x i64> %7, <8 x i64> %8)28  ret void29}30 31declare void @foo(<8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>, <8 x i64>)32 33attributes #0 = { noredzone "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "use-soft-float"="false" }34