2016-05-27 03:44:28 +08:00
|
|
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
|
|
; Check that we generate new value store.
|
2012-05-04 05:52:53 +08:00
|
|
|
|
|
|
|
@i = global i32 0, align 4
|
|
|
|
|
2016-05-27 03:44:28 +08:00
|
|
|
define i32 @main(i32 %x, i32* %p) nounwind {
|
2012-05-04 05:52:53 +08:00
|
|
|
entry:
|
2014-12-30 04:44:51 +08:00
|
|
|
; CHECK: memw(r{{[0-9]+}}+#{{[0-9]+}}) = r{{[0-9]+}}.new
|
2016-05-27 03:44:28 +08:00
|
|
|
%t0 = load i32, i32* @i, align 4
|
|
|
|
store i32 %t0, i32* %p, align 4
|
|
|
|
ret i32 %x
|
2012-05-04 05:52:53 +08:00
|
|
|
}
|
|
|
|
|