// #target: macos-x64
module test;
import std::io;

fn void main()
{
	int a;
	$$prefetch(&a, 1, 3);
	$$prefetch(&a, 0, 1);
	@prefetch(&a);
}

/* #expect: test.ll

  %a = alloca i32, align 4
  store i32 0, ptr %a, align 4
  call void @llvm.prefetch.p0(ptr %a, i32 1, i32 3, i32 1)
  call void @llvm.prefetch.p0(ptr %a, i32 0, i32 1, i32 1)
  call void @llvm.prefetch.p0(ptr %a, i32 0, i32 3, i32 1)
