+2018-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.base/float.exp: Handle RISC-V targets without an FPU.
+
 2018-12-09  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
        * gdb.threads/tid-reuse.c (REUSE_TIME_CAP): Declare as 60.
 
 } elseif [istarget "sparc*-*-*"] then {
     gdb_test "info float" "f0.*f1.*f31.*d0.*d30.*" "info float"
 } elseif [istarget "riscv*-*-*"] then {
-    gdb_test "info float" "ft0.*ft1.*ft11.*fflags.*frm.*fcsr.*" "info float"
+    # RISC-V may or may not have an FPU
+    gdb_test_multiple "info float" "info float" {
+       -re "ft0.*ft1.*ft11.*fflags.*frm.*fcsr.*$gdb_prompt $" {
+             pass "info float (with FPU)"
+         }
+       -re "No floating.point info available for this processor.*$gdb_prompt $" {
+             pass "info float (without FPU)"
+       }
+    }
 } else {
     gdb_test "info float" "No floating.point info available for this processor." "info float (unknown target)"
 }