aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Hexagon/storerd-io-over-rr.ll
blob: 8a233e905bec70c17cd946835f6c204d9fc41773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; Check for memd(base + #offset), instead of memd(base + reg<<#c).
; CHECK: memd(r{{[0-9]+}}+#

define void @fred(i32 %p, i64 %v) #0 {
  %t0 = add i32 %p, 4
  %t1 = inttoptr i32 %t0 to ptr
  store i64 %v, ptr %t1
  ret void
}

attributes #0 = { nounwind "target-cpu"="hexagonv60" }