[llvm] [NFC][OpenMP] Add small class-member use_device_ptr/addr unit tests. (PR #164039)

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 01:36:41 PDT 2025


mgorny wrote:

The new tests are failing for me on Gentoo/arm64:

```
FAIL: libomptarget :: aarch64-unknown-linux-gnu :: mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp (143 of 810)
******************** TEST 'libomptarget :: aarch64-unknown-linux-gnu :: mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang++ -fopenmp    -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64  -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -Wl,-rpath,/usr/lib/llvm/22/lib64  -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp | /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
# executed command: /usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang++ -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp
# executed command: /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp
# executed command: /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
# .---command stderr------------
# | /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp:38:12: error: CHECK: expected string not found in input
# |  // CHECK: 0 1
# |            ^
# | <stdin>:1:2: note: scanning from here
# | 1
# |  ^
# | <stdin>:2:1: note: possible intended match here
# | 0 0
# | ^
# | 
# | Input file: <stdin>
# | Check file: /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: 1 
# | check:38'0      X error: no match found
# |             2: 0 0 
# | check:38'0     ~~~~
# | check:38'1     ?    possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
FAIL: libomptarget :: aarch64-unknown-linux-gnu-LTO :: mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp (687 of 810)
******************** TEST 'libomptarget :: aarch64-unknown-linux-gnu-LTO :: mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang++ -fopenmp    -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64  -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -foffload-lto  -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu-LTO/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp && /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu-LTO/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp | /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
# executed command: /usr/lib/ccache/bin/aarch64-unknown-linux-gnu-clang++ -fopenmp -I /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test -I /usr/include -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -L /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -L /usr/lib/llvm/22/lib64 -L /usr/lib64 -nogpulib -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload -Wl,-rpath,/usr/lib64 -Wl,-rpath,/var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/lib -Wl,-rpath,/usr/lib/llvm/22/lib64 -foffload-lto -fopenmp-targets=aarch64-unknown-linux-gnu /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp -o /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu-LTO/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp
# executed command: /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/runtimes_build/offload/test/aarch64-unknown-linux-gnu-LTO/mapping/use_device_addr/Output/target_data_use_device_addr_class_member_ref_with_map.cpp.tmp
# executed command: /usr/lib/llvm/22/bin/FileCheck /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
# .---command stderr------------
# | /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp:38:12: error: CHECK: expected string not found in input
# |  // CHECK: 0 1
# |            ^
# | <stdin>:1:2: note: scanning from here
# | 1
# |  ^
# | <stdin>:2:1: note: possible intended match here
# | 0 0
# | ^
# | 
# | Input file: <stdin>
# | Check file: /var/tmp/portage/llvm-runtimes/offload-22.0.0.9999/work/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: 1 
# | check:38'0      X error: no match found
# |             2: 0 0 
# | check:38'0     ~~~~
# | check:38'1     ?    possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
```

Full build log: [llvm-runtimes:offload-22.0.0.9999:20251021-082951.log.gz](https://github.com/user-attachments/files/23016707/llvm-runtimes.offload-22.0.0.9999.20251021-082951.log.gz)


https://github.com/llvm/llvm-project/pull/164039


More information about the llvm-commits mailing list