Skip to content

Commit 53119d2

Browse files
committed
Assert the CR predicate stays invalid for CTR-only branches
1 parent a762985 commit 53119d2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

suite/cstest/include/test_mapping.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,7 @@ static const cs_enum_id_map cs_enum_map[] = {
12541254
{ .str = "PPC_PRED_GT_MINUS", .val = PPC_PRED_GT_MINUS },
12551255
{ .str = "PPC_PRED_GT_PLUS", .val = PPC_PRED_GT_PLUS },
12561256
{ .str = "PPC_PRED_GT_RESERVED", .val = PPC_PRED_GT_RESERVED },
1257+
{ .str = "PPC_PRED_INVALID", .val = PPC_PRED_INVALID },
12571258
{ .str = "PPC_PRED_LE", .val = PPC_PRED_LE },
12581259
{ .str = "PPC_PRED_LE_MINUS", .val = PPC_PRED_LE_MINUS },
12591260
{ .str = "PPC_PRED_LE_PLUS", .val = PPC_PRED_LE_PLUS },

tests/details/ppc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,7 @@ test_cases:
17451745
bi_set: true
17461746
bo: 16
17471747
bo_set: true
1748+
pred_cr: PPC_PRED_INVALID
17481749
pred_ctr: PPC_PRED_NZ
17491750
-
17501751
asm_text: "bc 0x10, 4*cr1+eq, 0x1014"
@@ -1768,6 +1769,7 @@ test_cases:
17681769
bi_set: true
17691770
bo: 16
17701771
bo_set: true
1772+
pred_cr: PPC_PRED_INVALID
17711773
pred_ctr: PPC_PRED_NZ
17721774
-
17731775
asm_text: "bc 0x12, 4*cr1+eq, 0x1018"
@@ -1791,6 +1793,7 @@ test_cases:
17911793
bi_set: true
17921794
bo: 18
17931795
bo_set: true
1796+
pred_cr: PPC_PRED_INVALID
17941797
pred_ctr: PPC_PRED_Z
17951798
-
17961799
asm_text: "bclr 0x10, 4*cr1+eq, 0"
@@ -1814,4 +1817,5 @@ test_cases:
18141817
bi_set: true
18151818
bo: 16
18161819
bo_set: true
1820+
pred_cr: PPC_PRED_INVALID
18171821
pred_ctr: PPC_PRED_NZ

0 commit comments

Comments
 (0)