diff options
Diffstat (limited to 'test/codegen')
| -rw-r--r-- | test/codegen/copy.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/codegen/copy.go b/test/codegen/copy.go index 4c4c857460..17ee8bc807 100644 --- a/test/codegen/copy.go +++ b/test/codegen/copy.go @@ -151,3 +151,9 @@ func ptrBothOffset() { // s390x:-"BEQ",-"BNE" copy(x[1:], x[2:]) } + +// Verify #62698 on PPC64. +func noMaskOnCopy(a []int, s string, x int) int { + // ppc64x:-"MOVD\t$-1", -"AND" + return a[x&^copy([]byte{}, s)] +} |
