[OCaml] (PR16318) Add missing argument to Llvm.const_intcast
[oota-llvm.git] / test / CodeGen / ARM / prefetch-thumb.ll
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.
3
4 declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
5
6 define void @t6() {
7 entry:
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
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)
21 ret void
22 }