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