diff --git a/llvm/test/MC/RISCV/zfa-valid.s b/llvm/test/MC/RISCV/zfa-valid.s --- a/llvm/test/MC/RISCV/zfa-valid.s +++ b/llvm/test/MC/RISCV/zfa-valid.s @@ -16,6 +16,151 @@ # RUN: -riscv-no-aliases -show-encoding < %s 2>&1 \ # RUN: | FileCheck -check-prefixes=CHECK-NO-EXT %s +# CHECK-ASM-AND-OBJ: fli.s ft1, -1.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x10,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, -0x1p+0 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 1.52587890625e-05 +# CHECK-ASM: encoding: [0xd3,0x00,0x11,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-16 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 3.0517578125e-05 +# CHECK-ASM: encoding: [0xd3,0x80,0x11,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-15 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.00390625 +# CHECK-ASM: encoding: [0xd3,0x00,0x12,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-8 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.0625 +# CHECK-ASM: encoding: [0xd3,0x00,0x13,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-4 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.0078125 +# CHECK-ASM: encoding: [0xd3,0x80,0x12,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-7 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.125 +# CHECK-ASM: encoding: [0xd3,0x80,0x13,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-3 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.25 +# CHECK-ASM: encoding: [0xd3,0x00,0x14,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-2 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.3125 +# CHECK-ASM: encoding: [0xd3,0x80,0x14,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.4p-2 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.375 +# CHECK-ASM: encoding: [0xd3,0x00,0x15,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.8p-2 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.4375 +# CHECK-ASM: encoding: [0xd3,0x80,0x15,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.cp-2 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.5 +# CHECK-ASM: encoding: [0xd3,0x00,0x16,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p-1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.625 +# CHECK-ASM: encoding: [0xd3,0x80,0x16,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.4p-1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.75 +# CHECK-ASM: encoding: [0xd3,0x00,0x17,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.8p-1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 0.875 +# CHECK-ASM: encoding: [0xd3,0x80,0x17,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.cp-1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 1.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x18,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+0 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 1.25 +# CHECK-ASM: encoding: [0xd3,0x80,0x18,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.4p+0 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 1.5 +# CHECK-ASM: encoding: [0xd3,0x00,0x19,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.8p+0 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 1.75 +# CHECK-ASM: encoding: [0xd3,0x80,0x19,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.cp+0 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 2.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1a,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 2.5 +# CHECK-ASM: encoding: [0xd3,0x80,0x1a,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.4p+1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 3.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1b,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1.8p+1 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 4.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1b,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+2 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 8.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1c,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+3 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 16.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1c,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+4 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 128.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1d,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+7 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 256.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1d,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+8 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 32768.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1e,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+15 + +# CHECK-ASM-AND-OBJ: fli.s ft1, 65536.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1e,0xf0] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.s ft1, 0x1p+16 + # CHECK-ASM-AND-OBJ: fli.s ft1, -1.0 # CHECK-ASM: encoding: [0xd3,0x00,0x10,0xf0] # CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} @@ -176,6 +321,150 @@ # CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} fli.s ft1, nan +# CHECK-ASM-AND-OBJ: fli.d ft1, -1.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x10,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, -0x1p+0 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 1.52587890625e-05 +# CHECK-ASM: encoding: [0xd3,0x00,0x11,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-16 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 3.0517578125e-05 +# CHECK-ASM: encoding: [0xd3,0x80,0x11,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-15 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.00390625 +# CHECK-ASM: encoding: [0xd3,0x00,0x12,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-8 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.0625 +# CHECK-ASM: encoding: [0xd3,0x00,0x13,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-4 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.0078125 +# CHECK-ASM: encoding: [0xd3,0x80,0x12,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-7 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.125 +# CHECK-ASM: encoding: [0xd3,0x80,0x13,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-3 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.25 +# CHECK-ASM: encoding: [0xd3,0x00,0x14,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-2 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.3125 +# CHECK-ASM: encoding: [0xd3,0x80,0x14,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.4p-2 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.375 +# CHECK-ASM: encoding: [0xd3,0x00,0x15,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.8p-2 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.4375 +# CHECK-ASM: encoding: [0xd3,0x80,0x15,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.cp-2 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.5 +# CHECK-ASM: encoding: [0xd3,0x00,0x16,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p-1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.625 +# CHECK-ASM: encoding: [0xd3,0x80,0x16,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.4p-1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.75 +# CHECK-ASM: encoding: [0xd3,0x00,0x17,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.8p-1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 0.875 +# CHECK-ASM: encoding: [0xd3,0x80,0x17,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.cp-1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 1.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x18,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+0 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 1.25 +# CHECK-ASM: encoding: [0xd3,0x80,0x18,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.4p+0 +# CHECK-ASM-AND-OBJ: fli.d ft1, 1.5 +# CHECK-ASM: encoding: [0xd3,0x00,0x19,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.8p+0 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 1.75 +# CHECK-ASM: encoding: [0xd3,0x80,0x19,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.cp+0 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 2.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1a,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 2.5 +# CHECK-ASM: encoding: [0xd3,0x80,0x1a,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.4p+1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 3.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1b,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1.8p+1 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 4.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1b,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+2 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 8.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1c,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+3 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 16.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1c,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+4 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 128.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1d,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+7 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 256.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1d,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+8 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 32768.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1e,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+15 + +# CHECK-ASM-AND-OBJ: fli.d ft1, 65536.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1e,0xf2] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.d ft1, 0x1p+16 + # CHECK-ASM-AND-OBJ: fli.d ft1, -1.0 # CHECK-ASM: encoding: [0xd3,0x00,0x10,0xf2] # CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} @@ -336,6 +625,151 @@ # CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} fli.d ft1, nan +# CHECK-ASM-AND-OBJ: fli.h ft1, -1.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x10,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, -0x1p+0 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 1.52587890625e-05 +# CHECK-ASM: encoding: [0xd3,0x00,0x11,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-16 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 3.0517578125e-05 +# CHECK-ASM: encoding: [0xd3,0x80,0x11,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-15 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.00390625 +# CHECK-ASM: encoding: [0xd3,0x00,0x12,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-8 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.0625 +# CHECK-ASM: encoding: [0xd3,0x00,0x13,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-4 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.0078125 +# CHECK-ASM: encoding: [0xd3,0x80,0x12,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-7 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.125 +# CHECK-ASM: encoding: [0xd3,0x80,0x13,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-3 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.25 +# CHECK-ASM: encoding: [0xd3,0x00,0x14,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-2 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.3125 +# CHECK-ASM: encoding: [0xd3,0x80,0x14,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.4p-2 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.375 +# CHECK-ASM: encoding: [0xd3,0x00,0x15,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.8p-2 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.4375 +# CHECK-ASM: encoding: [0xd3,0x80,0x15,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.cp-2 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.5 +# CHECK-ASM: encoding: [0xd3,0x00,0x16,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p-1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.625 +# CHECK-ASM: encoding: [0xd3,0x80,0x16,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.4p-1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.75 +# CHECK-ASM: encoding: [0xd3,0x00,0x17,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.8p-1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 0.875 +# CHECK-ASM: encoding: [0xd3,0x80,0x17,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.cp-1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 1.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x18,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+0 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 1.25 +# CHECK-ASM: encoding: [0xd3,0x80,0x18,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.4p+0 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 1.5 +# CHECK-ASM: encoding: [0xd3,0x00,0x19,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.8p+0 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 1.75 +# CHECK-ASM: encoding: [0xd3,0x80,0x19,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.cp+0 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 2.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1a,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 2.5 +# CHECK-ASM: encoding: [0xd3,0x80,0x1a,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.4p+1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 3.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1b,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1.8p+1 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 4.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1b,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+2 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 8.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1c,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+3 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 16.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1c,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+4 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 128.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1d,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+7 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 256.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1d,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+8 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 32768.0 +# CHECK-ASM: encoding: [0xd3,0x00,0x1e,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+15 + +# CHECK-ASM-AND-OBJ: fli.h ft1, 65536.0 +# CHECK-ASM: encoding: [0xd3,0x80,0x1e,0xf4] +# CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}} +fli.h ft1, 0x1p+16 + # CHECK-ASM-AND-OBJ: fli.h ft1, -1.0 # CHECK-ASM: encoding: [0xd3,0x00,0x10,0xf4] # CHECK-NO-EXT: error: instruction requires the following: 'Zfa' (Additional Floating-Point){{$}}