Skip to content

Conversation

@abhinavgaba
Copy link
Contributor

@abhinavgaba abhinavgaba commented Oct 21, 2025

The failure was reported here:

#164039 (comment)

The test was checking for the "bad" behavior so as to keep track of it, but there seem to be some issues with the pointer arithmetic specific to aarch64.

The update for now is to not check for the "bad" behavior fully.

We may need to debug further if similar issues are encountered eventually once the codegen has been fixed.

The failure was reported here:

llvm#164039 (comment)

The test is checking for the "bad" behavior so as to keep track of it.
It could just be updated to check the "good" behavior and marked as
XFAIL, but then it would not be as informative.

The update for now is to fix the pointer arithmetic. If that isn't
sufficient, we can fall back to doing the above.
@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2025

@llvm/pr-subscribers-offload

Author: Abhinav Gaba (abhinavgaba)

Changes

The failure was reported here:

#164039 (comment)

The test is checking for the "bad" behavior so as to keep track of it. It could just be updated to check the "good" behavior and marked as XFAIL, but then it would not be as informative.

The update for now is to fix the pointer arithmetic. If that isn't sufficient, we can fall back to doing the above.


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

1 Files Affected:

  • (modified) offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp (+6-5)
diff --git a/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp b/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
index 5e8769eb3079d..204e1c3407724 100644
--- a/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
+++ b/offload/test/mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp
@@ -16,7 +16,7 @@ struct ST {
   int m = 0;
 
   void f6() {
-    uintptr_t offset = (uintptr_t)&d - n;
+    intptr_t offset = (uintptr_t)&d - n;
 #pragma omp target data map(to : m, d)
     {
       void *mapped_ptr = omp_get_mapped_ptr(&d, omp_get_default_device());
@@ -34,10 +34,11 @@ struct ST {
         // ref/attach modifiers:
         //  &ref_ptee(this[0].[d])), &ref_ptee(this[0].d), TO | FROM
         //  &ref_ptr(this[0].d), &ref_ptee(this[0].d), 4, ATTACH
-        // EXPECTED: 1 0
-        // CHECK:    0 1
-        printf("%d %d\n", &d == mapped_ptr,
-               (uintptr_t)&d == (uintptr_t)mapped_ptr - offset);
+        // EXPECTED:   1 0
+        // CHECK-NEXT: 0 1
+        intptr_t offset_device = (intptr_t)mapped_ptr - (intptr_t)&d;
+        printf("%d %d\n", &d == mapped_ptr, offset == offset_device);
+        printf("%lu %ld\n", offset, offset_device);
       }
     }
   }

@mgorny

This comment was marked as outdated.

@abhinavgaba

This comment was marked as outdated.

@mgorny
Copy link
Member

mgorny commented Oct 21, 2025

Maybe I messed up the rebuild while in a hurry. I'm doing a fresh one now, so should know soon.

@mgorny
Copy link
Member

mgorny commented Oct 21, 2025

Yeah, that was a fluke. Now it's failing with:

FAIL: libomptarget :: aarch64-unknown-linux-gnu :: mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp (243 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:39:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: 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 
# | next:39'0      X error: no match found
# |            2: 0 0 
# | next:39'0     ~~~~
# | next:39'1     ?    possible intended match
# |            3: 187650335047609 -93820346695751 
# | next:39'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# 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 (666 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_memb
er_ref_with_map.cpp:39:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: 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_add
r_class_member_ref_with_map.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: 1 
# | next:39'0      X error: no match found
# |            2: 0 0 
# | next:39'0     ~~~~
# | next:39'1     ?    possible intended match
# |            3: 187650390425529 -93820291317831 
# | next:39'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************

@abhinavgaba
Copy link
Contributor Author

That's interesting. The difference is that somehow on ARM, in addition to having the same difference as offset, the pointers have a difference of 0xffff in the top few bytes.

 printf("%p %p\n", (void*)187650335047609, (void*)-93820346695751 );
 // 0xaaaabf8fffb9 0xffffaaabbf8fffb9

Could you try one last time with HEAD commit? I would like to see if using ptrdiff helps.
Otherwise I'll remove the comparison from the CHECK but leave the print of the value in. The test will soon need to be updated once the library fix is in anyway.

Thanks for your help!

@mgorny
Copy link
Member

mgorny commented Oct 22, 2025

FAIL: libomptarget :: aarch64-unknown-linux-gnu :: mapping/use_device_addr/target_data_use_device_addr_class_member_ref_with_map.cpp (115 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:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: 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 
# | next:38'0      X error: no match found
# |            2: 0 0 
# | next:38'0     ~~~~
# | next:38'1     ?    possible intended match
# |            3: 187650700083129 (0xaaaad551ffb9) -93819981660231 (0xffffaaabd551ffb9) 
# | next:38'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# 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 (683 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:17: error: CHECK-NEXT: expected string not found in input
# |  // CHECK-NEXT: 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 
# | next:38'0      X error: no match found
# |            2: 0 0 
# | next:38'0     ~~~~
# | next:38'1     ?    possible intended match
# |            3: 187651030581177 (0xaaaae904ffb9) -93819651162183 (0xffffaaabe904ffb9) 
# | next:38'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************

@abhinavgaba
Copy link
Contributor Author

Thanks for helping with the experiments! I relaxed the check for now.

If the issues continue affecting the test even after the codegen fix, we might have to debug further.

Thanks again for your help and patience :)

@abhinavgaba abhinavgaba merged commit 8298047 into llvm:main Oct 22, 2025
10 checks passed
@abhinavgaba abhinavgaba deleted the remove-checks-for-current-bad-behavior-from-uda-tests branch October 22, 2025 04:27
@mgorny
Copy link
Member

mgorny commented Oct 22, 2025

Thanks, the latest version seems to work now. I'll do a full rebuild to make sure.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants