Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

14 lines
334 B
LLVM

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