[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / undef.s
blobab75230940b17a711f999a116f6e14b14cc56416
1 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s | llvm-readelf -s - | FileCheck %s
3 // Test which symbols should be in the symbol table
5 # CHECK: Symbol table '.symtab' contains 5 entries:
6 # CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name
7 # CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
8 # CHECK-NEXT: 1: 0000000000000000 0 NOTYPE LOCAL DEFAULT 4 .Lsym8
9 # CHECK-NEXT: 2: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND sym6
10 # CHECK-NEXT: 3: 0000000000000000 0 NOTYPE GLOBAL HIDDEN UND hidden
11 # CHECK-NEXT: 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND undef
13 .Lsym2:
14 .Lsym3:
15 .Lsym4 = .Lsym2 - .Lsym3
16 .long .Lsym4
18 .type .Lsym5,@object
19 .type sym6,@object
20 .long sym6
22 .section .rodata.str1.1,"aMS",@progbits,1
23 .Lsym7:
24 .Lsym8:
26 .text
27 movsd .Lsym8(%rip), %xmm1
29 .hidden hidden
31 test2_a = undef
32 test2_b = undef + 1