aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Hexagon/vararg-formal.ll
blob: 07a53c79020be0e412982f609b00602542856eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc -mtriple=hexagon < %s | FileCheck %s

; Make sure that the first formal argument is not loaded from memory.
; CHECK-NOT: memw

define i32 @fred(i32 %a0, ...) #0 {
b1:
  %v2 = add i32 %a0, 1
  ret i32 %v2
}

attributes #0 = { nounwind }