mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
81a28f0089
This is a set of instructions that take just a single register as an operand, with no immediates. Because all instructions share the same format, I haven't added exhaustive bit testing to all instructions but just to the inc instruction. Differential Revision: https://reviews.llvm.org/D81968
19 lines
534 B
ArmAsm
19 lines
534 B
ArmAsm
; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
|
|
; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s
|
|
|
|
foo:
|
|
neg r15
|
|
neg r1
|
|
neg r22
|
|
neg r31
|
|
|
|
; CHECK: neg r15 ; encoding: [0xf1,0x94]
|
|
; CHECK: neg r1 ; encoding: [0x11,0x94]
|
|
; CHECK: neg r22 ; encoding: [0x61,0x95]
|
|
; CHECK: neg r31 ; encoding: [0xf1,0x95]
|
|
|
|
; CHECK-INST: neg r15
|
|
; CHECK-INST: neg r1
|
|
; CHECK-INST: neg r22
|
|
; CHECK-INST: neg r31
|