xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/mipslopat.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; This test does not check the machine code output.
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips < %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@stat_vol_ptr_int = internal global i32* null, align 4
5*9880d681SAndroid Build Coastguard Worker@stat_ptr_vol_int = internal global i32* null, align 4
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @simple_vol_file() nounwind {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %tmp = load volatile i32*, i32** @stat_vol_ptr_int, align 4
10*9880d681SAndroid Build Coastguard Worker  %0 = bitcast i32* %tmp to i8*
11*9880d681SAndroid Build Coastguard Worker  call void @llvm.prefetch(i8* %0, i32 0, i32 0, i32 1)
12*9880d681SAndroid Build Coastguard Worker  %tmp1 = load i32*, i32** @stat_ptr_vol_int, align 4
13*9880d681SAndroid Build Coastguard Worker  %1 = bitcast i32* %tmp1 to i8*
14*9880d681SAndroid Build Coastguard Worker  call void @llvm.prefetch(i8* %1, i32 0, i32 0, i32 1)
15*9880d681SAndroid Build Coastguard Worker  ret void
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.prefetch(i8* nocapture, i32, i32, i32) nounwind
19*9880d681SAndroid Build Coastguard Worker
20