Skip to content

Conversation

@DavidSpickett
Copy link
Collaborator

These have not been run in a while because they required the "x86_64" target but it's not called that, it's just "x86".

After fixing that, 02 had some failures. I've just updated it to match, and reviewers will hopefully tell me if that's correct.

These have not been run in a while because they required the "x86_64" target but it's not called that, it's just "x86". After fixing that, 02 had some failures. I've just updated it to match, and reviewers will hopefully tell me if that's correct.
@DavidSpickett DavidSpickett changed the title [flang][test] Enable kinds01/02/.f90 and update expected output [flang][test] Enable kinds01/02.f90 and update expected output Jul 3, 2025
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:semantics labels Jul 3, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 3, 2025

@llvm/pr-subscribers-flang-semantics

Author: David Spickett (DavidSpickett)

Changes

These have not been run in a while because they required the "x86_64" target but it's not called that, it's just "x86".

After fixing that, 02 had some failures. I've just updated it to match, and reviewers will hopefully tell me if that's correct.


Full diff: https://github.com/llvm/llvm-project/pull/146877.diff

2 Files Affected:

  • (modified) flang/test/Semantics/kinds01.f90 (+2-2)
  • (modified) flang/test/Semantics/kinds02.f90 (+4-4)
diff --git a/flang/test/Semantics/kinds01.f90 b/flang/test/Semantics/kinds01.f90 index 82c4d76da3710..ef822f5fbcbf0 100644 --- a/flang/test/Semantics/kinds01.f90 +++ b/flang/test/Semantics/kinds01.f90 @@ -1,5 +1,5 @@ -! REQUIRES: x86_64-registered-target -! RUN: %python %S/test_symbols.py %s %flang_fc1 +! REQUIRES: x86-registered-target +! RUN: %python %S/test_symbols.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu !DEF: /MainProgram1/jk1 ObjectEntity INTEGER(1) integer(kind=1) jk1 !DEF: /MainProgram1/js1 ObjectEntity INTEGER(1) diff --git a/flang/test/Semantics/kinds02.f90 b/flang/test/Semantics/kinds02.f90 index 02b1e6c8c310a..d018b69f81f76 100644 --- a/flang/test/Semantics/kinds02.f90 +++ b/flang/test/Semantics/kinds02.f90 @@ -1,5 +1,5 @@ -! REQUIRES: x86_64-registered-target -! RUN: %python %S/test_errors.py %s %flang_fc1 +! REQUIRES: x86-registered-target +! RUN: %python %S/test_errors.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu ! C712 The value of scalar-int-constant-expr shall be nonnegative and ! shall specify a representation method that exists on the processor. ! C714 The value of kind-param shall be nonnegative. @@ -44,9 +44,9 @@ complex(kind=32) :: z32 !ERROR: COMPLEX*1 is not a supported type complex*1 :: zs1 -!ERROR: COMPLEX*2 is not a supported type +!ERROR: COMPLEX(KIND=1) is not a supported type complex*2 :: zs2 -!ERROR: COMPLEX*64 is not a supported type +!ERROR: COMPLEX(KIND=32) is not a supported type complex*64 :: zs64 !ERROR: LOGICAL(KIND=0) is not a supported type logical(kind=0) :: l0 
!ERROR: COMPLEX(KIND=1) is not a supported type
complex*2 :: zs2
!ERROR: COMPLEX*64 is not a supported type
!ERROR: COMPLEX(KIND=32) is not a supported type
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what we get now, I don't know if that's actually correct though.

@klausler klausler removed their request for review July 3, 2025 15:26
@DavidSpickett
Copy link
Collaborator Author

kinds01 is failing CI but passing on my AArch64 Linux machine, though I would expect it to pass anywhere because of the -target.

https://github.com/llvm/llvm-project/actions/runs/16051206281?pr=146877

Perhaps this part of flang is still not cross compilation aware?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:semantics flang Flang issues not falling into any other category

2 participants