]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixes for mcrxr instruction
authorCarl Love <cel@us.ibm.com>
Tue, 14 Sep 2021 19:36:24 +0000 (19:36 +0000)
committerCarl Love <cel@us.ibm.com>
Thu, 30 Sep 2021 22:32:25 +0000 (17:32 -0500)
Add .machine directives to ensure the mcrxr instruction is assembled
for power 6.  The instruction is not supported on later platforms.

NEWS
none/tests/ppc32/jm-insns.c

diff --git a/NEWS b/NEWS
index 3e570c7de61e190f07c06d9a92a59c55fb8851fa..161441e167335a5cf0728b714ab22523a5f6370c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -57,6 +57,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
 441512  Remove a unneeded / unnecessary prefix check.
 441534  Update the expected output for test_isa_3_1_VRT.
 442061  very slow execution under Fedora 34 (readdwarf3)
+443031  Gcc -many change requires explicit .machine directives
 
 To see details of a given bug, visit
   https://bugs.kde.org/show_bug.cgi?id=XXXXXX
index 5316ce318d769cb4f7bc614bfc0071017650f342..3a169933f898f579ef4761f1dd9a9c631258e44d 100644 (file)
@@ -1460,7 +1460,8 @@ extern void test_mcrf (void);
 ASSEMBLY_FUNC("test_mcrf", "mcrf      0, 0");
 
 extern void test_mcrxr (void);
-ASSEMBLY_FUNC("test_mcrxr", "mcrxr      0");
+ASSEMBLY_FUNC("test_mcrxr", ".machine push; .machine power6;" \
+              "mcrxr 0; .machine pop");
 
 extern void test_mtcrf (void);
 ASSEMBLY_FUNC("test_mtcrf", "mtcrf      0, 14");