
// -----------
// This file was generated by riscv_ctg (https://github.com/riscv-software-src/riscv-ctg)
// version   : 0.12.1
// timestamp : Wed Mar  6 21:44:49 2024 GMT
// usage     : riscv_ctg \
//                  -- cgf //                  --cgf /home/cm/src/riscv-ctg/zfa/sample_cgfs/dataset.cgf \
//                  --cgf /home/cm/src/riscv-ctg/zfa/sample_cgfs/zfa/fmaxm.s.cgf \
 \
//                  -- xlen 32  \
// -----------
//
// -----------
// Copyright (c) 2020. RISC-V International. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// -----------
//
// This assembly file tests the fmaxm.s instruction of the RISC-V RV32F_Zicsr_Zfa,RV32FD_Zicsr_Zfa,RV64F_Zicsr_Zfa,RV64FD_Zicsr_Zfa extension for the fmaxm_b19 covergroup.
// 
#include "model_test.h"
#include "arch_test.h"
RVTEST_ISA("RV32IF_Zicsr_Zfa,RV32IFD_Zicsr_Zfa,RV64IF_Zicsr_Zfa,RV64IFD_Zicsr_Zfa")

.section .text.init
.globl rvtest_entry_point
rvtest_entry_point:
RVMODEL_BOOT
RVTEST_CODE_BEGIN

#ifdef TEST_CASE_1

RVTEST_CASE(0,"//check ISA:=regex(.*I.*F.*Zfa.*);def TEST_CASE_1=True;",fmaxm_b19)

RVTEST_FP_ENABLE()
RVTEST_VALBASEUPD(x3,test_dataset_0)
RVTEST_SIGBASE(x1,signature_x1_1)

inst_0:
// rs2 == rd != rs1, rs1==f30, rs2==f31, rd==f31,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0xfd and fm2 == 0x3e3f3f and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f30; op2:f31; dest:f31; op1val:0x7dce622b; op2val:0x7ebe3f3f;
   valaddr_reg:x3; val_offset:0*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f31, f30, f31, 0, 0, x3, 0*FLEN/8, x4, x1, x2)

inst_1:
// rs1 == rs2 != rd, rs1==f29, rs2==f29, rd==f30,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0xfe and fm2 == 0x125b96 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f29; op2:f29; dest:f30; op1val:0x7dce622b; op2val:0x7dce622b;
   valaddr_reg:x3; val_offset:2*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f30, f29, f29, 0, 0, x3, 2*FLEN/8, x4, x1, x2)

inst_2:
// rs1 != rs2  and rs1 != rd and rs2 != rd, rs1==f31, rs2==f30, rd==f29,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0xfd and fm2 == 0x53653a and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f31; op2:f30; dest:f29; op1val:0x7dce622b; op2val:0xfed3653a;
   valaddr_reg:x3; val_offset:4*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f29, f31, f30, 0, 0, x3, 4*FLEN/8, x4, x1, x2)

inst_3:
// rs1 == rd != rs2, rs1==f28, rs2==f27, rd==f28,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0xfe and fm2 == 0x3a8ea9 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f28; op2:f27; dest:f28; op1val:0x7dce622b; op2val:0xff3a8ea9;
   valaddr_reg:x3; val_offset:6*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f28, f28, f27, 0, 0, x3, 6*FLEN/8, x4, x1, x2)

inst_4:
// rs1 == rs2 == rd, rs1==f26, rs2==f26, rd==f26,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0xfe and fm2 == 0x3f987b and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f26; op2:f26; dest:f26; op1val:0x7dce622b; op2val:0x7dce622b;
   valaddr_reg:x3; val_offset:8*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f26, f26, f26, 0, 0, x3, 8*FLEN/8, x4, x1, x2)

inst_5:
// rs1==f25, rs2==f28, rd==f27,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0xfe and fm2 == 0x7fffff and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f25; op2:f28; dest:f27; op1val:0x7dce622b; op2val:0x7f7fffff;
   valaddr_reg:x3; val_offset:10*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f27, f25, f28, 0, 0, x3, 10*FLEN/8, x4, x1, x2)

inst_6:
// rs1==f27, rs2==f24, rd==f25,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x30e1ae and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f27; op2:f24; dest:f25; op1val:0x7dce622b; op2val:0x30e1ae;
   valaddr_reg:x3; val_offset:12*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f25, f27, f24, 0, 0, x3, 12*FLEN/8, x4, x1, x2)

inst_7:
// rs1==f23, rs2==f25, rd==f24,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 0 and fe2 == 0x00 and fm2 == 0x30e1ae and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f23; op2:f25; dest:f24; op1val:0x255707; op2val:0x30e1ae;
   valaddr_reg:x3; val_offset:14*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f24, f23, f25, 0, 0, x3, 14*FLEN/8, x4, x1, x2)

inst_8:
// rs1==f24, rs2==f22, rd==f23,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x29b3b2 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f24; op2:f22; dest:f23; op1val:0x7dce622b; op2val:0x29b3b2;
   valaddr_reg:x3; val_offset:16*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f23, f24, f22, 0, 0, x3, 16*FLEN/8, x4, x1, x2)

inst_9:
// rs1==f21, rs2==f23, rd==f22,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 0 and fe2 == 0x00 and fm2 == 0x29b3b2 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f21; op2:f23; dest:f22; op1val:0x255707; op2val:0x29b3b2;
   valaddr_reg:x3; val_offset:18*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f22, f21, f23, 0, 0, x3, 18*FLEN/8, x4, x1, x2)

inst_10:
// rs1==f22, rs2==f20, rd==f21,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x357d2c and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f22; op2:f20; dest:f21; op1val:0x7dce622b; op2val:0x357d2c;
   valaddr_reg:x3; val_offset:20*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f21, f22, f20, 0, 0, x3, 20*FLEN/8, x4, x1, x2)

inst_11:
// rs1==f19, rs2==f21, rd==f20,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 0 and fe2 == 0x00 and fm2 == 0x357d2c and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f19; op2:f21; dest:f20; op1val:0x255707; op2val:0x357d2c;
   valaddr_reg:x3; val_offset:22*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f20, f19, f21, 0, 0, x3, 22*FLEN/8, x4, x1, x2)

inst_12:
// rs1==f20, rs2==f18, rd==f19,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x1c8139 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f20; op2:f18; dest:f19; op1val:0x7dce622b; op2val:0x1c8139;
   valaddr_reg:x3; val_offset:24*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f19, f20, f18, 0, 0, x3, 24*FLEN/8, x4, x1, x2)

inst_13:
// rs1==f17, rs2==f19, rd==f18,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 0 and fe2 == 0x00 and fm2 == 0x1c8139 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f17; op2:f19; dest:f18; op1val:0x255707; op2val:0x1c8139;
   valaddr_reg:x3; val_offset:26*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f18, f17, f19, 0, 0, x3, 26*FLEN/8, x4, x1, x2)

inst_14:
// rs1==f18, rs2==f16, rd==f17,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x39b0fc and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f18; op2:f16; dest:f17; op1val:0x7dce622b; op2val:0x39b0fc;
   valaddr_reg:x3; val_offset:28*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f17, f18, f16, 0, 0, x3, 28*FLEN/8, x4, x1, x2)

inst_15:
// rs1==f15, rs2==f17, rd==f16,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 0 and fe2 == 0x00 and fm2 == 0x39b0fc and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f15; op2:f17; dest:f16; op1val:0x255707; op2val:0x39b0fc;
   valaddr_reg:x3; val_offset:30*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f16, f15, f17, 0, 0, x3, 30*FLEN/8, x4, x1, x2)

inst_16:
// rs1==f16, rs2==f14, rd==f15,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0x00 and fm2 == 0x2facf2 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f16; op2:f14; dest:f15; op1val:0x7dce622b; op2val:0x802facf2;
   valaddr_reg:x3; val_offset:32*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f15, f16, f14, 0, 0, x3, 32*FLEN/8, x4, x1, x2)

inst_17:
// rs1==f13, rs2==f15, rd==f14,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 1 and fe2 == 0x00 and fm2 == 0x2facf2 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f13; op2:f15; dest:f14; op1val:0x255707; op2val:0x802facf2;
   valaddr_reg:x3; val_offset:34*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f14, f13, f15, 0, 0, x3, 34*FLEN/8, x4, x1, x2)

inst_18:
// rs1==f14, rs2==f12, rd==f13,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0x00 and fm2 == 0x0d858e and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f14; op2:f12; dest:f13; op1val:0x7dce622b; op2val:0x800d858e;
   valaddr_reg:x3; val_offset:36*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f13, f14, f12, 0, 0, x3, 36*FLEN/8, x4, x1, x2)

inst_19:
// rs1==f11, rs2==f13, rd==f12,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 1 and fe2 == 0x00 and fm2 == 0x0d858e and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f11; op2:f13; dest:f12; op1val:0x255707; op2val:0x800d858e;
   valaddr_reg:x3; val_offset:38*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f12, f11, f13, 0, 0, x3, 38*FLEN/8, x4, x1, x2)

inst_20:
// rs1==f12, rs2==f10, rd==f11,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0x00 and fm2 == 0x244d8b and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f12; op2:f10; dest:f11; op1val:0x7dce622b; op2val:0x80244d8b;
   valaddr_reg:x3; val_offset:40*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f11, f12, f10, 0, 0, x3, 40*FLEN/8, x4, x1, x2)

inst_21:
// rs1==f9, rs2==f11, rd==f10,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 1 and fe2 == 0x00 and fm2 == 0x244d8b and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f9; op2:f11; dest:f10; op1val:0x255707; op2val:0x80244d8b;
   valaddr_reg:x3; val_offset:42*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f10, f9, f11, 0, 0, x3, 42*FLEN/8, x4, x1, x2)

inst_22:
// rs1==f10, rs2==f8, rd==f9,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0x00 and fm2 == 0x11d249 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f10; op2:f8; dest:f9; op1val:0x7dce622b; op2val:0x8011d249;
   valaddr_reg:x3; val_offset:44*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f9, f10, f8, 0, 0, x3, 44*FLEN/8, x4, x1, x2)

inst_23:
// rs1==f7, rs2==f9, rd==f8,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 1 and fe2 == 0x00 and fm2 == 0x11d249 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f7; op2:f9; dest:f8; op1val:0x255707; op2val:0x8011d249;
   valaddr_reg:x3; val_offset:46*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f8, f7, f9, 0, 0, x3, 46*FLEN/8, x4, x1, x2)

inst_24:
// rs1==f8, rs2==f6, rd==f7,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 1 and fe2 == 0x00 and fm2 == 0x3e0acf and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f8; op2:f6; dest:f7; op1val:0x7dce622b; op2val:0x803e0acf;
   valaddr_reg:x3; val_offset:48*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f7, f8, f6, 0, 0, x3, 48*FLEN/8, x4, x1, x2)

inst_25:
// rs1==f5, rs2==f7, rd==f6,fs1 == 0 and fe1 == 0x00 and fm1 == 0x255707 and fs2 == 1 and fe2 == 0x00 and fm2 == 0x3e0acf and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f5; op2:f7; dest:f6; op1val:0x255707; op2val:0x803e0acf;
   valaddr_reg:x3; val_offset:50*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f6, f5, f7, 0, 0, x3, 50*FLEN/8, x4, x1, x2)

inst_26:
// rs1==f6, rs2==f4, rd==f5,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x255707 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f6; op2:f4; dest:f5; op1val:0x7dce622b; op2val:0x255707;
   valaddr_reg:x3; val_offset:52*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f5, f6, f4, 0, 0, x3, 52*FLEN/8, x4, x1, x2)

inst_27:
// rs1==f3, rs2==f5, rd==f4,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x00 and fm2 == 0x0007f0 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f3; op2:f5; dest:f4; op1val:0x7dce622b; op2val:0x7f0;
   valaddr_reg:x3; val_offset:54*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f4, f3, f5, 0, 0, x3, 54*FLEN/8, x4, x1, x2)

inst_28:
// rs1==f4, rs2==f2, rd==f3,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0x80 and fm2 == 0x5b76ec and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f4; op2:f2; dest:f3; op1val:0x7dce622b; op2val:0x405b76ec;
   valaddr_reg:x3; val_offset:56*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f3, f4, f2, 0, 0, x3, 56*FLEN/8, x4, x1, x2)

inst_29:
// rs1==f1, rs2==f3, rd==f2,fs1 == 0 and fe1 == 0xfb and fm1 == 0x4e622b and fs2 == 0 and fe2 == 0xfb and fm2 == 0x4e622b and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f1; op2:f3; dest:f2; op1val:0x7dce622b; op2val:0x7dce622b;
   valaddr_reg:x3; val_offset:58*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f2, f1, f3, 0, 0, x3, 58*FLEN/8, x4, x1, x2)

inst_30:
// rs1==f2, rs2==f0, rd==f1,fs1 == 0 and fe1 == 0xfd and fm1 == 0x3e3f3f and fs2 == 0 and fe2 == 0xfb and fm2 == 0x4e622b and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f2; op2:f0; dest:f1; op1val:0x7ebe3f3f; op2val:0x7dce622b;
   valaddr_reg:x3; val_offset:60*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f1, f2, f0, 0, 0, x3, 60*FLEN/8, x4, x1, x2)

inst_31:
// rs1==f0,fs1 == 0 and fe1 == 0xfa and fm1 == 0x183299 and fs2 == 0 and fe2 == 0xfb and fm2 == 0x4e622b and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f0; op2:f30; dest:f31; op1val:0x7d183299; op2val:0x7dce622b;
   valaddr_reg:x3; val_offset:62*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f31, f0, f30, 0, 0, x3, 62*FLEN/8, x4, x1, x2)

inst_32:
// rs2==f1,fs1 == 0 and fe1 == 0xfd and fm1 == 0x3e3f3f and fs2 == 0 and fe2 == 0xfb and fm2 == 0x102b16 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f30; op2:f1; dest:f31; op1val:0x7ebe3f3f; op2val:0x7d902b16;
   valaddr_reg:x3; val_offset:64*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f31, f30, f1, 0, 0, x3, 64*FLEN/8, x4, x1, x2)

inst_33:
// rd==f0,fs1 == 0 and fe1 == 0xfa and fm1 == 0x183299 and fs2 == 0 and fe2 == 0xfb and fm2 == 0x102b16 and  fcsr == 0 and rs1_nan_prefix == 0xffffffff and rs2_nan_prefix == 0xffffffff  
/* opcode: fmaxm.s ; op1:f31; op2:f30; dest:f0; op1val:0x7d183299; op2val:0x7d902b16;
   valaddr_reg:x3; val_offset:66*FLEN/8; fcsr: 0;
   correctval:??; testreg:x2
*/
TEST_FPRR_OP_NRM(fmaxm.s, f0, f31, f30, 0, 0, x3, 66*FLEN/8, x4, x1, x2)
#endif


RVTEST_CODE_END
RVMODEL_HALT

RVTEST_DATA_BEGIN
.align 4
rvtest_data:
.word 0xbabecafe
.word 0xabecafeb
.word 0xbecafeba
.word 0xecafebab
test_dataset_0:
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7ebe3f3f126397247,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0xfed3653a275266874,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0xff3a8ea9282027689,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7f7fffff139095039,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x30e1ae203502,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x30e1ae203502,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x29b3b2732978,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x29b3b2732978,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x357d2c505452,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x357d2c505452,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x1c8139868089,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x1c8139868089,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x39b0fc780860,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x39b0fc780860,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x802facf2150608114,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x802facf2150608114,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x800d858e148369806,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x800d858e148369806,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x80244d8b149862795,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x80244d8b149862795,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x8011d249148651593,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x8011d249148651593,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x803e0acf151549647,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x803e0acf151549647,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x255707447111,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7f0032,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x405b76ec079736044,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7ebe3f3f126397247,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7d183299098737817,32,FLEN)
NAN_BOXED(0x7dce622b110677547,32,FLEN)
NAN_BOXED(0x7ebe3f3f126397247,32,FLEN)
NAN_BOXED(0x7d902b16106600214,32,FLEN)
NAN_BOXED(0x7d183299098737817,32,FLEN)
NAN_BOXED(0x7d902b16106600214,32,FLEN)
RVTEST_DATA_END

RVMODEL_DATA_BEGIN
rvtest_sig_begin:
sig_begin_canary:
CANARY;



signature_x1_0:
    .fill 0*((SIGALIGN)/4),4,0xdeadbeef


signature_x1_1:
    .fill 68*((SIGALIGN)/4),4,0xdeadbeef

#ifdef rvtest_mtrap_routine
tsig_begin_canary:
CANARY;

mtrap_sigptr:
    .fill 64*XLEN/32,4,0xdeadbeef

tsig_end_canary:
CANARY;
#endif

#ifdef rvtest_gpr_save

gpr_save:
    .fill 32*XLEN/32,4,0xdeadbeef

#endif


sig_end_canary:
CANARY;
rvtest_sig_end:
RVMODEL_DATA_END
