1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/Hexagon/vararg-formal.ll
Krzysztof Parzyszek 5ef76c0c23 [Hexagon] Fix lowering of formal arguments after r324737
Lowering of formal arguments needs to be aware of vararg functions.

llvm-svn: 325255
2018-02-15 15:47:53 +00:00

13 lines
245 B
LLVM

; 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 }