1// errorcheck -0 -d=ssa/tighten/debug=1
2
3//go:build arm64
4
5// Copyright 2023 The Go Authors. All rights reserved.
6// Use of this source code is governed by a BSD-style
7// license that can be found in the LICENSE file.
8
9package main
10
11var (
12	e  any
13	ts uint16
14)
15
16func moveValuesWithMemoryArg(len int) {
17	for n := 0; n < len; n++ {
18		// Load of e.data is lowed as a MOVDload op, which has a memory
19		// argument. It's moved near where it's used.
20		_ = e != ts // ERROR "MOVDload is moved$" "MOVDaddr is moved$"
21	}
22}
23