28 lines · plain
1; RUN: llc -mtriple=hexagon -O3 < %s2; REQUIRES: asserts3 4; Test that the compiler doesn't assert when attempting to5; generate a store absolute set insturction where the base6; register and destination register are same.7 8target triple = "hexagon-unknown--elf"9 10%s.0 = type { %s.1, %s.2 }11%s.1 = type { ptr, ptr }12%s.2 = type { %s.3 }13%s.3 = type { %s.4 }14%s.4 = type { %s.5, i32, i32, ptr }15%s.5 = type { i32 }16 17@g0 = external global %s.0, align 418 19; Function Attrs: nounwind20define void @f0() #0 section ".init.text" {21b0:22 store ptr @g0, ptr @g0, align 423 store ptr @g0, ptr getelementptr inbounds (%s.0, ptr @g0, i32 0, i32 0, i32 1), align 424 ret void25}26 27attributes #0 = { nounwind "target-cpu"="hexagonv55" }28