diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/codegen/memcombine.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/codegen/memcombine.go b/test/codegen/memcombine.go index 6d6c33d947..ff67a442e4 100644 --- a/test/codegen/memcombine.go +++ b/test/codegen/memcombine.go @@ -918,3 +918,23 @@ func store16be(p *struct{ a, b uint16 }, x uint32) { // s390x:-"MOVH",-"SRW" p.b = uint16(x) } + +func storeBoolConst(p *struct{ a, b bool }) { + // amd64:"MOVW",-"MOVB" + // arm64:"MOVH",-"MOVB" + p.a = true + p.b = true +} +func issue66413(p *struct { + a byte + b bool + c bool + d int8 +}) { + // amd64:"MOVL",-"MOVB" + // arm64:"MOVW",-"MOVB" + p.a = 31 + p.b = false + p.c = true + p.d = 12 +} |