1; This test does not check the machine code output.
2; RUN: llc -march=mips < %s
3
4@stat_vol_ptr_int = internal global i32* null, align 4
5@stat_ptr_vol_int = internal global i32* null, align 4
6
7define void @simple_vol_file() nounwind {
8entry:
9  %tmp = load volatile i32*, i32** @stat_vol_ptr_int, align 4
10  %0 = bitcast i32* %tmp to i8*
11  call void @llvm.prefetch(i8* %0, i32 0, i32 0, i32 1)
12  %tmp1 = load i32*, i32** @stat_ptr_vol_int, align 4
13  %1 = bitcast i32* %tmp1 to i8*
14  call void @llvm.prefetch(i8* %1, i32 0, i32 0, i32 1)
15  ret void
16}
17
18declare void @llvm.prefetch(i8* nocapture, i32, i32, i32) nounwind
19
20