reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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
# RUN: llvm-mc -triple=arc -disassemble %s | FileCheck %s

# CHECK: mov %r0, -1
0x8a 0x20 0xff 0x0f

# 32767 == 0x7fff
# CHECK: mov %r4, 32767
0x0a 0x24 0x80 0x0f 0x00 0x00 0xff 0x7f

# CHECK: mov.eq %r2, %r6
0xca 0x22 0x81 0x01

# CHECK: mov %r13, %r2
0x0a 0x25 0x80 0x10

# CHECK: mov %r1, 20
0x4a 0x21 0x00 0x05

# CHECK: st.aw %fp, [%sp,-4]
0xfc 0x1c 0xc8 0xb6

# CHECK: ld.ab %fp, [%sp,4]
0x04 0x14 0x1b 0x34

# CHECK: bl -2028
0x16 0x08 0xcf 0xff

# CHECK: cmp %r13, %r10
0x0c 0x25 0x80 0x92

# CHECK: cmp %r14, 0
0x4c 0x26 0x00 0x90

# CHECK: cmp %r23, 1
0x4c 0x27 0x40 0xa0

# CHECK: jl [%r21]
0x22 0x20 0x40 0x05

# CHECK: jl 12345
0x22 0x20 0x80 0x0f 0x00 0x00 0x39 0x30

# CHECK: j [%r3]
0x20 0x20 0xc0 0x00

# CHECK: j 12345
0x20 0x20 0x80 0x0f 0x00 0x00 0x39 0x30

# CHECK: seteq %r3, %fp, %r1
0x38 0x23 0x43 0x30

# CHECK: seteq %r3, %fp, 17
0x78 0x23 0x43 0x34

# CHECK: seteq %fp, %fp, -1
0xb8 0x23 0xff 0x3f