24 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; CHECK-LABEL: enabled:4; CHECK: memw({{.*}}) += #15define void @enabled(ptr %p) #0 {6 %v0 = load i32, ptr %p7 %v1 = add i32 %v0, 18 store i32 %v1, ptr %p9 ret void10}11 12; CHECK-LABEL: disabled:13; CHECK-NOT: memw({{.*}}) += #114define void @disabled(ptr %p) #1 {15 %v0 = load i32, ptr %p16 %v1 = add i32 %v0, 117 store i32 %v1, ptr %p18 ret void19}20 21attributes #0 = { nounwind }22attributes #1 = { nounwind "target-features"="-memops" }23 24