2010-11-01 21:16:39 +00:00
|
|
|
@ RUN: llvm-mc -mcpu=cortex-a8 -triple armv7-apple-darwin -show-encoding < %s | FileCheck %s
|
2010-10-29 23:50:21 +00:00
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vadd.f64 d16, d17, d16 @ encoding: [0xa0,0x0b,0x71,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vadd.f64 d16, d17, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vadd.f32 s0, s1, s0 @ encoding: [0x80,0x0a,0x30,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vadd.f32 s0, s1, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vsub.f64 d16, d17, d16 @ encoding: [0xe0,0x0b,0x71,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vsub.f64 d16, d17, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vsub.f32 s0, s1, s0 @ encoding: [0xc0,0x0a,0x30,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vsub.f32 s0, s1, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vdiv.f64 d16, d17, d16 @ encoding: [0xa0,0x0b,0xc1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vdiv.f64 d16, d17, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vdiv.f32 s0, s1, s0 @ encoding: [0x80,0x0a,0x80,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vdiv.f32 s0, s1, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmul.f64 d16, d17, d16 @ encoding: [0xa0,0x0b,0x61,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmul.f64 d16, d17, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmul.f32 s0, s1, s0 @ encoding: [0x80,0x0a,0x20,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmul.f32 s0, s1, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnmul.f64 d16, d17, d16 @ encoding: [0xe0,0x0b,0x61,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnmul.f64 d16, d17, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnmul.f32 s0, s1, s0 @ encoding: [0xc0,0x0a,0x20,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnmul.f32 s0, s1, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcmpe.f64 d17, d16 @ encoding: [0xe0,0x1b,0xf4,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcmpe.f64 d17, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcmpe.f32 s1, s0 @ encoding: [0xc0,0x0a,0xf4,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcmpe.f32 s1, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ FIXME: vcmpe.f64 d16, #0 @ encoding: [0xc0,0x0b,0xf5,0xee]
|
|
|
|
@ vcmpe.f64 d16, #0
|
2010-10-29 23:50:21 +00:00
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ FIXME: vcmpe.f32 s0, #0 @ encoding: [0xc0,0x0a,0xb5,0xee]
|
|
|
|
@ vcmpe.f32 s0, #0
|
2010-10-29 23:50:21 +00:00
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vabs.f64 d16, d16 @ encoding: [0xe0,0x0b,0xf0,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vabs.f64 d16, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vabs.f32 s0, s0 @ encoding: [0xc0,0x0a,0xb0,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vabs.f32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.f32.f64 s0, d16 @ encoding: [0xe0,0x0b,0xb7,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.f32.f64 s0, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.f64.f32 d16, s0 @ encoding: [0xc0,0x0a,0xf7,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.f64.f32 d16, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vneg.f64 d16, d16 @ encoding: [0x60,0x0b,0xf1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vneg.f64 d16, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vneg.f32 s0, s0 @ encoding: [0x40,0x0a,0xb1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vneg.f32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vsqrt.f64 d16, d16 @ encoding: [0xe0,0x0b,0xf1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vsqrt.f64 d16, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vsqrt.f32 s0, s0 @ encoding: [0xc0,0x0a,0xb1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vsqrt.f32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.f64.s32 d16, s0 @ encoding: [0xc0,0x0b,0xf8,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.f64.s32 d16, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.f32.s32 s0, s0 @ encoding: [0xc0,0x0a,0xb8,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.f32.s32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.f64.u32 d16, s0 @ encoding: [0x40,0x0b,0xf8,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.f64.u32 d16, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.f32.u32 s0, s0 @ encoding: [0x40,0x0a,0xb8,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.f32.u32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.s32.f64 s0, d16 @ encoding: [0xe0,0x0b,0xbd,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.s32.f64 s0, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.s32.f32 s0, s0 @ encoding: [0xc0,0x0a,0xbd,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.s32.f32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.u32.f64 s0, d16 @ encoding: [0xe0,0x0b,0xbc,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.u32.f64 s0, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vcvt.u32.f32 s0, s0 @ encoding: [0xc0,0x0a,0xbc,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vcvt.u32.f32 s0, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmla.f64 d16, d18, d17 @ encoding: [0xa1,0x0b,0x42,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmla.f64 d16, d18, d17
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmla.f32 s1, s2, s0 @ encoding: [0x00,0x0a,0x41,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmla.f32 s1, s2, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmls.f64 d16, d18, d17 @ encoding: [0xe1,0x0b,0x42,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmls.f64 d16, d18, d17
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmls.f32 s1, s2, s0 @ encoding: [0x40,0x0a,0x41,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmls.f32 s1, s2, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnmla.f64 d16, d18, d17 @ encoding: [0xe1,0x0b,0x52,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnmla.f64 d16, d18, d17
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnmla.f32 s1, s2, s0 @ encoding: [0x40,0x0a,0x51,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnmla.f32 s1, s2, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnmls.f64 d16, d18, d17 @ encoding: [0xa1,0x0b,0x52,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnmls.f64 d16, d18, d17
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnmls.f32 s1, s2, s0 @ encoding: [0x00,0x0a,0x51,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnmls.f32 s1, s2, s0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ FIXME: vmrs apsr_nzcv, fpscr @ encoding: [0x10,0xfa,0xf1,0xee]
|
|
|
|
@ vmrs apsr_nzcv, fpscr
|
2010-10-29 23:50:21 +00:00
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vnegne.f64 d16, d16 @ encoding: [0x60,0x0b,0xf1,0x1e]
|
2010-10-29 23:50:21 +00:00
|
|
|
vnegne.f64 d16, d16
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmovne s0, r0 @ encoding: [0x10,0x0a,0x00,0x1e]
|
|
|
|
@ CHECK: vmoveq s0, r1 @ encoding: [0x10,0x1a,0x00,0x0e]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmovne s0, r0
|
|
|
|
vmoveq s0, r1
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmrs r0, fpscr @ encoding: [0x10,0x0a,0xf1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmrs r0, fpscr
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmsr fpscr, r0 @ encoding: [0x10,0x0a,0xe1,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmsr fpscr, r0
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ FIXME: vmov.f64 d16, #3.000000e+00 @ encoding: [0x08,0x0b,0xf0,0xee]
|
|
|
|
@ vmov.f64 d16, #3.000000e+00
|
2010-10-29 23:50:21 +00:00
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ FIXME: vmov.f32 s0, #3.000000e+00 @ encoding: [0x08,0x0a,0xb0,0xee]
|
|
|
|
@ vmov.f32 s0, #3.000000e+00
|
2010-10-29 23:50:21 +00:00
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmov s0, r0 @ encoding: [0x10,0x0a,0x00,0xee]
|
|
|
|
@ CHECK: vmov s1, r1 @ encoding: [0x90,0x1a,0x00,0xee]
|
|
|
|
@ CHECK: vmov s2, r2 @ encoding: [0x10,0x2a,0x01,0xee]
|
|
|
|
@ CHECK: vmov s3, r3 @ encoding: [0x90,0x3a,0x01,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmov s0, r0
|
|
|
|
vmov s1, r1
|
|
|
|
vmov s2, r2
|
|
|
|
vmov s3, r3
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmov r0, s0 @ encoding: [0x10,0x0a,0x10,0xee]
|
|
|
|
@ CHECK: vmov r1, s1 @ encoding: [0x90,0x1a,0x10,0xee]
|
|
|
|
@ CHECK: vmov r2, s2 @ encoding: [0x10,0x2a,0x11,0xee]
|
|
|
|
@ CHECK: vmov r3, s3 @ encoding: [0x90,0x3a,0x11,0xee]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmov r0, s0
|
|
|
|
vmov r1, s1
|
|
|
|
vmov r2, s2
|
|
|
|
vmov r3, s3
|
|
|
|
|
2010-11-01 21:16:39 +00:00
|
|
|
@ CHECK: vmov r0, r1, d16 @ encoding: [0x30,0x0b,0x51,0xec]
|
2010-10-29 23:50:21 +00:00
|
|
|
vmov r0, r1, d16
|