2017-06-15 10:27:50 +08:00
|
|
|
# REQUIRES: avr
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=avr-unknown-linux -mcpu=atmega328p %s -o %t.o
|
|
|
|
# RUN: ld.lld %t.o -o %t.exe -Ttext=0
|
|
|
|
# RUN: llvm-objdump -d %t.exe | FileCheck %s
|
|
|
|
|
|
|
|
main:
|
|
|
|
call foo
|
|
|
|
foo:
|
|
|
|
jmp foo
|
|
|
|
|
2020-03-06 06:18:38 +08:00
|
|
|
# CHECK: <main>:
|
2017-06-15 10:27:50 +08:00
|
|
|
# CHECK-NEXT: 0: 0e 94 02 00 <unknown>
|
2020-03-06 06:18:38 +08:00
|
|
|
# CHECK: <foo>:
|
2017-06-15 10:27:50 +08:00
|
|
|
# CHECK-NEXT: 4: 0c 94 02 00 <unknown>
|