1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
foo:
; Flag set operations
; SEC
bset 0
sec
; SEZ
bset 1
sez
; SEN
bset 2
sen
; SEV
bset 3
sev
; SES
bset 4
ses
; SEH
bset 5
seh
; SET
bset 6
set
; SEI
bset 7
sei
; Flag clear operations
; CLC
bclr 0
clc
; CLZ
bclr 1
clz
; CLN
bclr 2
cln
; CLV
bclr 3
clv
; CLS
bclr 4
cls
; CLH
bclr 5
clh
; CLT
bclr 6
clt
; CLI
bclr 7
cli
; CHECK: sec ; encoding: [0x08,0x94]
; CHECK: sec ; encoding: [0x08,0x94]
; CHECK: sez ; encoding: [0x18,0x94]
; CHECK: sez ; encoding: [0x18,0x94]
; CHECK: sen ; encoding: [0x28,0x94]
; CHECK: sen ; encoding: [0x28,0x94]
; CHECK: sev ; encoding: [0x38,0x94]
; CHECK: sev ; encoding: [0x38,0x94]
; CHECK: ses ; encoding: [0x48,0x94]
; CHECK: ses ; encoding: [0x48,0x94]
; CHECK: seh ; encoding: [0x58,0x94]
; CHECK: seh ; encoding: [0x58,0x94]
; CHECK: set ; encoding: [0x68,0x94]
; CHECK: set ; encoding: [0x68,0x94]
; CHECK: sei ; encoding: [0x78,0x94]
; CHECK: sei ; encoding: [0x78,0x94]
; CHECK: clc ; encoding: [0x88,0x94]
; CHECK: clc ; encoding: [0x88,0x94]
; CHECK: clz ; encoding: [0x98,0x94]
; CHECK: clz ; encoding: [0x98,0x94]
; CHECK: cln ; encoding: [0xa8,0x94]
; CHECK: cln ; encoding: [0xa8,0x94]
; CHECK: clv ; encoding: [0xb8,0x94]
; CHECK: clv ; encoding: [0xb8,0x94]
; CHECK: cls ; encoding: [0xc8,0x94]
; CHECK: cls ; encoding: [0xc8,0x94]
; CHECK: clh ; encoding: [0xd8,0x94]
; CHECK: clh ; encoding: [0xd8,0x94]
; CHECK: clt ; encoding: [0xe8,0x94]
; CHECK: clt ; encoding: [0xe8,0x94]
; CHECK: cli ; encoding: [0xf8,0x94]
; CHECK: cli ; encoding: [0xf8,0x94]
|