mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-28 06:29:45 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183733 91177308-0d34-0410-b5e6-96231b3b80d8
263 lines
5.4 KiB
Plaintext
263 lines
5.4 KiB
Plaintext
# RUN: llvm-mc -triple armv7-apple-darwin -mcpu=cortex-a8 -disassemble < %s | FileCheck %s
|
|
|
|
0xa0 0x0b 0x71 0xee
|
|
# CHECK: vadd.f64 d16, d17, d16
|
|
|
|
0x80 0x0a 0x30 0xee
|
|
# CHECK: vadd.f32 s0, s1, s0
|
|
|
|
0xe0 0x0b 0x71 0xee
|
|
# CHECK: vsub.f64 d16, d17, d16
|
|
|
|
0xc0 0x0a 0x30 0xee
|
|
# CHECK: vsub.f32 s0, s1, s0
|
|
|
|
0xa0 0x0b 0xc1 0xee
|
|
# CHECK: vdiv.f64 d16, d17, d16
|
|
|
|
0x80 0x0a 0x80 0xee
|
|
# CHECK: vdiv.f32 s0, s1, s0
|
|
|
|
0xa0 0x0b 0x61 0xee
|
|
# CHECK: vmul.f64 d16, d17, d16
|
|
|
|
0x80 0x0a 0x20 0xee
|
|
# CHECK: vmul.f32 s0, s1, s0
|
|
|
|
0xe0 0x0b 0x61 0xee
|
|
# CHECK: vnmul.f64 d16, d17, d16
|
|
|
|
0xc0 0x0a 0x20 0xee
|
|
# CHECK: vnmul.f32 s0, s1, s0
|
|
|
|
0xe0 0x1b 0xf4 0xee
|
|
# CHECK: vcmpe.f64 d17, d16
|
|
|
|
0xc0 0x0a 0xf4 0xee
|
|
# CHECK: vcmpe.f32 s1, s0
|
|
|
|
0xe0 0x0b 0xf0 0xee
|
|
# CHECK: vabs.f64 d16, d16
|
|
|
|
0xc0 0x0a 0xb0 0xee
|
|
# CHECK: vabs.f32 s0, s0
|
|
|
|
0xe0 0x0b 0xb7 0xee
|
|
# CHECK: vcvt.f32.f64 s0, d16
|
|
|
|
0xc0 0x0a 0xf7 0xee
|
|
# CHECK: vcvt.f64.f32 d16, s0
|
|
|
|
0x60 0x0b 0xf1 0xee
|
|
# CHECK: vneg.f64 d16, d16
|
|
|
|
0x40 0x0a 0xb1 0xee
|
|
# CHECK: vneg.f32 s0, s0
|
|
|
|
0xe0 0x0b 0xf1 0xee
|
|
# CHECK: vsqrt.f64 d16, d16
|
|
|
|
0xc0 0x0a 0xb1 0xee
|
|
# CHECK: vsqrt.f32 s0, s0
|
|
|
|
0xc0 0x0b 0xf8 0xee
|
|
# CHECK: vcvt.f64.s32 d16, s0
|
|
|
|
0xc0 0x0a 0xb8 0xee
|
|
# CHECK: vcvt.f32.s32 s0, s0
|
|
|
|
0x40 0x0b 0xf8 0xee
|
|
# CHECK: vcvt.f64.u32 d16, s0
|
|
|
|
0x40 0x0a 0xb8 0xee
|
|
# CHECK: vcvt.f32.u32 s0, s0
|
|
|
|
0xe0 0x0b 0xbd 0xee
|
|
# CHECK: vcvt.s32.f64 s0, d16
|
|
|
|
0xc0 0x0a 0xbd 0xee
|
|
# CHECK: vcvt.s32.f32 s0, s0
|
|
|
|
0xe0 0x0b 0xbc 0xee
|
|
# CHECK: vcvt.u32.f64 s0, d16
|
|
|
|
0xc0 0x0a 0xbc 0xee
|
|
# CHECK: vcvt.u32.f32 s0, s0
|
|
|
|
0xa1 0x0b 0x42 0xee
|
|
# CHECK: vmla.f64 d16, d18, d17
|
|
|
|
0x00 0x0a 0x41 0xee
|
|
# CHECK: vmla.f32 s1, s2, s0
|
|
|
|
0xe1 0x0b 0x42 0xee
|
|
# CHECK: vmls.f64 d16, d18, d17
|
|
|
|
0x40 0x0a 0x41 0xee
|
|
# CHECK: vmls.f32 s1, s2, s0
|
|
|
|
0xe1 0x0b 0x52 0xee
|
|
# CHECK: vnmla.f64 d16, d18, d17
|
|
|
|
0x40 0x0a 0x51 0xee
|
|
# CHECK: vnmla.f32 s1, s2, s0
|
|
|
|
0xa1 0x0b 0x52 0xee
|
|
# CHECK: vnmls.f64 d16, d18, d17
|
|
|
|
0x00 0x0a 0x51 0xee
|
|
# CHECK: vnmls.f32 s1, s2, s0
|
|
|
|
0x60 0x0b 0xf1 0x1e
|
|
# CHECK: vnegne.f64 d16, d16
|
|
|
|
0x10 0x0a 0x00 0x1e
|
|
0x10 0x1a 0x00 0x0e
|
|
# CHECK: vmovne s0, r0
|
|
# CHECK: vmoveq s0, r1
|
|
|
|
0x10 0x0a 0xf1 0xee
|
|
# CHECK: vmrs r0, fpscr
|
|
0x10 0x0a 0xf8 0xee
|
|
# CHECK: vmrs r0, fpexc
|
|
0x10 0x0a 0xf0 0xee
|
|
# CHECK: vmrs r0, fpsid
|
|
0x10 0x1a 0xf9 0xee
|
|
# CHECK: vmrs r1, fpinst
|
|
0x10 0x8a 0xfa 0xee
|
|
# CHECK: vmrs r8, fpinst2
|
|
|
|
0x10 0x0a 0xe1 0xee
|
|
# CHECK: vmsr fpscr, r0
|
|
0x10 0x0a 0xe8 0xee
|
|
# CHECK: vmsr fpexc, r0
|
|
0x10 0x0a 0xe0 0xee
|
|
# CHECK: vmsr fpsid, r0
|
|
0x10 0x3a 0xe9 0xee
|
|
# CHECK: vmsr fpinst, r3
|
|
0x10 0x4a 0xea 0xee
|
|
# CHECK: vmsr fpinst2, r4
|
|
|
|
0x10 0x0a 0x00 0xee
|
|
0x90 0x1a 0x00 0xee
|
|
0x10 0x2a 0x01 0xee
|
|
0x90 0x3a 0x01 0xee
|
|
# CHECK: vmov s0, r0
|
|
# CHECK: vmov s1, r1
|
|
# CHECK: vmov s2, r2
|
|
# CHECK: vmov s3, r3
|
|
|
|
0x10 0x0a 0x10 0xee
|
|
0x90 0x1a 0x10 0xee
|
|
0x10 0x2a 0x11 0xee
|
|
0x90 0x3a 0x11 0xee
|
|
# CHECK: vmov r0, s0
|
|
# CHECK: vmov r1, s1
|
|
# CHECK: vmov r2, s2
|
|
# CHECK: vmov r3, s3
|
|
|
|
0x30 0x0b 0x51 0xec
|
|
# CHECK: vmov r0, r1, d16
|
|
|
|
0x00 0x1b 0xd0 0xed
|
|
# CHECK: vldr d17, [r0]
|
|
|
|
0x08 0x1b 0x92 0xed
|
|
0x08 0x1b 0x12 0xed
|
|
# CHECK: vldr d1, [r2, #32]
|
|
# CHECK: vldr d1, [r2, #-32]
|
|
|
|
0x00 0x2b 0x93 0xed
|
|
# CHECK: vldr d2, [r3]
|
|
|
|
0x00 0x3b 0x9f 0xed
|
|
# CHECK: vldr d3, [pc]
|
|
|
|
0x00 0x6a 0xd0 0xed
|
|
# CHECK: vldr s13, [r0]
|
|
|
|
0x08 0x0a 0xd2 0xed
|
|
0x08 0x0a 0x52 0xed
|
|
# CHECK: vldr s1, [r2, #32]
|
|
# CHECK: vldr s1, [r2, #-32]
|
|
|
|
0x00 0x1a 0x93 0xed
|
|
# CHECK: vldr s2, [r3]
|
|
|
|
0x00 0x2a 0xdf 0xed
|
|
# CHECK: vldr s5, [pc]
|
|
|
|
0x00 0x4b 0x81 0xed
|
|
0x06 0x4b 0x81 0xed
|
|
0x06 0x4b 0x01 0xed
|
|
# CHECK: vstr d4, [r1]
|
|
# CHECK: vstr d4, [r1, #24]
|
|
# CHECK: vstr d4, [r1, #-24]
|
|
|
|
0x00 0x2a 0x81 0xed
|
|
0x06 0x2a 0x81 0xed
|
|
0x06 0x2a 0x01 0xed
|
|
# CHECK: vstr s4, [r1]
|
|
# CHECK: vstr s4, [r1, #24]
|
|
# CHECK: vstr s4, [r1, #-24]
|
|
|
|
0x0c 0x2b 0x91 0xec
|
|
0x06 0x1a 0x91 0xec
|
|
# CHECK: vldmia r1, {d2, d3, d4, d5, d6, d7}
|
|
# CHECK: vldmia r1, {s2, s3, s4, s5, s6, s7}
|
|
|
|
0x0c 0x2b 0x81 0xec
|
|
0x06 0x1a 0x81 0xec
|
|
# CHECK: vstmia r1, {d2, d3, d4, d5, d6, d7}
|
|
# CHECK: vstmia r1, {s2, s3, s4, s5, s6, s7}
|
|
|
|
0x05 0x9a 0xc0 0x0c
|
|
0x0c 0x0b 0xc7 0x0c
|
|
0x06 0x9a 0x93 0x0c
|
|
0x0a 0x5b 0xd2 0x0c
|
|
# CHECK: vstmiaeq r0, {s19, s20, s21, s22, s23}
|
|
# CHECK: vstmiaeq r7, {d16, d17, d18, d19, d20, d21}
|
|
# CHECK: vldmiaeq r3, {s18, s19, s20, s21, s22, s23}
|
|
# CHECK: vldmiaeq r2, {d21, d22, d23, d24, d25}
|
|
|
|
0x04 0xca 0x6c 0x0d
|
|
0x06 0x1b 0x69 0x0d
|
|
0x03 0xaa 0x75 0x0d
|
|
0x08 0xeb 0x37 0x0d
|
|
# CHECK: vstmdbeq r12!, {s25, s26, s27, s28}
|
|
# CHECK: vstmdbeq r9!, {d17, d18, d19}
|
|
# CHECK: vldmdbeq r5!, {s21, s22, s23}
|
|
# CHECK: vldmdbeq r7!, {d14, d15, d16, d17}
|
|
|
|
0x0d 0x4b 0x96 0x0c
|
|
0x0f 0x3b 0xb7 0x0c
|
|
0x09 0x1b 0x38 0xed
|
|
# CHECK: fldmiaxeq r6, {d4, d5, d6, d7, d8, d9}
|
|
# CHECK: fldmiaxeq r7!, {d3, d4, d5, d6, d7, d8, d9}
|
|
# CHECK: fldmdbx r8!, {d1, d2, d3, d4}
|
|
|
|
0x07 0x2b 0x83 0xec
|
|
0x05 0x5b 0xa3 0x0c
|
|
0x0f 0x3b 0x20 0x1d
|
|
# CHECK: fstmiax r3, {d2, d3, d4}
|
|
# CHECK: fstmiaxeq r3!, {d5, d6}
|
|
# CHECK: fstmdbxne r0!, {d3, d4, d5, d6, d7, d8, d9}
|
|
|
|
0x04 0x7a 0xa6 0x0c
|
|
0x0c 0xfb 0xa4 0x0c
|
|
0x03 0xaa 0xf8 0x0c
|
|
0x0a 0x3b 0xfb 0x0c
|
|
# CHECK: vstmiaeq r6!, {s14, s15, s16, s17}
|
|
# CHECK: vstmiaeq r4!, {d15, d16, d17, d18, d19, d20}
|
|
# CHECK: vldmiaeq r8!, {s21, s22, s23}
|
|
# CHECK: vldmiaeq r11!, {d19, d20, d21, d22, d23}
|
|
|
|
0x40 0x0b 0xbd 0xee
|
|
0x60 0x0a 0xbd 0xee
|
|
0x40 0x0b 0xbc 0xee
|
|
0x60 0x0a 0xbc 0xee
|
|
# CHECK: vcvtr.s32.f64 s0, d0
|
|
# CHECK: vcvtr.s32.f32 s0, s1
|
|
# CHECK: vcvtr.u32.f64 s0, d0
|
|
# CHECK: vcvtr.u32.f32 s0, s1
|