Skip to content

Commit 409f80c

Browse files
committed
fix accroding to zhaoqi5's reviews
1 parent 613e3bd commit 409f80c

File tree

6 files changed

+11
-26
lines changed

6 files changed

+11
-26
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8198,7 +8198,7 @@ SDValue LoongArchTargetLowering::LowerReturn(
81988198
// Check if a constant splat can be generated using [x]vldi, where imm[12] == 1.
81998199
// Note: The following prefixes are excluded:
82008200
// imm[11:8] == 4'b0000, 4'b0100, 4'b1000
8201-
// as thy can be represented using [x]vrepli.[whb]
8201+
// as they can be represented using [x]vrepli.[whb]
82028202
std::pair<bool, uint64_t>
82038203
LoongArchTargetLowering::isImmVLDILegalForMode1(const APInt &SplatValue,
82048204
const unsigned SplatBitSize) {

llvm/test/CodeGen/LoongArch/lasx/fdiv-reciprocal-estimate.ll

Lines changed: 2 additions & 5 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 UTC_ARGS: --version 4
22
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx,-frecipe < %s | FileCheck %s --check-prefixes=FAULT,FAULT-LA32
3-
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx,+frecipe < %s | FileCheck %s --check-prefixes=CHECK,LA32
3+
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx,+frecipe < %s | FileCheck %s
44
; RUN: llc --mtriple=loongarch64 --mattr=+lasx,-frecipe < %s | FileCheck %s --check-prefixes=FAULT,FAULT-LA64
5-
; RUN: llc --mtriple=loongarch64 --mattr=+lasx,+frecipe < %s | FileCheck %s --check-prefixes=CHECK,LA64
5+
; RUN: llc --mtriple=loongarch64 --mattr=+lasx,+frecipe < %s | FileCheck %s
66

77
define void @fdiv_v8f32(ptr %res, ptr %a0, ptr %a1) nounwind {
88
; FAULT-LABEL: fdiv_v8f32:
@@ -119,6 +119,3 @@ entry:
119119
store <4 x double> %div, ptr %res
120120
ret void
121121
}
122-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
123-
; LA32: {{.*}}
124-
; LA64: {{.*}}

llvm/test/CodeGen/LoongArch/lasx/vselect.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s --check-prefixes=CHECK,LA32
3-
; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s --check-prefixes=CHECK,LA64
2+
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lasx < %s | FileCheck %s
3+
; RUN: llc --mtriple=loongarch64 --mattr=+lasx < %s | FileCheck %s
44

55
define void @select_v32i8_imm(ptr %res, ptr %a0) nounwind {
66
; CHECK-LABEL: select_v32i8_imm:
@@ -81,6 +81,3 @@ define void @select_v4i64(ptr %res, ptr %a0, ptr %a1) nounwind {
8181
store <4 x i64> %sel, ptr %res
8282
ret void
8383
}
84-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
85-
; LA32: {{.*}}
86-
; LA64: {{.*}}

llvm/test/CodeGen/LoongArch/lsx/fdiv-reciprocal-estimate.ll

Lines changed: 2 additions & 5 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 UTC_ARGS: --version 4
22
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx,-frecipe < %s | FileCheck %s --check-prefixes=FAULT,FAULT-LA32
3-
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx,+frecipe < %s | FileCheck %s --check-prefixes=CHECK,LA32
3+
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx,+frecipe < %s | FileCheck %s
44
; RUN: llc --mtriple=loongarch64 --mattr=+lsx,-frecipe < %s | FileCheck %s --check-prefixes=FAULT,FAULT-LA64
5-
; RUN: llc --mtriple=loongarch64 --mattr=+lsx,+frecipe < %s | FileCheck %s --check-prefixes=CHECK,LA64
5+
; RUN: llc --mtriple=loongarch64 --mattr=+lsx,+frecipe < %s | FileCheck %s
66

77
define void @fdiv_v4f32(ptr %res, ptr %a0, ptr %a1) nounwind {
88
; FAULT-LABEL: fdiv_v4f32:
@@ -119,6 +119,3 @@ entry:
119119
store <2 x double> %div, ptr %res
120120
ret void
121121
}
122-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
123-
; LA32: {{.*}}
124-
; LA64: {{.*}}

llvm/test/CodeGen/LoongArch/lsx/fsqrt-reciprocal-estimate.ll

Lines changed: 2 additions & 5 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
22
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx,-frecipe < %s | FileCheck %s --check-prefixes=FAULT,FAULT-LA32
3-
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx,+frecipe < %s | FileCheck %s --check-prefixes=CHECK,LA32
3+
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx,+frecipe < %s | FileCheck %s
44
; RUN: llc --mtriple=loongarch64 --mattr=+lsx,-frecipe < %s | FileCheck %s --check-prefixes=FAULT,FAULT-LA64
5-
; RUN: llc --mtriple=loongarch64 --mattr=+lsx,+frecipe < %s | FileCheck %s --check-prefixes=CHECK,LA64
5+
; RUN: llc --mtriple=loongarch64 --mattr=+lsx,+frecipe < %s | FileCheck %s
66

77
;; 1.0 / (fsqrt vec)
88
define void @one_div_sqrt_v4f32(ptr %res, ptr %a0) nounwind {
@@ -78,6 +78,3 @@ entry:
7878

7979
declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
8080
declare <2 x double> @llvm.sqrt.v2f64(<2 x double>)
81-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
82-
; LA32: {{.*}}
83-
; LA64: {{.*}}

llvm/test/CodeGen/LoongArch/lsx/vselect.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s | FileCheck %s --check-prefixes=CHECK,LA32
3-
; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s --check-prefixes=CHECK,LA64
2+
; RUN: llc --mtriple=loongarch32 --mattr=+32s,+lsx < %s | FileCheck %s
3+
; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
44

55
define void @select_v16i8_imm(ptr %res, ptr %a0) nounwind {
66
; CHECK-LABEL: select_v16i8_imm:
@@ -81,6 +81,3 @@ define void @select_v2i64(ptr %res, ptr %a0, ptr %a1) nounwind {
8181
store <2 x i64> %sel, ptr %res
8282
ret void
8383
}
84-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
85-
; LA32: {{.*}}
86-
; LA64: {{.*}}

0 commit comments

Comments
 (0)