codekingpro/portable-devtools
114k
1// asmcheck2 3// Copyright 2019 The Go Authors. All rights reserved.4// Use of this source code is governed by a BSD-style5// license that can be found in the LICENSE file.6 7package codegen8 9// Make sure we remove both inline marks in the following code.10// Both +5 and +6 should map to real instructions, which can11// be used as inline marks instead of explicit nops.12func f(x int) int {13 // amd64:-"XCHGL"14 x = g(x) + 515 // amd64:-"XCHGL"16 x = g(x) + 617 return x18}19 20func g(x int) int {21 return x >> 322}23 