brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 7123d8f Raw
55 lines · plain
1## Negative tests:2##  - Feed integer value to string type attribute.3##  - Feed string value to integer type attribute.4##  - Invalid arch string.5 6# RUN: not llvm-mc %s -triple=csky -filetype=asm 2>&1 | FileCheck %s7 8.csky_attribute CSKY_UNKNOWN9# CHECK: [[@LINE-1]]:17: error: attribute name not recognised: CSKY_UNKNOWN10 11.csky_attribute CSKY_ARCH_NAME12# CHECK: [[@LINE-1]]:31: error: expected comma13 14.csky_attribute CSKY_ISA_FLAGS15# CHECK: [[@LINE-1]]:31: error: expected comma16 17.csky_attribute CSKY_ARCH_NAME, "foo",18# CHECK: [[@LINE-1]]:38: error: expected newline19 20.csky_attribute CSKY_ISA_FLAGS, 42,21# CHECK: [[@LINE-1]]:35: error: expected newline22 23.csky_attribute CSKY_ARCH_NAME, "foo"24# CHECK: [[@LINE-1]]:33: error: unknown arch name 25 26.csky_attribute CSKY_CPU_NAME, "foo"27# CHECK: [[@LINE-1]]:32: error: unknown cpu name28 29.csky_attribute CSKY_DSP_VERSION, "1"30# CHECK: [[@LINE-1]]:35: error: expected numeric constant31 32.csky_attribute CSKY_VDSP_VERSION, "1"33# CHECK: [[@LINE-1]]:36: error: expected numeric constant34 35.csky_attribute CSKY_FPU_VERSION, "1"36# CHECK: [[@LINE-1]]:35: error: expected numeric constant37 38.csky_attribute CSKY_FPU_ABI, "1"39# CHECK: [[@LINE-1]]:31: error: expected numeric constant40 41.csky_attribute CSKY_FPU_ROUNDING, "1"42# CHECK: [[@LINE-1]]:36: error: expected numeric constant43 44.csky_attribute CSKY_FPU_DENORMAL, "1"45# CHECK: [[@LINE-1]]:36: error: expected numeric constant46 47.csky_attribute CSKY_FPU_EXCEPTION, "1"48# CHECK: [[@LINE-1]]:37: error: expected numeric constant49 50.csky_attribute CSKY_FPU_NUMBER_MODULE, 451# CHECK: [[@LINE-1]]:41: error: expected string constant52 53.csky_attribute CSKY_FPU_HARDFP, "1"54# CHECK: [[@LINE-1]]:34: error: expected numeric constant55