llvm-project/llvm/test/CodeGen/Hexagon/base-offset-addr.ll
Fangrui Song 2208c97c1b [Hexagon,test] Change llc -march= to -mtriple=
Similar to 806761a7629df268c8aed49657aeccffa6bca449

-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple, leaving a target triple which
may not make sense.

Therefore, -march= is error-prone and not recommended for tests without a target
triple. The issue has been benign as we recognize $unknown-apple-darwin as ELF instead
of rejecting it outrightly.
2024-12-15 10:20:22 -08:00

16 lines
570 B
LLVM

; RUN: llc -mtriple=hexagon -enable-aa-sched-mi < %s
; REQUIRES: asserts
; Make sure the base is a register and not an address.
define fastcc void @Get_lsp_pol(ptr nocapture %f) #0 {
entry:
%f5 = alloca i32, align 4
%arrayidx103 = getelementptr inbounds i32, ptr %f, i32 4
store i32 0, ptr %arrayidx103, align 4
%f5.0.load185 = load volatile i32, ptr %f5, align 4
ret void
}
attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }