aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/ppc64le/byte_reverse.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-09-29 12:42:02 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-10-06 11:53:40 +0100
commit37b0dba45c4e44a02000a4170f25af0110f501d5 (patch)
treee8099b7134d51aa64be14cc2af845ce91cb21ef6 /tests/tcg/ppc64le/byte_reverse.c
parent6ffe81370aab511f438ece256977def804f9b6e2 (diff)
tests/tcg: unify ppc64 and ppc64le Makefiles
Make tests/tcg/ppc64le include tests/tcg/ppc64 instead of duplicating the rules. Because the ppc64le vpath includes tests/tcg/ppc64 but not vice versa, the tests have to be moved from tests/tcg/ppc64le/ to tests/tcg/ppc64. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220929114231.583801-23-alex.bennee@linaro.org>
Diffstat (limited to 'tests/tcg/ppc64le/byte_reverse.c')
-rw-r--r--tests/tcg/ppc64le/byte_reverse.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/tcg/ppc64le/byte_reverse.c b/tests/tcg/ppc64le/byte_reverse.c
deleted file mode 100644
index 53b76fc2e2..0000000000
--- a/tests/tcg/ppc64le/byte_reverse.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <assert.h>
-
-int main(void)
-{
- unsigned long var;
-
- var = 0xFEDCBA9876543210;
- asm("brh %0, %0" : "+r"(var));
- assert(var == 0xDCFE98BA54761032);
-
- var = 0xFEDCBA9876543210;
- asm("brw %0, %0" : "+r"(var));
- assert(var == 0x98BADCFE10325476);
-
- var = 0xFEDCBA9876543210;
- asm("brd %0, %0" : "+r"(var));
- assert(var == 0x1032547698BADCFE);
-
- return 0;
-}
-