llvm-mirror/test/CodeGen/AVR/copy-data-to-ram.ll
Dylan McKay 880b08eb60 [AVR] Enable the '__do_copy_data' function
Also enables '__do_clear_bss'.

These functions are automaticalled called by the CRT if they are
declared.

We need these to be called otherwise RAM will start completely
uninitialised, even though we need to copy RAM variables from progmem to
RAM.

llvm-svn: 312905
2017-09-11 10:32:51 +00:00

6 lines
114 B
LLVM

; RUN: llc < %s -march=avr | FileCheck %s
; CHECK: .globl __do_copy_data
@str = internal global [3 x i8] c"foo"