I tried to compile your test program with 2 different GCC versions but it keeps failing, do you need a special/recent version? Meanwhile can you attach a statically linked binary?
$ gcc -v
gcc version 6.3.0 20170516 (Debian 6.3.0-18)
$ gcc version 8.1.1 20180626 (Red Hat Cross 8.1.1-3) (GCC)
$ gcc -g -O -mcpu=power9 test-denbcdq.c -o test-denbcdq
test-denbcdq.c: In function ‘main’:
test-denbcdq.c:15:3: error: decimal floating point not supported for this target
_Decimal128 d128;
^~~~~~~~~~~
I tried to compile your test program with 2 different GCC versions but it keeps failing, do you need a special/recent version? Meanwhile can you attach a statically linked binary?
$ gcc -v
gcc version 6.3.0 20170516 (Debian 6.3.0-18)
$ gcc -g -O -mcpu=power9 test-denbcdq.c -o test-denbcdq
test-denbcdq.c: In function 'bcdcfsq':
test-denbcdq.c:7:2: error: impossible register constraint in 'asm'
asm volatile ( "bcdcfsq. %0,%1,0" : "=v" (r) : "v" (i128) );
^~~
--
$ gcc version 8.1.1 20180626 (Red Hat Cross 8.1.1-3) (GCC)
$ gcc -g -O -mcpu=power9 test-denbcdq.c -o test-denbcdq c:15:3: error: decimal floating point not supported for this target
test-denbcdq.c: In function ‘main’:
test-denbcdq.
_Decimal128 d128;
^~~~~~~~~~~