1 # RUN: llvm-mc %s -filetype=obj -triple=i386 -o %t.32.o
2 # RUN: llvm-mc %s -filetype=obj -triple=x86_64 -o %t.64.o
4 ## Check we print the address of `foo` and `bar`.
5 # RUN: llvm-objdump -d %t.32.o | FileCheck --check-prefixes=ADDR32,ADDR %s
6 # RUN: llvm-objdump -d %t.64.o | FileCheck --check-prefixes=ADDR64,ADDR %s
7 # ADDR32: 00000000 foo:
8 # ADDR64: 0000000000000000 foo:
9 # ADDR-NEXT: 0: {{.*}} nop
10 # ADDR-NEXT: 1: {{.*}} nop
11 # ADDR32: 00000002 bar:
12 # ADDR64: 0000000000000002 bar:
13 # ADDR-NEXT: 2: {{.*}} nop
15 ## Check we do not print the addresses with --no-leading-addr.
16 # RUN: llvm-objdump -d --no-leading-addr %t.32.o | FileCheck %s --check-prefix=NOADDR
17 # RUN: llvm-objdump -d --no-leading-addr %t.64.o | FileCheck %s --check-prefix=NOADDR
19 # NOADDR-NEXT: {{.*}} nop
20 # NOADDR-NEXT: {{.*}} nop
22 # NOADDR-NEXT: {{.*}} nop