| 1 |
! { dg-do compile { target { powerpc*-*-linux* } } } |
| 2 |
! { dg-require-effective-target ppc_float128_sw } |
| 3 |
! { dg-require-effective-target vsx_hw } |
| 4 |
! { dg-options "-mvsx -mabi=ieeelongdouble -mfloat128" } |
| 5 |
! { dg-excess-errors "expect error due to switching long double type" } |
| 6 |
! Since the error message is not associated with a particular line |
| 7 |
! number, we cannot use the dg-error directive and cannot specify a |
| 8 |
! regexp to describe the expected error message. The expected warning |
| 9 |
! message is: |
| 10 |
! "Warning: Using IEEE extended precision long double [-Wpsabi]" |
| 11 |
|
| 12 |
program test_qp |
| 13 |
implicit none |
| 14 |
real(16), volatile :: fp1, fp2; |
| 15 |
fp1 = 2.0 |
| 16 |
fp2 = log (fp1) |
| 17 |
end |
| 18 |
|
| 19 |
! { dg-final { scan-assembler-not {\mbl logl\M} } } |
| 20 |
! { dg-final { scan-assembler {\mbl __logieee128\M} } } |