xref: /llvm-project/llvm/test/CodeGen/Hexagon/mem-fi-add.ll (revision a96f691985c8546e826012fdc3481c88f034a194)
1; RUN: llc -O2 < %s | FileCheck %s
2; Look for four stores directly via r29.
3; CHECK: memd(r29
4; CHECK: memd(r29
5; CHECK: memd(r29
6; CHECK: memd(r29
7
8target datalayout = "e-m:e-p:32:32-i1:32-i64:64-a:0-v32:32-n16:32"
9target triple = "hexagon"
10
11; Function Attrs: nounwind
12define void @foo() #0 {
13entry:
14  %t = alloca [4 x [2 x i32]], align 8
15  call void @llvm.memset.p0.i32(ptr align 8 %t, i8 0, i32 32, i1 false)
16  call void @bar(ptr %t) #1
17  ret void
18}
19
20; Function Attrs: nounwind
21declare void @llvm.memset.p0.i32(ptr nocapture, i8, i32, i1) #1
22
23declare void @bar(ptr) #2
24
25attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
26attributes #1 = { nounwind }
27attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
28