diff --git a/llvm/test/MC/AVR/inst-break.s b/llvm/test/MC/AVR/inst-break.s --- a/llvm/test/MC/AVR/inst-break.s +++ b/llvm/test/MC/AVR/inst-break.s @@ -1,4 +1,5 @@ ; RUN: llvm-mc -triple avr -mattr=break -show-encoding < %s | FileCheck %s +; RUN: llvm-mc -filetype=obj -triple avr -mattr=break < %s | llvm-objdump -d -mattr=break - | FileCheck -check-prefix=CHECK-INST %s foo: @@ -6,3 +7,5 @@ break ; CHECK: break ; encoding: [0x98,0x95] + +; CHECK-INST: break diff --git a/llvm/test/MC/AVR/inst-des.s b/llvm/test/MC/AVR/inst-des.s --- a/llvm/test/MC/AVR/inst-des.s +++ b/llvm/test/MC/AVR/inst-des.s @@ -1,4 +1,5 @@ ; RUN: llvm-mc -triple avr -mattr=des -show-encoding < %s | FileCheck %s +; RUN: llvm-mc -filetype=obj -triple avr -mattr=des < %s | llvm-objdump -d -mattr=des - | FileCheck -check-prefix=CHECK-INST %s foo: @@ -12,3 +13,8 @@ ; CHECK: des 6 ; encoding: [0x6b,0x94] ; CHECK: des 1 ; encoding: [0x1b,0x94] ; CHECK: des 8 ; encoding: [0x8b,0x94] + +; CHECK-INST: des 0 +; CHECK-INST: des 6 +; CHECK-INST: des 1 +; CHECK-INST: des 8 diff --git a/llvm/test/MC/AVR/inst-eicall.s b/llvm/test/MC/AVR/inst-eicall.s --- a/llvm/test/MC/AVR/inst-eicall.s +++ b/llvm/test/MC/AVR/inst-eicall.s @@ -1,4 +1,5 @@ ; RUN: llvm-mc -triple avr -mattr=eijmpcall -show-encoding < %s | FileCheck %s +; RUN: llvm-mc -filetype=obj -triple avr -mattr=eijmpcall < %s | llvm-objdump -d -mattr=eijmpcall - | FileCheck -check-prefix=CHECK-INST %s foo: @@ -6,3 +7,5 @@ eicall ; CHECK: eicall ; encoding: [0x19,0x95] + +; CHECK-INST: eicall diff --git a/llvm/test/MC/AVR/inst-eijmp.s b/llvm/test/MC/AVR/inst-eijmp.s --- a/llvm/test/MC/AVR/inst-eijmp.s +++ b/llvm/test/MC/AVR/inst-eijmp.s @@ -1,4 +1,5 @@ ; RUN: llvm-mc -triple avr -mattr=eijmpcall -show-encoding < %s | FileCheck %s +; RUN: llvm-mc -filetype=obj -triple avr -mattr=eijmpcall < %s | llvm-objdump -d -mattr=eijmpcall - | FileCheck -check-prefix=CHECK-INST %s foo: @@ -6,3 +7,5 @@ eijmp ; CHECK: eijmp ; encoding: [0x19,0x94] + +; CHECK-INST: eijmp diff --git a/llvm/test/MC/AVR/inst-family-set-clr-flag.s b/llvm/test/MC/AVR/inst-family-set-clr-flag.s --- a/llvm/test/MC/AVR/inst-family-set-clr-flag.s +++ b/llvm/test/MC/AVR/inst-family-set-clr-flag.s @@ -1,4 +1,5 @@ ; 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: @@ -103,3 +104,37 @@ ; CHECK: clt ; encoding: [0xe8,0x94] ; CHECK: cli ; encoding: [0xf8,0x94] ; CHECK: cli ; encoding: [0xf8,0x94] + +; CHECK-INST: sec +; CHECK-INST: sec +; CHECK-INST: sez +; CHECK-INST: sez +; CHECK-INST: sen +; CHECK-INST: sen +; CHECK-INST: sev +; CHECK-INST: sev +; CHECK-INST: ses +; CHECK-INST: ses +; CHECK-INST: seh +; CHECK-INST: seh +; CHECK-INST: set +; CHECK-INST: set +; CHECK-INST: sei +; CHECK-INST: sei + +; CHECK-INST: clc +; CHECK-INST: clc +; CHECK-INST: clz +; CHECK-INST: clz +; CHECK-INST: cln +; CHECK-INST: cln +; CHECK-INST: clv +; CHECK-INST: clv +; CHECK-INST: cls +; CHECK-INST: cls +; CHECK-INST: clh +; CHECK-INST: clh +; CHECK-INST: clt +; CHECK-INST: clt +; CHECK-INST: cli +; CHECK-INST: cli diff --git a/llvm/test/MC/AVR/inst-icall.s b/llvm/test/MC/AVR/inst-icall.s --- a/llvm/test/MC/AVR/inst-icall.s +++ b/llvm/test/MC/AVR/inst-icall.s @@ -1,4 +1,5 @@ ; RUN: llvm-mc -triple avr -mattr=ijmpcall -show-encoding < %s | FileCheck %s +; RUN: llvm-mc -filetype=obj -triple avr -mattr=ijmpcall < %s | llvm-objdump -d -mattr=ijmpcall - | FileCheck -check-prefix=CHECK-INST %s foo: @@ -6,3 +7,5 @@ icall ; CHECK: icall ; encoding: [0x09,0x95] + +; CHECK-INST: icall diff --git a/llvm/test/MC/AVR/inst-ijmp.s b/llvm/test/MC/AVR/inst-ijmp.s --- a/llvm/test/MC/AVR/inst-ijmp.s +++ b/llvm/test/MC/AVR/inst-ijmp.s @@ -1,4 +1,5 @@ ; RUN: llvm-mc -triple avr -mattr=ijmpcall -show-encoding < %s | FileCheck %s +; RUN: llvm-mc -filetype=obj -triple avr -mattr=ijmpcall < %s | llvm-objdump -d -mattr=ijmpcall - | FileCheck -check-prefix=CHECK-INST %s foo: @@ -6,3 +7,5 @@ ijmp ; CHECK: ijmp ; encoding: [0x09,0x94] + +; CHECK-INST: ijmp diff --git a/llvm/test/MC/AVR/inst-nop.s b/llvm/test/MC/AVR/inst-nop.s --- a/llvm/test/MC/AVR/inst-nop.s +++ b/llvm/test/MC/AVR/inst-nop.s @@ -1,4 +1,5 @@ ; 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: @@ -6,3 +7,5 @@ nop ; CHECK: nop ; encoding: [0x00,0x00] + +; CHECK-INST: nop diff --git a/llvm/test/MC/AVR/inst-ret.s b/llvm/test/MC/AVR/inst-ret.s --- a/llvm/test/MC/AVR/inst-ret.s +++ b/llvm/test/MC/AVR/inst-ret.s @@ -1,4 +1,5 @@ ; 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: @@ -6,3 +7,5 @@ ret ; CHECK: ret ; encoding: [0x08,0x95] + +; CHECK-INST: ret diff --git a/llvm/test/MC/AVR/inst-reti.s b/llvm/test/MC/AVR/inst-reti.s --- a/llvm/test/MC/AVR/inst-reti.s +++ b/llvm/test/MC/AVR/inst-reti.s @@ -1,4 +1,5 @@ ; 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: @@ -6,3 +7,5 @@ reti ; CHECK: reti ; encoding: [0x18,0x95] + +; CHECK-INST: reti diff --git a/llvm/test/MC/AVR/inst-sleep.s b/llvm/test/MC/AVR/inst-sleep.s --- a/llvm/test/MC/AVR/inst-sleep.s +++ b/llvm/test/MC/AVR/inst-sleep.s @@ -1,4 +1,5 @@ ; 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: @@ -6,3 +7,5 @@ sleep ; CHECK: sleep ; encoding: [0x88,0x95] + +; CHECK-INST: sleep diff --git a/llvm/test/MC/AVR/inst-wdr.s b/llvm/test/MC/AVR/inst-wdr.s --- a/llvm/test/MC/AVR/inst-wdr.s +++ b/llvm/test/MC/AVR/inst-wdr.s @@ -1,4 +1,5 @@ ; 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: @@ -6,3 +7,5 @@ wdr ; CHECK: wdr ; encoding: [0xa8,0x95] + +; CHECK-INST: wdr