[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-objdump / X86 / print-symbol-addr.s
blob322f49f7f49406a45d65dbc95922d0354a6f3120
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
18 # NOADDR: {{^}}foo:
19 # NOADDR-NEXT: {{.*}} nop
20 # NOADDR-NEXT: {{.*}} nop
21 # NOADDR: {{^}}bar:
22 # NOADDR-NEXT: {{.*}} nop
24 .text
25 .globl foo
26 .type foo, @function
27 foo:
28 nop
29 nop
31 bar:
32 nop