Skip to content

Commit 69f4e60

Browse files
authored
[AArch64][test] Fix test failing on unknown options (#139696)
Fixes buildbot failure https://lab.llvm.org/buildbot/#/builders/16/builds/18873 originating from #138448. Normally ignored silently but fails on higher error levels. Buildbot errors: ``` /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc < /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AArch64/reserveXreg.ll -mtriple=aarch64-unknown-linux-gnu | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AArch64/reserveXreg.ll # RUN: at line 6 + /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/CodeGen/AArch64/reserveXreg.ll + /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/llc -mtriple=aarch64-unknown-linux-gnu '+reserve-x8' is not a recognized feature for this target (ignoring feature) '+reserve-x8' is not a recognized feature for this target (ignoring feature) '+reserve-x16' is not a recognized feature for this target (ignoring feature) '+reserve-x16' is not a recognized feature for this target (ignoring feature) '+reserve-x17' is not a recognized feature for this target (ignoring feature) '+reserve-x17' is not a recognized feature for this target (ignoring feature) ```
1 parent 61536f2 commit 69f4e60

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

llvm/test/CodeGen/AArch64/reserveXreg.ll

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
;; Check if manually reserved registers are always excluded from being saved by
22
;; the function prolog/epilog, even for callee-saved ones, as per GCC behavior.
3-
;; X19(BP, LLVM specific), X29(FP), X30(LP), X31(SP) are special so
4-
;; they are not checked.
3+
;; Look at AArch64Features.td for registers excluded from this test.
54

65
; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu | FileCheck %s
76

@@ -82,17 +81,6 @@ define preserve_mostcc void @t7() "target-features"="+reserve-x7" {
8281
ret void
8382
}
8483

85-
define preserve_mostcc void @t8() "target-features"="+reserve-x8" {
86-
; CHECK-LABEL: t8:
87-
; CHECK: // %bb.0:
88-
; CHECK-NEXT: mov w8, #256
89-
; CHECK-NEXT: //APP
90-
; CHECK-NEXT: //NO_APP
91-
; CHECK-NEXT: ret
92-
call i64 asm sideeffect "", "={x8},{x8}"(i64 256)
93-
ret void
94-
}
95-
9684
define preserve_mostcc void @t9() "target-features"="+reserve-x9" {
9785
; CHECK-LABEL: t9:
9886
; CHECK: // %bb.0:
@@ -170,28 +158,6 @@ define preserve_mostcc void @t15() "target-features"="+reserve-x15" {
170158
ret void
171159
}
172160

173-
define preserve_mostcc void @t16() "target-features"="+reserve-x16" {
174-
; CHECK-LABEL: t16:
175-
; CHECK: // %bb.0:
176-
; CHECK-NEXT: mov w16, #256
177-
; CHECK-NEXT: //APP
178-
; CHECK-NEXT: //NO_APP
179-
; CHECK-NEXT: ret
180-
call i64 asm sideeffect "", "={x16},{x16}"(i64 256)
181-
ret void
182-
}
183-
184-
define preserve_mostcc void @t17() "target-features"="+reserve-x17" {
185-
; CHECK-LABEL: t17:
186-
; CHECK: // %bb.0:
187-
; CHECK-NEXT: mov w17, #256
188-
; CHECK-NEXT: //APP
189-
; CHECK-NEXT: //NO_APP
190-
; CHECK-NEXT: ret
191-
call i64 asm sideeffect "", "={x17},{x17}"(i64 256)
192-
ret void
193-
}
194-
195161
define preserve_mostcc void @t18() "target-features"="+reserve-x18" {
196162
; CHECK-LABEL: t18:
197163
; CHECK: // %bb.0:

0 commit comments

Comments
 (0)