1// The purpose of this test is to verify that symbol aliases 2// (@foo = alias <type> @bar) generate the correct entries in the symbol table. 3// They should be identical except for the name. 4 5// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | coff-dump.py | FileCheck %s 6// RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | coff-dump.py | FileCheck %s 7 8 .def _foo; 9 .scl 2; 10 .type 32; 11 .endef 12 .text 13 .globl _foo 14 .align 16, 0x90 15_foo: # @foo 16# BB#0: # %entry 17 ret 18 19 .data 20 .globl _bar # @bar 21 .align 4 22_bar: 23 .long 0 # 0x0 24 25 26 .globl _foo_alias 27_foo_alias = _foo 28 .globl _bar_alias 29_bar_alias = _bar 30 31// CHECK: Name = {{_?}}foo 32// CHECK-NEXT: Value = [[FOO_VALUE:.*$]] 33// CHECK-NEXT: SectionNumber = [[FOO_SECTION_NUMBER:.*$]] 34// CHECK-NEXT: SimpleType = [[FOO_SIMPLE_TYPE:.*$]] 35// CHECK-NEXT: ComplexType = [[FOO_COMPLEX_TYPE:.*$]] 36// CHECK-NEXT: StorageClass = [[FOO_STORAGE_CLASS:.*$]] 37// CHECK-NEXT: NumberOfAuxSymbols = [[FOO_NUMBER_OF_AUX_SYMBOLS:.*$]] 38 39// CHECK: Name = {{_?}}bar 40// CHECK-NEXT: Value = [[BAR_VALUE:.*$]] 41// CHECK-NEXT: SectionNumber = [[BAR_SECTION_NUMBER:.*$]] 42// CHECK-NEXT: SimpleType = [[BAR_SIMPLE_TYPE:.*$]] 43// CHECK-NEXT: ComplexType = [[BAR_COMPLEX_TYPE:.*$]] 44// CHECK-NEXT: StorageClass = [[BAR_STORAGE_CLASS:.*$]] 45// CHECK-NEXT: NumberOfAuxSymbols = [[BAR_NUMBER_OF_AUX_SYMBOLS:.*$]] 46 47// CHECK: Name = {{_?}}foo_alias 48// CHECK-NEXT: Value = [[FOO_VALUE]] 49// CHECK-NEXT: SectionNumber = [[FOO_SECTION_NUMBER]] 50// CHECK-NEXT: SimpleType = [[FOO_SIMPLE_TYPE]] 51// CHECK-NEXT: ComplexType = [[FOO_COMPLEX_TYPE]] 52// CHECK-NEXT: StorageClass = [[FOO_STORAGE_CLASS]] 53// CHECK-NEXT: NumberOfAuxSymbols = [[FOO_NUMBER_OF_AUX_SYMBOLS]] 54 55// CHECK: Name = {{_?}}bar_alias 56// CHECK-NEXT: Value = [[BAR_VALUE]] 57// CHECK-NEXT: SectionNumber = [[BAR_SECTION_NUMBER]] 58// CHECK-NEXT: SimpleType = [[BAR_SIMPLE_TYPE]] 59// CHECK-NEXT: ComplexType = [[BAR_COMPLEX_TYPE]] 60// CHECK-NEXT: StorageClass = [[BAR_STORAGE_CLASS]] 61// CHECK-NEXT: NumberOfAuxSymbols = [[BAR_NUMBER_OF_AUX_SYMBOLS]] 62 63