clang/tests/ppc64le-long-double/runtest.sh
Jesus Checa Hidalgo 22c49c99fc tests: ppc64le-long-double
Split the test in two. For Fedora CI we run on x86_64 emulating
ppc64le using qemu+mock. For RHEL/CentOS run natively.
2022-05-27 09:24:34 +02:00

10 lines
305 B
Bash
Executable File

set -e
gcc_output=$(gcc -E -dM -x c /dev/null | grep -e __LONG_DOUBLE_IEEE128__ -e __LONG_DOUBLE_IBM128__)
clang_output=$(clang -E -dM -x c /dev/null | grep -e __LONG_DOUBLE_IEEE128__ -e __LONG_DOUBLE_IBM128__)
echo "gcc: $gcc_output"
echo "clang: $clang_output"
test "$gcc_output" = "$clang_output"