1 ## Test llvm-mc could handle .attribute correctly.
3 # RUN: llvm-mc %s -triple=csky -filetype=asm | FileCheck %s
5 .csky_attribute CSKY_ARCH_NAME, "ck810"
6 # CHECK: attribute 4, "ck810"
8 .csky_attribute CSKY_CPU_NAME, "ck810"
9 # CHECK: attribute 5, "ck810"
11 .csky_attribute CSKY_ISA_FLAGS, 0x333f
12 # CHECK: attribute 6, 13119
14 .csky_attribute CSKY_ISA_EXT_FLAGS, 0x333f
15 # CHECK: attribute 7, 13119
17 .csky_attribute CSKY_DSP_VERSION, 1
18 # CHECK: attribute 8, 1
20 .csky_attribute CSKY_VDSP_VERSION, 1
21 # CHECK: attribute 9, 1
23 .csky_attribute CSKY_FPU_VERSION, 1
24 # CHECK: attribute 16, 1
26 .csky_attribute CSKY_FPU_ABI, 1
27 # CHECK: attribute 17, 1
29 .csky_attribute CSKY_FPU_ROUNDING, 1
30 # CHECK: attribute 18, 1
32 .csky_attribute CSKY_FPU_DENORMAL, 1
33 # CHECK: attribute 19, 1
35 .csky_attribute CSKY_FPU_EXCEPTION, 1
36 # CHECK: attribute 20, 1
38 .csky_attribute CSKY_FPU_NUMBER_MODULE, "IEEE 754"
39 # CHECK: attribute 21, "IEEE 754"
41 .csky_attribute CSKY_FPU_HARDFP, 1
42 # CHECK: attribute 22, 1