mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-03 14:08:57 +00:00
7c9c6ed761
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.6 KiB
LLVM
39 lines
1.6 KiB
LLVM
; Check how tricky symbols are printed in the asm output.
|
|
; RUN: llc -mtriple=i686-pc-win32 %s -o - | FileCheck %s --check-prefix=ASM
|
|
|
|
; Check that we can roundtrip these names through our assembler.
|
|
; RUN: llc -mtriple=i686-pc-win32 %s -o - | llvm-mc -triple i686-pc-win32 -filetype=obj | llvm-readobj -t | FileCheck %s --check-prefix=READOBJ
|
|
|
|
|
|
@"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ" = global i32 0
|
|
@"\01__ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4" = global i32 0
|
|
@"\01@foo.bar" = global i32 0
|
|
|
|
define weak i32 @"\01??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51"() section ".text" {
|
|
%a = load i32, i32* @"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ"
|
|
%b = load i32, i32* @"\01__ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4"
|
|
%c = load i32, i32* @"\01@foo.bar"
|
|
%x = add i32 %a, %b
|
|
%y = add i32 %x, %c
|
|
ret i32 %y
|
|
}
|
|
|
|
; Check that these symbols are not quoted. They occur in output that gets passed to GAS.
|
|
; ASM: .globl __ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4
|
|
; ASM-NOT: .globl "__ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4"
|
|
; ASM: .globl @foo.bar
|
|
; ASM-NOT: .globl "@foo.bar"
|
|
|
|
; READOBJ: Symbol
|
|
; READOBJ: Name: .text
|
|
; READOBJ: Section: .text
|
|
; READOBJ: Symbol
|
|
; READOBJ: Name: ??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51
|
|
; READOBJ: Section: .text
|
|
; READOBJ: Symbol
|
|
; READOBJ: Name: ??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ
|
|
; READOBJ: Symbol
|
|
; READOBJ: Name: __ZL16ExceptionHandlerP19_EXCEPTION_POINTERS@4
|
|
; READOBJ: Symbol
|
|
; READOBJ: Name: @foo.bar
|