1 ; RUN: llc < %s -march=thumb -mattr=+v7 | FileCheck %s -check-prefix=THUMB2
2 ; TODO: This test case will be merged back into prefetch.ll when ARM mode issue is solved.
4 declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
14 ;THUMB2: pld [sp, #50]
16 %red = alloca [100 x i8], align 1
17 %0 = getelementptr inbounds [100 x i8]* %red, i32 0, i32 0
18 %1 = getelementptr inbounds [100 x i8]* %red, i32 0, i32 50
19 call void @llvm.prefetch(i8* %0, i32 0, i32 3, i32 1)
20 call void @llvm.prefetch(i8* %1, i32 0, i32 3, i32 1)