Skip to content

Commit 65ac6ff

Browse files
committed
add tests
1 parent 934338f commit 65ac6ff

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

llvm/test/CodeGen/AArch64/preferred-function-alignment.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ define void @test_optsize() optsize {
4040

4141
; CHECK-LABEL: test_optsize
4242
; CHECK-NEXT: .p2align 2
43+
44+
define void @test_minsize() minsize {
45+
ret void
46+
}
47+
48+
; CHECK-LABEL: test_minsize
49+
; CHECK-NEXT: .p2align 2

llvm/test/CodeGen/ARM/preferred-function-alignment.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ define void @test() {
2222
define void @test_optsize() optsize {
2323
ret void
2424
}
25+
26+
; CHECK-LABEL: test_minsize
27+
; ALIGN-CS-16: .p2align 1
28+
; ALIGN-CS-32: .p2align 2
29+
30+
define void @test_minsize() minsize {
31+
ret void
32+
}

llvm/test/CodeGen/Hexagon/hvx-reuse-fi-base.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ b0:
183183
%v11 = call <64 x i32> @llvm.hexagon.V6.vaddubh.128B(<32 x i32> %v10, <32 x i32> undef)
184184
%v12 = call <64 x i32> @llvm.hexagon.V6.vrmpyubi.128B(<64 x i32> %v11, i32 2147483647, i32 1)
185185
store <64 x i32> %v12, ptr @g0, align 128
186-
call void (ptr, ...) @f1(ptr @g3) #2
186+
call void (ptr, ...) @f1(ptr @g3) #3
187187
%v13 = call <32 x i32> @llvm.hexagon.V6.lvsplatw.128B(i32 2)
188188
%v14 = call <64 x i32> @llvm.hexagon.V6.vaddubh.128B(<32 x i32> undef, <32 x i32> %v13)
189189
%v15 = call <64 x i32> @llvm.hexagon.V6.vrmpyubi.128B(<64 x i32> %v14, i32 -2147483648, i32 1)
@@ -193,7 +193,7 @@ b0:
193193
%v17 = call <64 x i32> @llvm.hexagon.V6.vaddubh.128B(<32 x i32> undef, <32 x i32> %v16)
194194
%v18 = call <64 x i32> @llvm.hexagon.V6.vrmpyubi.128B(<64 x i32> %v17, i32 0, i32 1)
195195
store <64 x i32> %v18, ptr @g0, align 128
196-
call void @f0() #2
196+
call void @f0() #3
197197
%v19 = call <32 x i32> @llvm.hexagon.V6.lvsplatw.128B(i32 1)
198198
%v20 = call <32 x i32> @llvm.hexagon.V6.lvsplatw.128B(i32 2)
199199
%v21 = call <64 x i32> @llvm.hexagon.V6.vaddubh.128B(<32 x i32> %v19, <32 x i32> %v20)
@@ -205,3 +205,4 @@ b0:
205205
attributes #0 = { nounwind "use-soft-float"="false" "target-cpu"="hexagonv66" "target-features"="+hvxv66,+hvx-length128b" }
206206
attributes #1 = { nounwind readnone }
207207
attributes #2 = { nounwind optsize }
208+
attributes #3 = { nounwind minsize }

0 commit comments

Comments
 (0)