• 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  fmul r22, r16
8  fmul r19, r17
9  fmul r21, r23
10  fmul r23, r23
11  fmul r16, r16
12  fmul r16, r23
13
14; CHECK: fmul r22, r16                   ; encoding: [0x68,0x03]
15; CHECK: fmul r19, r17                   ; encoding: [0x39,0x03]
16; CHECK: fmul r21, r23                   ; encoding: [0x5f,0x03]
17; CHECK: fmul r23, r23                   ; encoding: [0x7f,0x03]
18; CHECK: fmul r16, r16                   ; encoding: [0x08,0x03]
19; CHECK: fmul r16, r23                   ; encoding: [0x0f,0x03]
20
21; CHECK-INST: fmul r22, r16
22; CHECK-INST: fmul r19, r17
23; CHECK-INST: fmul r21, r23
24; CHECK-INST: fmul r23, r23
25; CHECK-INST: fmul r16, r16
26; CHECK-INST: fmul r16, r23
27