60 lines · plain
1@ New ARMv8 A32 encodings2 3@ RUN: llvm-mc -triple armv8 -show-encoding < %s | FileCheck %s --check-prefix=CHECK-V84@ RUN: not llvm-mc -triple armv7 -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V75 6@ HLT7 hlt #08 hlt #655359@ CHECK-V8: hlt #0 @ encoding: [0x70,0x00,0x00,0xe1]10@ CHECK-V8: hlt #65535 @ encoding: [0x7f,0xff,0x0f,0xe1]11@ CHECK-V7: error: instruction requires: armv812@ CHECK-V7: error: instruction requires: armv813 14@ AL condition code allowable15 hltal #016@ CHECK-V8: hlt #0 @ encoding: [0x70,0x00,0x00,0xe1]17@ CHECK-V7: error: instruction requires: armv818 19@------------------------------------------------------------------------------20@ DMB (v8 barriers)21@------------------------------------------------------------------------------22 dmb ishld23 dmb oshld24 dmb nshld25 dmb ld26 27@ CHECK-V8: dmb ishld @ encoding: [0x59,0xf0,0x7f,0xf5]28@ CHECK-V8: dmb oshld @ encoding: [0x51,0xf0,0x7f,0xf5]29@ CHECK-V8: dmb nshld @ encoding: [0x55,0xf0,0x7f,0xf5]30@ CHECK-V8: dmb ld @ encoding: [0x5d,0xf0,0x7f,0xf5]31@ CHECK-V7: error: invalid operand for instruction32@ CHECK-V7: error: invalid operand for instruction33@ CHECK-V7: error: invalid operand for instruction34@ CHECK-V7: error: invalid operand for instruction35 36@------------------------------------------------------------------------------37@ DSB (v8 barriers)38@------------------------------------------------------------------------------39 dsb ishld40 dsb oshld41 dsb nshld42 dsb ld43 44@ CHECK-V8: dsb ishld @ encoding: [0x49,0xf0,0x7f,0xf5]45@ CHECK-V8: dsb oshld @ encoding: [0x41,0xf0,0x7f,0xf5]46@ CHECK-V8: dsb nshld @ encoding: [0x45,0xf0,0x7f,0xf5]47@ CHECK-V8: dsb ld @ encoding: [0x4d,0xf0,0x7f,0xf5]48@ CHECK-V7: error: invalid operand for instruction49@ CHECK-V7: error: invalid operand for instruction50@ CHECK-V7: error: invalid operand for instruction51@ CHECK-V7: error: invalid operand for instruction52 53@------------------------------------------------------------------------------54@ SEVL55@------------------------------------------------------------------------------56 sevl57 58@ CHECK-V8: sevl @ encoding: [0x05,0xf0,0x20,0xe3]59@ CHECK-V7: instruction requires: armv860