Home | History | Annotate | Download | only in Mips
      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 
      7 define void @simple_vol_file() nounwind {
      8 entry:
      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 
     18 declare void @llvm.prefetch(i8* nocapture, i32, i32, i32) nounwind
     19 
     20