Skip to content

Commit

Permalink
[flang] Fix PPC and AARCH64 after #73301 (#74591)
Browse files Browse the repository at this point in the history
After #73301, all semantics
tests using `triple XXX` options need to have a
`REQUIRED: XX-registered-target` since the llvm::TargetMachine is needed
to get the llvm::DataLayout before semantics.

Fix three tests that lacked this.

Fixes:
https://lab.llvm.org/buildbot/#/builders/21/builds/87263
https://lab.llvm.org/buildbot/#/builders/268/builds/3841
  • Loading branch information
jeanPerier committed Dec 6, 2023
1 parent bf45483 commit c4a77bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions flang/test/Semantics/kinds04_q10.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
! This test is for x86_64, where exponent-letter 'q' is for
! 10-byte extended precision
! UNSUPPORTED: system-windows
! REQUIRES: x86-registered-target

subroutine s(var)
real :: realvar1 = 4.0E6_4
Expand Down
1 change: 1 addition & 0 deletions flang/test/Semantics/real10-x86-01.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
! RUN: %python %S/test_symbols.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
! REQUIRES: x86-registered-target

!DEF: /MainProgram1/rpdt DerivedType
!DEF: /MainProgram1/rpdt/k TypeParam INTEGER(4)
Expand Down
1 change: 1 addition & 0 deletions flang/test/Semantics/real10-x86-02.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
! RUN: %python %S/test_modfile.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
! Intrinsics SELECTED_INT_KIND, SELECTED_REAL_KIND, PRECISION, RANGE,
! RADIX, DIGITS
! REQUIRES: x86-registered-target

module m1
! REAL(KIND=10) handles 16 <= P < 19 (if available; ifort is KIND=16)
Expand Down

0 comments on commit c4a77bf

Please sign in to comment.