| Issue |
240245
|
| Summary |
[hexagon] strstream/ios get "Bad machine code: Using an undefined physical register"
|
| Labels |
new issue
|
| Assignees |
iajbar
|
| Reporter |
androm3da
|
Several cases of `Bad machine code` still occur with new builds, despite a fix for #224671. These occur in the libc++ C++ library sources for `ios` and `strstream`, among others.
Below logs were failures with 6b256f3ae217d4569c114684d7e347145be2537f.
```
$ rg -B10 'Bad machine code' results_main_v68_2026_08Nov_1827/lsf-output.3833442.log results_main_v73_2026_08Nov_1827/lsf-output.3833434.log
results_main_v73_2026_08Nov_1827/lsf-output.3833434.log
9085- S2_storerb_io renamable $r1, 320, renamable $r0, debug-location !16329 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZN6__asanL8instanceE, i32 4416)`, align 64); llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:974:15 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1322:12 ] ] ] ] ]
9086- S2_storerb_io renamable $r1, 256, renamable $r0, debug-location !16330 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZN6__asanL8instanceE, i32 4352)`, align 64); llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:974:15 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1322:12 ] ] ] ] ]
9087- S2_storerb_io renamable $r1, 192, renamable $r0, debug-location !16331 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZN6__asanL8instanceE, i32 4288)`, align 64); llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:974:15 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1322:12 ] ] ] ] ]
9088- S2_storerb_io renamable $r1, 128, renamable $r0, debug-location !16332 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZN6__asanL8instanceE, i32 4224)`, align 64); llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:974:15 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1322:12 ] ] ] ] ]
9089- S2_storerb_io renamable $r1, 64, renamable $r0, debug-location !16333 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZN6__asanL8instanceE, i32 4160)`, align 64); llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:974:15 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1322:12 ] ] ] ] ]
9090- S2_storerb_io killed renamable $r1, 0, killed renamable $r0, debug-location !16334 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZN6__asanL8instanceE, i32 4096)`, align 64); llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/asan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:974:15 @[ llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1322:12 ] ] ] ] ]
9091- PS_jmpret $r31, implicit-def dead $pc, debug-location !1225; llvm-project/compiler-rt/lib/asan/asan_allocator.cpp:1323:1
9092-
9093-# End machine code for function _ZN6__asan20asan_mz_force_unlockEv.
9094-
9095:*** Bad machine code: Using an undefined physical register ***
--
9235- S2_storerb_io renamable $r0, 576, renamable $r2, debug-location !5433 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 576)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9236- S2_storerb_io renamable $r0, 512, renamable $r2, debug-location !5434 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 512)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9237- S2_storerb_io renamable $r0, 448, renamable $r2, debug-location !5435 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 448)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9238- S2_storerb_io renamable $r0, 384, renamable $r2, debug-location !5436 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 384)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9239- S2_storerb_io renamable $r0, 320, renamable $r2, debug-location !5437 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 320)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9240- S2_storerb_io killed renamable $r0, 256, killed renamable $r2, debug-location !5438 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 256)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9241- PS_jmpret $r31, implicit-def dead $pc, debug-location !74; llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:59
9242-
9243-# End machine code for function _ZN6__msan15UnlockAllocatorEv.
9244-
9245:*** Bad machine code: Using an undefined physical register ***
--
9360- renamable $r1 = nuw A2_addi killed renamable $r0, 4
9361- ADJCALLSTACKDOWN 0, 0, implicit-def $r29, implicit-def dead $r30, implicit $r31, implicit $r30, implicit $r29
9362- $r0 = COPY killed renamable $r16
9363- J2_call @_ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED2Ev, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit-def dead $pc, implicit-def dead $r31, implicit $r29, implicit $r0, implicit $r1, implicit-def $r29
9364- $r0 = COPY killed renamable $r17
9365- ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit $r29
9366- PS_tailcall_i @_ZNSt3__19basic_iosIcNS_11char_traitsIcEEED2Ev, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit $r0
9367-
9368-# End machine code for function _ZNSt3__19strstreamD1Ev.
9369-
9370:*** Bad machine code: Using an undefined physical register ***
--
9460- renamable $r1 = nuw A2_addi killed renamable $r0, 4
9461- ADJCALLSTACKDOWN 0, 0, implicit-def $r29, implicit-def dead $r30, implicit $r31, implicit $r30, implicit $r29
9462- $r0 = COPY killed renamable $r16
9463- J2_call @_ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED2Ev, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit-def dead $pc, implicit-def dead $r31, implicit $r29, implicit $r0, implicit $r1, implicit-def $r29
9464- $r0 = COPY killed renamable $r17
9465- ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit $r29
9466- PS_tailcall_i @_ZNSt3__19basic_iosIcNS_11char_traitsIcEEED2Ev, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit $r0
9467-
9468-# End machine code for function _ZNSt3__19strstreamD1Ev.
9469-
9470:*** Bad machine code: Using an undefined physical register ***
--
9594- $r0 = COPY killed renamable $r17
9595- J2_call @_ZNSt3__18ios_baseD2Ev, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit-def dead $pc, implicit-def dead $r31, implicit $r29, implicit killed $r0, implicit-def $r29
9596- ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit $r29
9597- $r0 = COPY killed renamable $r16
9598- ADJCALLSTACKDOWN 0, 0, implicit-def $r29, implicit-def dead $r30, implicit killed $r31, implicit killed $r30, implicit $r29
9599- PS_call_nr @_Unwind_Resume, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit killed $r0, implicit-def $r29
9600- ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit killed $r29
9601-
9602-# End machine code for function _ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEEC1EPNS_15basic_streambufIcS2_EE.
9603-
9604:*** Bad machine code: Using an undefined physical register ***
--
9717- $r0 = COPY killed renamable $r17
9718- J2_call @_ZNSt3__18ios_baseD2Ev, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit-def dead $pc, implicit-def dead $r31, implicit $r29, implicit killed $r0, implicit-def $r29
9719- ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit $r29
9720- $r0 = COPY killed renamable $r16
9721- ADJCALLSTACKDOWN 0, 0, implicit-def $r29, implicit-def dead $r30, implicit killed $r31, implicit killed $r30, implicit $r29
9722- PS_call_nr @_Unwind_Resume, <regmask $d8 $d9 $d10 $d11 $d12 $d13 $r16 $r17 $r18 $r19 $r20 $r21 $r22 $r23 $r24 $r25 $r26 $r27>, implicit killed $r0, implicit-def $r29
9723- ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit killed $r29
9724-
9725-# End machine code for function _ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEEC1EPNS_15basic_streambufIcS2_EE.
9726-
9727:*** Bad machine code: Using an undefined physical register ***
results_main_v68_2026_08Nov_1827/lsf-output.3833442.log
9045- S2_storerb_io renamable $r0, 576, renamable $r2, debug-location !5433 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 576)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9046- S2_storerb_io renamable $r0, 512, renamable $r2, debug-location !5434 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 512)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9047- S2_storerb_io renamable $r0, 448, renamable $r2, debug-location !5435 :: (volatile store release (s8) into `ptr getelementptr inbounds nuw (i8, ptr @_ZL9allocator, i32 448)`, align 64); llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_atomic_clang.h:64:3 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_mutex.h:40:5 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_primary32.h:249:34 @[ llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_allocator_combined.h:185:14 @[ llvm-project/compiler-rt/lib/msan/msan_allocator.cpp:183:44 ] ] ] ]
9048- S2_storerb_io renamable $r0, 384, renamable $r2, debug-location !5436 :: (volatile store <truncated>Please see the issue for the entire body.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs