1a872e0e0SDavid Peixotto@ RUN: not llvm-mc -mcpu=cortex-a8 -triple armv7-none-linux-gnueabi < %s 2>&1 | FileCheck %s 2a872e0e0SDavid Peixotto 3a872e0e0SDavid Peixotto@ Test for floating point constants that are out of the 8-bit encoded value range 4a872e0e0SDavid Peixottovmov.f32 s2, #32.0 5*e093bad4SOliver Stannard@ CHECK: invalid operand for instruction 6a872e0e0SDavid Peixotto 7a872e0e0SDavid Peixottovmov.f64 d2, #32.0 8*e093bad4SOliver Stannard@ CHECK: invalid operand for instruction 9a872e0e0SDavid Peixotto 10a872e0e0SDavid Peixotto@ Test that vmov.f instructions do not accept an 8-bit encoded float as an operand 11a872e0e0SDavid Peixottovmov.f32 s1, #0x70 12a872e0e0SDavid Peixotto@ CHECK: error: invalid floating point immediate 13a872e0e0SDavid Peixotto 14a872e0e0SDavid Peixottovmov.f64 d2, #0x70 15a872e0e0SDavid Peixotto@ CHECK: error: invalid floating point immediate 16a872e0e0SDavid Peixotto 17a872e0e0SDavid Peixotto@ Test that fconst instructions do not accept a float constant as an operand 18a872e0e0SDavid Peixottofconsts s1, #1.0 19a872e0e0SDavid Peixotto@ CHECK: error: invalid floating point immediate 20a872e0e0SDavid Peixotto 21a872e0e0SDavid Peixottofconstd d2, #1.0 22a872e0e0SDavid Peixotto@ CHECK: error: invalid floating point immediate 236003fb58STim Northover 246003fb58STim Northovervmov.i64 d0, 0x8000000000000000 25*e093bad4SOliver Stannard@ CHECK: invalid operand for instruction 26