Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gut
gut / ld-text.c
Last active August 29, 2015 14:23
Testing "LD vs LQ" and "STD vs STQ" in POWER8. Why is "LQ" slower than "LD"?
$ for i in ld-test.c lq-test.c std-test.c stq-test.c; do
/opt/at8.0/bin/gcc -O2 $i -o ${i//.c}
echo -n -e "\n$i"
time ./${i//.c}
done
ld-test.c
real 0m2.594s
user 0m2.550s
sys 0m0.000s
@gut
gut / gist:6c570934e24afb72df1c
Created May 28, 2015 16:48
modf different behavior on gcc 4.9.0-6 VS at 8.0 on a POWER8 machine
[root@ 64b 13:44:10 /tmp/modf]$ uname -m
ppc64le
[root@ 64b 13:44:17 /tmp/modf]$ cat /proc/cpuinfo
processor : 0
cpu : POWER8E (raw), altivec supported
clock : 3425.000000MHz
revision : 2.1 (pvr 004b 0201)
timebase : 512000000
platform : pSeries