blob: e6f6ae8d18b221056b46765f1e074e9f7732c058 [file] [log] [blame]
Weiming Zhao286304a2013-09-26 17:25:10 +00001; 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.
3
4declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
5
6define void @t6() {
7entry:
8;ARM: t6:
9;ARM: pld [sp]
10;ARM: pld [sp, #50]
11
12;THUMB2: t6:
13;THUMB2: pld [sp]
14;THUMB2: pld [sp, #50]
15
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
19call void @llvm.prefetch(i8* %0, i32 0, i32 3, i32 1)
20call void @llvm.prefetch(i8* %1, i32 0, i32 3, i32 1)
21ret void
22}