blob: 02798285b4996b74768237696e0573e76da27cf4 [file] [log] [blame]
Akira Hatanakaa4b97f32011-09-13 20:13:58 +00001; 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 = volatile load 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** @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