aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csmith/support-ppc64le.patch
blob: 3488ad3be0b10b2d87b3a165e882b18f32253810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From c05ee1d3edfba74e61404666de4f251b42020062 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Date: Tue, 21 Nov 2017 08:32:25 +0900
Subject: [PATCH] Add support powerpc64le

This supports little endian of powerpc64.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 src/platform.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/platform.cpp b/src/platform.cpp
index 248ae6e..ff69361 100644
--- a/src/platform.cpp
+++ b/src/platform.cpp
@@ -57,7 +57,7 @@
 // from the current time.
 //
 #ifndef HAVE_ARC4RANDOM_BUF
-#  if defined(__powerpc__) || defined(__powerpc64__)
+#  if defined(__powerpc__) || defined(__powerpc64__) || defined(__powerpc64le__)
 static inline unsigned long read_time(void)
 {
 	unsigned long a;
-- 
2.15.0