Skip to content

Commit

Permalink
[LLD] Add CHECK-NEXT for cgprofile-obj.s tests (llvm#121677)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaohaiWen authored Jan 5, 2025
1 parent 96eced6 commit 3092ebc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 28 deletions.
31 changes: 17 additions & 14 deletions lld/test/COFF/cgprofile-obj.s
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,20 @@ Aa:
.cg_profile B, C, 30
.cg_profile C, D, 90

# CG-OBJ: 140001000 T A
# CG-OBJ: 140001001 T B
# CG-OBJ: 140001002 T C
# CG-OBJ: 140001003 t D

# NO-CG: 140001000 t D
# NO-CG: 140001001 T C
# NO-CG: 140001002 T B
# NO-CG: 140001003 T A

# CG-OBJ-OF: 140001000 t D
# CG-OBJ-OF: 140001001 T A
# CG-OBJ-OF: 140001004 T C
# CG-OBJ-OF: 140001005 T B
# CG-OBJ: 140001000 T A
# CG-OBJ-NEXT: 140001000 t Aa
# CG-OBJ-NEXT: 140001001 T B
# CG-OBJ-NEXT: 140001002 T C
# CG-OBJ-NEXT: 140001003 t D

# NO-CG: 140001000 t D
# NO-CG-NEXT: 140001001 T C
# NO-CG-NEXT: 140001002 T B
# NO-CG-NEXT: 140001003 T A
# NO-CG-NEXT: 140001003 t Aa

# CG-OBJ-OF: 140001000 t D
# CG-OBJ-OF-NEXT: 140001001 T A
# CG-OBJ-OF-NEXT: 140001001 t Aa
# CG-OBJ-OF-NEXT: 140001004 T C
# CG-OBJ-OF-NEXT: 140001005 T B
31 changes: 17 additions & 14 deletions lld/test/ELF/cgprofile-obj.s
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,20 @@ Aa:
.cg_profile B, C, 30
.cg_profile C, D, 90

# CG-OBJ: 0000000000201123 t D
# CG-OBJ: 0000000000201122 T C
# CG-OBJ: 0000000000201121 T B
# CG-OBJ: 0000000000201120 T A

# NO-CG: 0000000000201120 t D
# NO-CG: 0000000000201121 T C
# NO-CG: 0000000000201122 T B
# NO-CG: 0000000000201123 T A

# CG-OBJ-OF: 0000000000201120 t D
# CG-OBJ-OF: 0000000000201124 T C
# CG-OBJ-OF: 0000000000201125 T B
# CG-OBJ-OF: 0000000000201121 T A
# CG-OBJ: 0000000000201123 t D
# CG-OBJ-NEXT: 0000000000201120 t Aa
# CG-OBJ-NEXT: 0000000000201122 T C
# CG-OBJ-NEXT: 0000000000201121 T B
# CG-OBJ-NEXT: 0000000000201120 T A

# NO-CG: 0000000000201120 t D
# NO-CG-NEXT: 0000000000201123 t Aa
# NO-CG-NEXT: 0000000000201121 T C
# NO-CG-NEXT: 0000000000201122 T B
# NO-CG-NEXT: 0000000000201123 T A

# CG-OBJ-OF: 0000000000201120 t D
# CG-OBJ-OF-NEXT: 0000000000201121 t Aa
# CG-OBJ-OF-NEXT: 0000000000201124 T C
# CG-OBJ-OF-NEXT: 0000000000201125 T B
# CG-OBJ-OF-NEXT: 0000000000201121 T A

0 comments on commit 3092ebc

Please sign in to comment.