• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-mc -triple avr -mattr=mul -show-encoding < %s | FileCheck %s
2; RUN: llvm-mc -filetype=obj -triple avr -mattr=mul < %s | llvm-objdump -d --mattr=mul - | FileCheck -check-prefix=CHECK-INST %s
3
4
5foo:
6
7  mulsu r22, r16
8  mulsu r19, r17
9  mulsu r21, r23
10  mulsu r23, r23
11
12; CHECK: mulsu r22, r16                   ; encoding: [0x60,0x03]
13; CHECK: mulsu r19, r17                   ; encoding: [0x31,0x03]
14; CHECK: mulsu r21, r23                   ; encoding: [0x57,0x03]
15; CHECK: mulsu r23, r23                   ; encoding: [0x77,0x03]
16
17; CHECK-INST: mulsu r22, r16
18; CHECK-INST: mulsu r19, r17
19; CHECK-INST: mulsu r21, r23
20; CHECK-INST: mulsu r23, r23
21