1; RUN: llc -march=hexagon -mcpu=hexagonv4 -disable-dfa-sched -disable-hexagon-misched < %s | FileCheck %s 2 3@num = external global i32 4@acc = external global i32 5@val = external global i32 6 7; CHECK: memw(##num) 8; CHECK: memw(##acc) 9; CHECK: memw(##val) 10 11define void @foo() nounwind { 12entry: 13 %0 = load i32, i32* @num, align 4 14 %1 = load i32, i32* @acc, align 4 15 %mul = mul nsw i32 %0, %1 16 %2 = load i32, i32* @val, align 4 17 %add = add nsw i32 %mul, %2 18 store i32 %add, i32* @num, align 4 19 ret void 20} 21