1 ; RUN: llc -march=hexagon -O3 < %s
4 ; Test that the compiler doesn't assert when attempting to
5 ; generate a store absolute set insturction where the base
6 ; register and destination register are same.
8 target triple = "hexagon-unknown--elf"
10 %s.0 = type { %s.1, %s.2 }
11 %s.1 = type { ptr, ptr }
14 %s.4 = type { %s.5, i32, i32, ptr }
17 @g0 = external global %s.0, align 4
19 ; Function Attrs: nounwind
20 define void @f0() #0 section ".init.text" {
22 store ptr @g0, ptr @g0, align 4
23 store ptr @g0, ptr getelementptr inbounds (%s.0, ptr @g0, i32 0, i32 0, i32 1), align 4
27 attributes #0 = { nounwind "target-cpu"="hexagonv55" }