Skip to content

Commit 62f1d91

Browse files
e-kudphoebewang
authored andcommitted
[NFC][X86] Remove cfi instructions and unused attributes from half.ll test
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D149114
1 parent b85a402 commit 62f1d91

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

llvm/test/CodeGen/X86/half.ll

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -954,11 +954,10 @@ define half @PR40273(half) #0 {
954954
ret half %3
955955
}
956956

957-
define dso_local void @brcond(half %0) {
957+
define void @brcond(half %0) #0 {
958958
; CHECK-LIBCALL-LABEL: brcond:
959959
; CHECK-LIBCALL: # %bb.0: # %entry
960960
; CHECK-LIBCALL-NEXT: pushq %rax
961-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 16
962961
; CHECK-LIBCALL-NEXT: callq __extendhfsf2@PLT
963962
; CHECK-LIBCALL-NEXT: xorps %xmm1, %xmm1
964963
; CHECK-LIBCALL-NEXT: ucomiss %xmm1, %xmm0
@@ -968,7 +967,6 @@ define dso_local void @brcond(half %0) {
968967
; CHECK-LIBCALL-NEXT: jne .LBB18_2
969968
; CHECK-LIBCALL-NEXT: # %bb.1: # %if.then
970969
; CHECK-LIBCALL-NEXT: popq %rax
971-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 8
972970
; CHECK-LIBCALL-NEXT: retq
973971
; CHECK-LIBCALL-NEXT: .LBB18_2: # %if.end
974972
;
@@ -991,7 +989,6 @@ define dso_local void @brcond(half %0) {
991989
; CHECK-I686-LABEL: brcond:
992990
; CHECK-I686: # %bb.0: # %entry
993991
; CHECK-I686-NEXT: subl $12, %esp
994-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 16
995992
; CHECK-I686-NEXT: pinsrw $0, {{[0-9]+}}(%esp), %xmm0
996993
; CHECK-I686-NEXT: pextrw $0, %xmm0, %eax
997994
; CHECK-I686-NEXT: movw %ax, (%esp)
@@ -1006,7 +1003,6 @@ define dso_local void @brcond(half %0) {
10061003
; CHECK-I686-NEXT: jne .LBB18_2
10071004
; CHECK-I686-NEXT: # %bb.1: # %if.then
10081005
; CHECK-I686-NEXT: addl $12, %esp
1009-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 4
10101006
; CHECK-I686-NEXT: retl
10111007
; CHECK-I686-NEXT: .LBB18_2: # %if.end
10121008
entry:
@@ -1020,16 +1016,14 @@ if.end: ; preds = %entry
10201016
unreachable
10211017
}
10221018

1023-
define half @test_sqrt(half %0) {
1019+
define half @test_sqrt(half %0) #0 {
10241020
; CHECK-LIBCALL-LABEL: test_sqrt:
10251021
; CHECK-LIBCALL: # %bb.0: # %entry
10261022
; CHECK-LIBCALL-NEXT: pushq %rax
1027-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 16
10281023
; CHECK-LIBCALL-NEXT: callq __extendhfsf2@PLT
10291024
; CHECK-LIBCALL-NEXT: sqrtss %xmm0, %xmm0
10301025
; CHECK-LIBCALL-NEXT: callq __truncsfhf2@PLT
10311026
; CHECK-LIBCALL-NEXT: popq %rax
1032-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 8
10331027
; CHECK-LIBCALL-NEXT: retq
10341028
;
10351029
; BWON-F16C-LABEL: test_sqrt:
@@ -1047,7 +1041,6 @@ define half @test_sqrt(half %0) {
10471041
; CHECK-I686-LABEL: test_sqrt:
10481042
; CHECK-I686: # %bb.0: # %entry
10491043
; CHECK-I686-NEXT: subl $12, %esp
1050-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 16
10511044
; CHECK-I686-NEXT: pinsrw $0, {{[0-9]+}}(%esp), %xmm0
10521045
; CHECK-I686-NEXT: pextrw $0, %xmm0, %eax
10531046
; CHECK-I686-NEXT: movw %ax, (%esp)
@@ -1058,7 +1051,6 @@ define half @test_sqrt(half %0) {
10581051
; CHECK-I686-NEXT: movss %xmm0, (%esp)
10591052
; CHECK-I686-NEXT: calll __truncsfhf2
10601053
; CHECK-I686-NEXT: addl $12, %esp
1061-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 4
10621054
; CHECK-I686-NEXT: retl
10631055
entry:
10641056
%1 = call half @llvm.sqrt.f16(half %0)
@@ -1067,7 +1059,7 @@ entry:
10671059

10681060
declare half @llvm.sqrt.f16(half)
10691061

1070-
define void @main.158() local_unnamed_addr #0 {
1062+
define void @main.158() #0 {
10711063
; CHECK-LIBCALL-LABEL: main.158:
10721064
; CHECK-LIBCALL: # %bb.0: # %entry
10731065
; CHECK-LIBCALL-NEXT: pushq %rax
@@ -1143,23 +1135,14 @@ entry:
11431135
ret void
11441136
}
11451137

1146-
define void @main.45() local_unnamed_addr {
1138+
define void @main.45() #0 {
11471139
; CHECK-LIBCALL-LABEL: main.45:
11481140
; CHECK-LIBCALL: # %bb.0: # %entry
11491141
; CHECK-LIBCALL-NEXT: pushq %rbp
1150-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 16
11511142
; CHECK-LIBCALL-NEXT: pushq %r15
1152-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 24
11531143
; CHECK-LIBCALL-NEXT: pushq %r14
1154-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 32
11551144
; CHECK-LIBCALL-NEXT: pushq %rbx
1156-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 40
11571145
; CHECK-LIBCALL-NEXT: pushq %rax
1158-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 48
1159-
; CHECK-LIBCALL-NEXT: .cfi_offset %rbx, -40
1160-
; CHECK-LIBCALL-NEXT: .cfi_offset %r14, -32
1161-
; CHECK-LIBCALL-NEXT: .cfi_offset %r15, -24
1162-
; CHECK-LIBCALL-NEXT: .cfi_offset %rbp, -16
11631146
; CHECK-LIBCALL-NEXT: pinsrw $0, (%rax), %xmm0
11641147
; CHECK-LIBCALL-NEXT: pextrw $0, %xmm0, %eax
11651148
; CHECK-LIBCALL-NEXT: movd %eax, %xmm1
@@ -1183,15 +1166,10 @@ define void @main.45() local_unnamed_addr {
11831166
; CHECK-LIBCALL-NEXT: movw %r15w, (%rax)
11841167
; CHECK-LIBCALL-NEXT: movw %bp, (%rax)
11851168
; CHECK-LIBCALL-NEXT: addq $8, %rsp
1186-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 40
11871169
; CHECK-LIBCALL-NEXT: popq %rbx
1188-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 32
11891170
; CHECK-LIBCALL-NEXT: popq %r14
1190-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 24
11911171
; CHECK-LIBCALL-NEXT: popq %r15
1192-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 16
11931172
; CHECK-LIBCALL-NEXT: popq %rbp
1194-
; CHECK-LIBCALL-NEXT: .cfi_def_cfa_offset 8
11951173
; CHECK-LIBCALL-NEXT: retq
11961174
;
11971175
; BWON-F16C-LABEL: main.45:
@@ -1213,13 +1191,8 @@ define void @main.45() local_unnamed_addr {
12131191
; CHECK-I686-LABEL: main.45:
12141192
; CHECK-I686: # %bb.0: # %entry
12151193
; CHECK-I686-NEXT: pushl %edi
1216-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 8
12171194
; CHECK-I686-NEXT: pushl %esi
1218-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 12
12191195
; CHECK-I686-NEXT: subl $20, %esp
1220-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 32
1221-
; CHECK-I686-NEXT: .cfi_offset %esi, -12
1222-
; CHECK-I686-NEXT: .cfi_offset %edi, -8
12231196
; CHECK-I686-NEXT: pinsrw $0, (%eax), %xmm0
12241197
; CHECK-I686-NEXT: pextrw $0, %xmm0, %eax
12251198
; CHECK-I686-NEXT: movd %eax, %xmm0
@@ -1238,11 +1211,8 @@ define void @main.45() local_unnamed_addr {
12381211
; CHECK-I686-NEXT: movw %di, (%eax)
12391212
; CHECK-I686-NEXT: movw %si, (%eax)
12401213
; CHECK-I686-NEXT: addl $20, %esp
1241-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 12
12421214
; CHECK-I686-NEXT: popl %esi
1243-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 8
12441215
; CHECK-I686-NEXT: popl %edi
1245-
; CHECK-I686-NEXT: .cfi_def_cfa_offset 4
12461216
; CHECK-I686-NEXT: retl
12471217
entry:
12481218
%0 = load half, ptr undef, align 8

0 commit comments

Comments
 (0)