Skip to content

Commit 9432320

Browse files
committed
cmd/compile: fix PPC64.rules to correct failure in issue45344.go with regabi
This changes a rule in PPC64.rules to fix a failure in test/issue45344.go when regabi is enabled. Change-Id: I98baf2ae92c766b7276b0f3167b2e6fef37dfe84 Reviewed-on: https://go-review.googlesource.com/c/go/+/353789 Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
1 parent 3bbc823 commit 9432320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cmd/compile/internal/ssa/gen/PPC64.rules

+1-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580
(Store {t} ptr val mem) && t.Size() == 8 && is64BitFloat(val.Type) => (FMOVDstore ptr val mem)
581581
(Store {t} ptr val mem) && t.Size() == 8 && is32BitFloat(val.Type) => (FMOVDstore ptr val mem) // glitch from (Cvt32Fto64F x) => x -- type is wrong
582582
(Store {t} ptr val mem) && t.Size() == 4 && is32BitFloat(val.Type) => (FMOVSstore ptr val mem)
583-
(Store {t} ptr val mem) && t.Size() == 8 && (is64BitInt(val.Type) || isPtr(val.Type)) => (MOVDstore ptr val mem)
583+
(Store {t} ptr val mem) && t.Size() == 8 && !is64BitFloat(val.Type) => (MOVDstore ptr val mem)
584584
(Store {t} ptr val mem) && t.Size() == 4 && is32BitInt(val.Type) => (MOVWstore ptr val mem)
585585
(Store {t} ptr val mem) && t.Size() == 2 => (MOVHstore ptr val mem)
586586
(Store {t} ptr val mem) && t.Size() == 1 => (MOVBstore ptr val mem)

src/cmd/compile/internal/ssa/rewritePPC64.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)