aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csmith/fix-s390x-read_time.patch
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2018-01-06 14:37:44 -0500
committerDaniel Sabogal <dsabogalcc@gmail.com>2018-01-07 12:55:00 -0500
commit3ea997b3eccec83d8e3e49d6b29650a79e62bb86 (patch)
tree45a9b64ba8894eca15c9ad9b3a354927b6fd49d3 /testing/csmith/fix-s390x-read_time.patch
parent7222accc7e044ef10f13b61480c0aa5bca86628c (diff)
downloadaports-3ea997b3eccec83d8e3e49d6b29650a79e62bb86.tar.bz2
aports-3ea997b3eccec83d8e3e49d6b29650a79e62bb86.tar.xz
testing/csmith: new aport
https://embed.cs.utah.edu/csmith/ Tool for generating random C programs
Diffstat (limited to 'testing/csmith/fix-s390x-read_time.patch')
-rw-r--r--testing/csmith/fix-s390x-read_time.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/csmith/fix-s390x-read_time.patch b/testing/csmith/fix-s390x-read_time.patch
new file mode 100644
index 0000000000..8074f2b1a4
--- /dev/null
+++ b/testing/csmith/fix-s390x-read_time.patch
@@ -0,0 +1,12 @@
+http://bugs.debian.org/872604
+--- csmith-2.3.0/src/platform.cpp.orig
++++ csmith-2.3.0/src/platform.cpp
+@@ -79,7 +79,7 @@
+ static unsigned long long read_time(void)
+ {
+ unsigned long long clk;
+- asm volatile("stckf %0" : "=Q" (clk) : : "cc");
++ asm volatile("stck %0" : "=Q" (clk) : : "cc");
+ return clk;
+ }
+ # elif defined(__i386__) || defined(__x86_64__)