1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ; Check for S4_addaddi:
3 ; CHECK: r{{[0-9]+}} = add(r{{[0-9]+}},add(r{{[0-9]+}},#2))
5 define i32 @fred(i32 %a0, i32 %a1, ptr nocapture %a2) #0 {
7 %v4 = add nsw i32 %a0, 2
8 %v5 = add nsw i32 %v4, %a1
9 store i32 %v5, ptr %a2, align 4
13 attributes #0 = { nounwind }