mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
eb5f5ae200
GAS documents the .type directive as having an optional comma following the key symbol name when using the STT_<TYPE_IN_UPPER_CASE> form. However, it treats the comma as optional in all cases. This makes the IAS support both forms of inputs. Furthermore, the prefixed forms take either the upper case name or the lower case alias. The tests are split into two separate sets as the hash character serves as a comment character on x86, which is tested in the second set by using arm-elf which uses the at symbol as a comment character. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210407 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
880 B
ArmAsm
39 lines
880 B
ArmAsm
// RUN: llvm-mc -triple i686-elf -filetype asm -o - %s | FileCheck %s
|
|
|
|
.type TYPE STT_FUNC
|
|
// CHECK: .type TYPE,@function
|
|
|
|
.type comma_TYPE, STT_FUNC
|
|
// CHECK: .type comma_TYPE,@function
|
|
|
|
.type at_TYPE, @STT_FUNC
|
|
// CHECK: .type at_TYPE,@function
|
|
|
|
.type percent_TYPE, %STT_FUNC
|
|
// CHECK: .type percent_TYPE,@function
|
|
|
|
.type string_TYPE, "STT_FUNC"
|
|
// CHECK: .type string_TYPE,@function
|
|
|
|
.type type function
|
|
// CHECK: .type type,@function
|
|
|
|
.type comma_type, function
|
|
// CHECK: .type comma_type,@function
|
|
|
|
.type at_type, @function
|
|
// CHECK: .type at_type,@function
|
|
|
|
.type percent_type, %function
|
|
// CHECK: .type percent_type,@function
|
|
|
|
.type string_type, "function"
|
|
// CHECK: .type string_type,@function
|
|
|
|
.type special gnu_unique_object
|
|
// CHECK: .type special,@gnu_unique_object
|
|
|
|
.type comma_special, gnu_unique_object
|
|
// CHECK: .type comma_special,@gnu_unique_object
|
|
|