Skip to content

Commit

Permalink
riscv64: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afonso360 committed Aug 30, 2023
1 parent 95835a2 commit ae39fe4
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 64 deletions.
32 changes: 16 additions & 16 deletions cranelift/filetests/filetests/isa/riscv64/simd-ceil.clif
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ block0(v0: f32x4):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a4,307200
; fmv.w.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a3,307200
; fmv.w.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=4, #vtype=(e32, m1, ta, ma)
; fsrmi t4,3
; vfcvt.x.f.v v14,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; fsrm t4
Expand All @@ -46,9 +46,9 @@ block0(v0: f32x4):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x02, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; lui a4, 0x4b000
; fmv.w.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; lui a3, 0x4b000
; fmv.w.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; fsrmi t4, 3
; .byte 0x57, 0x97, 0x10, 0x4a
; fsrm t4
Expand Down Expand Up @@ -78,9 +78,9 @@ block0(v0: f64x2):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; auipc a4,0; ld a4,12(a4); j 12; .8byte 0x4330000000000000
; fmv.d.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=2, #vtype=(e64, m1, ta, ma)
; ld a3,[const(0)]
; fmv.d.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=2, #vtype=(e64, m1, ta, ma)
; fsrmi t4,3
; vfcvt.x.f.v v14,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; fsrm t4
Expand All @@ -107,13 +107,11 @@ block0(v0: f64x2):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x81, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; auipc a4, 0
; ld a4, 0xc(a4)
; j 0xc
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43
; fmv.d.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; auipc t6, 0
; addi t6, t6, 0x4c
; ld a3, 0(t6)
; fmv.d.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; fsrmi t4, 3
; .byte 0x57, 0x97, 0x10, 0x4a
; fsrm t4
Expand All @@ -128,4 +126,6 @@ block0(v0: f64x2):
; ld s0, 0(sp)
; addi sp, sp, 0x10
; ret
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43

32 changes: 16 additions & 16 deletions cranelift/filetests/filetests/isa/riscv64/simd-floor.clif
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ block0(v0: f32x4):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a4,307200
; fmv.w.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a3,307200
; fmv.w.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=4, #vtype=(e32, m1, ta, ma)
; fsrmi t4,2
; vfcvt.x.f.v v14,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; fsrm t4
Expand All @@ -46,9 +46,9 @@ block0(v0: f32x4):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x02, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; lui a4, 0x4b000
; fmv.w.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; lui a3, 0x4b000
; fmv.w.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; fsrmi t4, 2
; .byte 0x57, 0x97, 0x10, 0x4a
; fsrm t4
Expand Down Expand Up @@ -78,9 +78,9 @@ block0(v0: f64x2):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; auipc a4,0; ld a4,12(a4); j 12; .8byte 0x4330000000000000
; fmv.d.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=2, #vtype=(e64, m1, ta, ma)
; ld a3,[const(0)]
; fmv.d.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=2, #vtype=(e64, m1, ta, ma)
; fsrmi t4,2
; vfcvt.x.f.v v14,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; fsrm t4
Expand All @@ -107,13 +107,11 @@ block0(v0: f64x2):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x81, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; auipc a4, 0
; ld a4, 0xc(a4)
; j 0xc
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43
; fmv.d.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; auipc t6, 0
; addi t6, t6, 0x4c
; ld a3, 0(t6)
; fmv.d.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; fsrmi t4, 2
; .byte 0x57, 0x97, 0x10, 0x4a
; fsrm t4
Expand All @@ -128,4 +126,6 @@ block0(v0: f64x2):
; ld s0, 0(sp)
; addi sp, sp, 0x10
; ret
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43

32 changes: 16 additions & 16 deletions cranelift/filetests/filetests/isa/riscv64/simd-nearest.clif
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ block0(v0: f32x4):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a4,307200
; fmv.w.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a3,307200
; fmv.w.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=4, #vtype=(e32, m1, ta, ma)
; fsrmi t4,0
; vfcvt.x.f.v v14,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; fsrm t4
Expand All @@ -46,9 +46,9 @@ block0(v0: f32x4):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x02, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; lui a4, 0x4b000
; fmv.w.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; lui a3, 0x4b000
; fmv.w.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; fsrmi t4, 0
; .byte 0x57, 0x97, 0x10, 0x4a
; fsrm t4
Expand Down Expand Up @@ -78,9 +78,9 @@ block0(v0: f64x2):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; auipc a4,0; ld a4,12(a4); j 12; .8byte 0x4330000000000000
; fmv.d.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=2, #vtype=(e64, m1, ta, ma)
; ld a3,[const(0)]
; fmv.d.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=2, #vtype=(e64, m1, ta, ma)
; fsrmi t4,0
; vfcvt.x.f.v v14,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; fsrm t4
Expand All @@ -107,13 +107,11 @@ block0(v0: f64x2):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x81, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; auipc a4, 0
; ld a4, 0xc(a4)
; j 0xc
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43
; fmv.d.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; auipc t6, 0
; addi t6, t6, 0x4c
; ld a3, 0(t6)
; fmv.d.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; fsrmi t4, 0
; .byte 0x57, 0x97, 0x10, 0x4a
; fsrm t4
Expand All @@ -128,4 +126,6 @@ block0(v0: f64x2):
; ld s0, 0(sp)
; addi sp, sp, 0x10
; ret
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43

32 changes: 16 additions & 16 deletions cranelift/filetests/filetests/isa/riscv64/simd-trunc.clif
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ block0(v0: f32x4):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a4,307200
; fmv.w.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=4, #vtype=(e32, m1, ta, ma)
; lui a3,307200
; fmv.w.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=4, #vtype=(e32, m1, ta, ma)
; vfcvt.rtz.x.f.v v12,v1 #avl=4, #vtype=(e32, m1, ta, ma)
; vfcvt.f.x.v v14,v12 #avl=4, #vtype=(e32, m1, ta, ma)
; vfsgnj.vv v16,v14,v1 #avl=4, #vtype=(e32, m1, ta, ma)
Expand All @@ -44,9 +44,9 @@ block0(v0: f32x4):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x02, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; lui a4, 0x4b000
; fmv.w.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; lui a3, 0x4b000
; fmv.w.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; .byte 0x57, 0x96, 0x13, 0x4a
; .byte 0x57, 0x97, 0xc1, 0x4a
; .byte 0x57, 0x98, 0xe0, 0x22
Expand Down Expand Up @@ -74,9 +74,9 @@ block0(v0: f64x2):
; block0:
; vle8.v v1,16(fp) #avl=16, #vtype=(e8, m1, ta, ma)
; vfabs.v v4,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; auipc a4,0; ld a4,12(a4); j 12; .8byte 0x4330000000000000
; fmv.d.x ft7,a4
; vmflt.vf v0,v4,ft7 #avl=2, #vtype=(e64, m1, ta, ma)
; ld a3,[const(0)]
; fmv.d.x fa0,a3
; vmflt.vf v0,v4,fa0 #avl=2, #vtype=(e64, m1, ta, ma)
; vfcvt.rtz.x.f.v v12,v1 #avl=2, #vtype=(e64, m1, ta, ma)
; vfcvt.f.x.v v14,v12 #avl=2, #vtype=(e64, m1, ta, ma)
; vfsgnj.vv v16,v14,v1 #avl=2, #vtype=(e64, m1, ta, ma)
Expand All @@ -101,13 +101,11 @@ block0(v0: f64x2):
; .byte 0x87, 0x80, 0x0f, 0x02
; .byte 0x57, 0x70, 0x81, 0xcd
; .byte 0x57, 0x92, 0x10, 0x2a
; auipc a4, 0
; ld a4, 0xc(a4)
; j 0xc
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43
; fmv.d.x ft7, a4
; .byte 0x57, 0xd0, 0x43, 0x6e
; auipc t6, 0
; addi t6, t6, 0x44
; ld a3, 0(t6)
; fmv.d.x fa0, a3
; .byte 0x57, 0x50, 0x45, 0x6e
; .byte 0x57, 0x96, 0x13, 0x4a
; .byte 0x57, 0x97, 0xc1, 0x4a
; .byte 0x57, 0x98, 0xe0, 0x22
Expand All @@ -120,4 +118,6 @@ block0(v0: f64x2):
; ld s0, 0(sp)
; addi sp, sp, 0x10
; ret
; .byte 0x00, 0x00, 0x00, 0x00
; .byte 0x00, 0x00, 0x30, 0x43

0 comments on commit ae39fe4

Please sign in to comment.