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