1; RUN: llc -march=hexagon < %s | FileCheck %s
2; Check that we generate new value store.
3
4@i = global i32 0, align 4
5
6define i32 @main(i32 %x, i32* %p) nounwind {
7entry:
8; CHECK: memw(r{{[0-9]+}}+#{{[0-9]+}}) = r{{[0-9]+}}.new
9  %t0 = load i32, i32* @i, align 4
10  store i32 %t0, i32* %p, align 4
11  ret i32 %x
12}
13
14