• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=hexagon < %s | FileCheck %s
2
3; CHECK-LABEL: enabled:
4; CHECK: memw({{.*}}) += #1
5define void @enabled(i32* %p) #0 {
6  %v0 = load i32, i32* %p
7  %v1 = add i32 %v0, 1
8  store i32 %v1, i32* %p
9  ret void
10}
11
12; CHECK-LABEL: disabled:
13; CHECK-NOT: memw({{.*}}) += #1
14define void @disabled(i32* %p) #1 {
15  %v0 = load i32, i32* %p
16  %v1 = add i32 %v0, 1
17  store i32 %v1, i32* %p
18  ret void
19}
20
21attributes #0 = { nounwind }
22attributes #1 = { nounwind "target-features"="-memops" }
23
24