Skip to content

Commit 2ac156a

Browse files
committed
[RISCV] Remove +zfh from shuffle test. NFC
The scalar insert isn't the interesting bit that we're testing, so remove it to simplify the check prefixes a bit.
1 parent 8251754 commit 2ac156a

File tree

1 file changed

+10
-31
lines changed

1 file changed

+10
-31
lines changed

llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-shuffles.ll

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32,RV32-ZVFH
3-
; RUN: llc -mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RV64-ZVFH
4-
; RUN: llc -mtriple=riscv32 -mattr=+d,+zvfhmin,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32,RV32-ZVFHMIN
5-
; RUN: llc -mtriple=riscv64 -mattr=+d,+zvfhmin,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RV64-ZVFHMIN
2+
; RUN: llc -mtriple=riscv32 -mattr=+d,+zvfh,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32
3+
; RUN: llc -mtriple=riscv64 -mattr=+d,+zvfh,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64
4+
; RUN: llc -mtriple=riscv32 -mattr=+d,+zvfhmin,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32
5+
; RUN: llc -mtriple=riscv64 -mattr=+d,+zvfhmin,+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64
66

77
define <4 x half> @shuffle_v4f16(<4 x half> %x, <4 x half> %y) {
88
; CHECK-LABEL: shuffle_v4f16:
@@ -298,33 +298,12 @@ define <4 x half> @vrgather_shuffle_vv_v4f16(<4 x half> %x, <4 x half> %y) {
298298
}
299299

300300
define <4 x half> @vrgather_shuffle_vx_v4f16_load(ptr %p) {
301-
; RV32-ZVFH-LABEL: vrgather_shuffle_vx_v4f16_load:
302-
; RV32-ZVFH: # %bb.0:
303-
; RV32-ZVFH-NEXT: flh fa5, 2(a0)
304-
; RV32-ZVFH-NEXT: vsetivli zero, 4, e16, mf2, ta, ma
305-
; RV32-ZVFH-NEXT: vfmv.v.f v8, fa5
306-
; RV32-ZVFH-NEXT: ret
307-
;
308-
; RV64-ZVFH-LABEL: vrgather_shuffle_vx_v4f16_load:
309-
; RV64-ZVFH: # %bb.0:
310-
; RV64-ZVFH-NEXT: flh fa5, 2(a0)
311-
; RV64-ZVFH-NEXT: vsetivli zero, 4, e16, mf2, ta, ma
312-
; RV64-ZVFH-NEXT: vfmv.v.f v8, fa5
313-
; RV64-ZVFH-NEXT: ret
314-
;
315-
; RV32-ZVFHMIN-LABEL: vrgather_shuffle_vx_v4f16_load:
316-
; RV32-ZVFHMIN: # %bb.0:
317-
; RV32-ZVFHMIN-NEXT: lh a0, 2(a0)
318-
; RV32-ZVFHMIN-NEXT: vsetivli zero, 4, e16, mf2, ta, ma
319-
; RV32-ZVFHMIN-NEXT: vmv.v.x v8, a0
320-
; RV32-ZVFHMIN-NEXT: ret
321-
;
322-
; RV64-ZVFHMIN-LABEL: vrgather_shuffle_vx_v4f16_load:
323-
; RV64-ZVFHMIN: # %bb.0:
324-
; RV64-ZVFHMIN-NEXT: lh a0, 2(a0)
325-
; RV64-ZVFHMIN-NEXT: vsetivli zero, 4, e16, mf2, ta, ma
326-
; RV64-ZVFHMIN-NEXT: vmv.v.x v8, a0
327-
; RV64-ZVFHMIN-NEXT: ret
301+
; CHECK-LABEL: vrgather_shuffle_vx_v4f16_load:
302+
; CHECK: # %bb.0:
303+
; CHECK-NEXT: lh a0, 2(a0)
304+
; CHECK-NEXT: vsetivli zero, 4, e16, mf2, ta, ma
305+
; CHECK-NEXT: vmv.v.x v8, a0
306+
; CHECK-NEXT: ret
328307
%v = load <4 x half>, ptr %p
329308
%s = shufflevector <4 x half> %v, <4 x half> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
330309
ret <4 x half> %s

0 commit comments

Comments
 (0)