view test/CodeGen/Hexagon/vararg-formal.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 3a76565eade5
children
line wrap: on
line source

; RUN: llc -march=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 }