1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ; Check that the load/store to the volatile stack object has not been
5 target triple = "hexagon"
8 ; CHECK: memw(r29+#4) =
9 ; CHECK: = memw(r29+#4)
10 define i32 @foo(i32 %a) #0 {
12 %x = alloca i32, align 4
13 call void @llvm.lifetime.start.p0(i64 4, ptr %x)
14 store volatile i32 0, ptr %x, align 4
15 %call = tail call i32 @bar() #0
16 %x.0.x.0. = load volatile i32, ptr %x, align 4
17 %add = add nsw i32 %x.0.x.0., %a
18 call void @llvm.lifetime.end.p0(i64 4, ptr %x)
22 declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #1
23 declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #1
25 declare i32 @bar(...) #0
27 attributes #0 = { nounwind }
28 attributes #1 = { argmemonly nounwind }