[llvm] [DAG] Enable bitcast STLF for Constant/Undef (PR #172523)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 09:21:40 PST 2026


KennethHilmersson wrote:

Here is a testcase showing the big-endian problem:
```
; RUN: llc < %s -mtriple=armeb-eabi -mattr=+v7,+neon -o - | FileCheck %s

; Test that store-to-load forwarding extracts the correct subvector on big-endian.
; Loading from offset 8 of a v4i32 store should get the HIGH elements (d17), not LOW (d16).

define <2 x i32> @test_offset_load(ptr %p, <4 x i32> %v) {
; CHECK-LABEL: test_offset_load:
; CHECK: vmov r1, r12, d17
; CHECK-NOT: vldr
; CHECK: mov r0, r12
  store <4 x i32> %v, ptr %p, align 16
  %p2 = getelementptr i8, ptr %p, i64 8
  %res = load <2 x i32>, ptr %p2, align 8
  ret <2 x i32> %res
}
```

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


More information about the llvm-commits mailing list