54 lines · plain
1@ RUN: not llvm-mc -triple armv6-eabi -filetype asm -o /dev/null 2>&1 %s \2@ RUN: | FileCheck %s -check-prefix CHECK-ARMv6 -check-prefix CHECK-V63@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \4@ RUN: | FileCheck %s -check-prefix CHECK-ARMv75@ RUN: not llvm-mc -triple armv7m-eabi -filetype asm -o /dev/null 2>&1 %s \6@ RUN: | FileCheck %s -check-prefix CHECK-V7M7@ RUN: not llvm-mc -triple thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \8@ RUN: | FileCheck %s -check-prefix CHECK-THUMBv6 -check-prefix CHECK-V69@ RUN: not llvm-mc -triple thumbv7-eabi -filetype asm -o /dev/null 2>&1 %s \10@ RUN: | FileCheck %s -check-prefix CHECK-THUMBv711@ RUN: not llvm-mc -triple thumbv7m-eabi -filetype asm -o /dev/null 2>&1 %s \12@ RUN: | FileCheck %s -check-prefix CHECK-V7M13 14 .syntax unified15 16 .arch_extension idiv17@ CHECK-V6: error: architectural extension 'idiv' is not allowed for the current base architecture18@ CHECK-V6-NEXT: .arch_extension idiv19@ CHECK-V6-NEXT: ^20@ CHECK-V7M: error: architectural extension 'idiv' is not allowed for the current base architecture21@ CHECK-V7M-NEXT: .arch_extension idiv22@ CHECK-V7M-NEXT: ^23 24 .type idiv,%function25idiv:26 udiv r0, r1, r227@ CHECK-ARMv6: error: instruction requires: divide in ARM28@ CHECK-THUMBv6: error: instruction requires: divide in THUMB armv8m.base29 sdiv r0, r1, r230@ CHECK-ARMv6: error: instruction requires: divide in ARM31@ CHECK-THUMBv6: error: instruction requires: divide in THUMB armv8m.base32 33 .arch_extension noidiv34@ CHECK-V6: error: architectural extension 'idiv' is not allowed for the current base architecture35@ CHECK-V6-NEXT: .arch_extension noidiv36@ CHECK-V6-NEXT: ^37@ CHECK-V7M: error: architectural extension 'idiv' is not allowed for the current base architecture38@ CHECK-V7M-NEXT: .arch_extension noidiv39@ CHECK-V7M-NEXT: ^40 41 .type noidiv,%function42noidiv:43 udiv r0, r1, r244@ CHECK-ARMv6: error: instruction requires: divide in ARM45@ CHECK-THUMBv6: error: instruction requires: divide in THUMB armv8m.base46@ CHECK-ARMv7: error: instruction requires: divide in ARM47@ CHECK-THUMBv7: error: instruction requires: divide in THUMB48 sdiv r0, r1, r249@ CHECK-ARMv6: error: instruction requires: divide in ARM50@ CHECK-THUMBv6: error: instruction requires: divide in THUMB armv8m.base51@ CHECK-ARMv7: error: instruction requires: divide in ARM52@ CHECK-THUMBv7: error: instruction requires: divide in THUMB53 54