Skip to content

[SystemZ] Add extended mnemonics tests. #91733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions llvm/test/MC/SystemZ/insn-good-z13.s
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,19 @@
lochino %r11, 32512
lochi %r11, 32512, 15

#CHECK: lochim %r10, 2766 # encoding: [0xec,0xa4,0x0a,0xce,0x00,0x42]
#CHECK: lochinm %r11, 6862 # encoding: [0xec,0xbb,0x1a,0xce,0x00,0x42]
#CHECK: lochip %r12, 10958 # encoding: [0xec,0xc2,0x2a,0xce,0x00,0x42]
#CHECK: lochiz %r13, 15054 # encoding: [0xec,0xd8,0x3a,0xce,0x00,0x42]
#CHECK: lochinp %r14, 19150 # encoding: [0xec,0xed,0x4a,0xce,0x00,0x42]
#CHECK: lochinz %r15, 23246 # encoding: [0xec,0xf7,0x5a,0xce,0x00,0x42]
lochim %r10, 2766
lochinm %r11, 6862
lochip %r12, 10958
lochiz %r13, 15054
lochinp %r14, 19150
lochinz %r15, 23246

#CHECK: locghi %r11, 42, 0 # encoding: [0xec,0xb0,0x00,0x2a,0x00,0x46]
#CHECK: locghio %r11, 42 # encoding: [0xec,0xb1,0x00,0x2a,0x00,0x46]
#CHECK: locghih %r11, 42 # encoding: [0xec,0xb2,0x00,0x2a,0x00,0x46]
Expand Down Expand Up @@ -190,6 +203,19 @@
locghino %r11, 32512
locghi %r11, 32512, 15

#CHECK: locghim %r10, 2766 # encoding: [0xec,0xa4,0x0a,0xce,0x00,0x46]
#CHECK: locghinm %r11, 6862 # encoding: [0xec,0xbb,0x1a,0xce,0x00,0x46]
#CHECK: locghip %r12, 10958 # encoding: [0xec,0xc2,0x2a,0xce,0x00,0x46]
#CHECK: locghiz %r13, 15054 # encoding: [0xec,0xd8,0x3a,0xce,0x00,0x46]
#CHECK: locghinp %r14, 19150 # encoding: [0xec,0xed,0x4a,0xce,0x00,0x46]
#CHECK: locghinz %r15, 23246 # encoding: [0xec,0xf7,0x5a,0xce,0x00,0x46]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try to following the spacing/indentation with the other lines (the "encoding:" should ideally line up). Here and everywhere ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add the missing whitespace.

locghim %r10, 2766
locghinm %r11, 6862
locghip %r12, 10958
locghiz %r13, 15054
locghinp %r14, 19150
locghinz %r15, 23246

#CHECK: lochhi %r11, 42, 0 # encoding: [0xec,0xb0,0x00,0x2a,0x00,0x4e]
#CHECK: lochhio %r11, 42 # encoding: [0xec,0xb1,0x00,0x2a,0x00,0x4e]
#CHECK: lochhih %r11, 42 # encoding: [0xec,0xb2,0x00,0x2a,0x00,0x4e]
Expand Down Expand Up @@ -224,6 +250,19 @@
lochhino %r11, 32512
lochhi %r11, 32512, 15

#CHECK: lochhim %r10, 2766 # encoding: [0xec,0xa4,0x0a,0xce,0x00,0x4e]
#CHECK: lochhinm %r11, 6862 # encoding: [0xec,0xbb,0x1a,0xce,0x00,0x4e]
#CHECK: lochhip %r12, 10958 # encoding: [0xec,0xc2,0x2a,0xce,0x00,0x4e]
#CHECK: lochhiz %r13, 15054 # encoding: [0xec,0xd8,0x3a,0xce,0x00,0x4e]
#CHECK: lochhinp %r14, 19150 # encoding: [0xec,0xed,0x4a,0xce,0x00,0x4e]
#CHECK: lochhinz %r15, 23246 # encoding: [0xec,0xf7,0x5a,0xce,0x00,0x4e]
lochhim %r10, 2766
lochhinm %r11, 6862
lochhip %r12, 10958
lochhiz %r13, 15054
lochhinp %r14, 19150
lochhinz %r15, 23246

#CHECK: locfh %r0, 0, 0 # encoding: [0xeb,0x00,0x00,0x00,0x00,0xe0]
#CHECK: locfh %r0, 0, 15 # encoding: [0xeb,0x0f,0x00,0x00,0x00,0xe0]
#CHECK: locfh %r0, -524288, 0 # encoding: [0xeb,0x00,0x00,0x00,0x80,0xe0]
Expand Down
12 changes: 12 additions & 0 deletions llvm/test/MC/SystemZ/insn-good-z14.s
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@

#CHECK: bic 2, 0(%r7) # encoding: [0xe3,0x20,0x70,0x00,0x00,0x47]
#CHECK: bih 0(%r15) # encoding: [0xe3,0x20,0xf0,0x00,0x00,0x47]
#CHECK: bip 0(%r14) # encoding: [0xe3,0x20,0xe0,0x00,0x00,0x47]

bic 2, 0(%r7)
bih 0(%r15)
bip 0(%r14)

#CHECK: bic 3, 0(%r7) # encoding: [0xe3,0x30,0x70,0x00,0x00,0x47]
#CHECK: binle 0(%r15) # encoding: [0xe3,0x30,0xf0,0x00,0x00,0x47]
Expand All @@ -108,9 +110,11 @@

#CHECK: bic 4, 0(%r7) # encoding: [0xe3,0x40,0x70,0x00,0x00,0x47]
#CHECK: bil 0(%r15) # encoding: [0xe3,0x40,0xf0,0x00,0x00,0x47]
#CHECK: bim 0(%r13) # encoding: [0xe3,0x40,0xd0,0x00,0x00,0x47]

bic 4, 0(%r7)
bil 0(%r15)
bim 0(%r13)

#CHECK: bic 5, 0(%r7) # encoding: [0xe3,0x50,0x70,0x00,0x00,0x47]
#CHECK: binhe 0(%r15) # encoding: [0xe3,0x50,0xf0,0x00,0x00,0x47]
Expand All @@ -126,15 +130,19 @@

#CHECK: bic 7, 0(%r7) # encoding: [0xe3,0x70,0x70,0x00,0x00,0x47]
#CHECK: bine 0(%r15) # encoding: [0xe3,0x70,0xf0,0x00,0x00,0x47]
#CHECK: binz 0(%r12) # encoding: [0xe3,0x70,0xc0,0x00,0x00,0x47]

bic 7, 0(%r7)
bine 0(%r15)
binz 0(%r12)

#CHECK: bic 8, 0(%r7) # encoding: [0xe3,0x80,0x70,0x00,0x00,0x47]
#CHECK: bie 0(%r15) # encoding: [0xe3,0x80,0xf0,0x00,0x00,0x47]
#CHECK: biz 0(%r11) # encoding: [0xe3,0x80,0xb0,0x00,0x00,0x47]

bic 8, 0(%r7)
bie 0(%r15)
biz 0(%r11)

#CHECK: bic 9, 0(%r7) # encoding: [0xe3,0x90,0x70,0x00,0x00,0x47]
#CHECK: binlh 0(%r15) # encoding: [0xe3,0x90,0xf0,0x00,0x00,0x47]
Expand All @@ -150,9 +158,11 @@

#CHECK: bic 11, 0(%r7) # encoding: [0xe3,0xb0,0x70,0x00,0x00,0x47]
#CHECK: binl 0(%r15) # encoding: [0xe3,0xb0,0xf0,0x00,0x00,0x47]
#CHECK: binm 0(%r10) # encoding: [0xe3,0xb0,0xa0,0x00,0x00,0x47]

bic 11, 0(%r7)
binl 0(%r15)
binm 0(%r10)

#CHECK: bic 12, 0(%r7) # encoding: [0xe3,0xc0,0x70,0x00,0x00,0x47]
#CHECK: bile 0(%r15) # encoding: [0xe3,0xc0,0xf0,0x00,0x00,0x47]
Expand All @@ -162,9 +172,11 @@

#CHECK: bic 13, 0(%r7) # encoding: [0xe3,0xd0,0x70,0x00,0x00,0x47]
#CHECK: binh 0(%r15) # encoding: [0xe3,0xd0,0xf0,0x00,0x00,0x47]
#CHECK: binp 0(%r9) # encoding: [0xe3,0xd0,0x90,0x00,0x00,0x47]

bic 13, 0(%r7)
binh 0(%r15)
binp 0(%r9)

#CHECK: bic 14, 0(%r7) # encoding: [0xe3,0xe0,0x70,0x00,0x00,0x47]
#CHECK: bino 0(%r15) # encoding: [0xe3,0xe0,0xf0,0x00,0x00,0x47]
Expand Down
24 changes: 24 additions & 0 deletions llvm/test/MC/SystemZ/insn-good-zEC12.s
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@
#CHECK: cltne %r0, 0(%r15) # encoding: [0xeb,0x06,0xf0,0x00,0x00,0x23]
#CHECK: cltnl %r0, 0(%r15) # encoding: [0xeb,0x0a,0xf0,0x00,0x00,0x23]
#CHECK: cltnh %r0, 0(%r15) # encoding: [0xeb,0x0c,0xf0,0x00,0x00,0x23]
#CHECK: cltnle %r0, 0(%r15) # encoding: [0xeb,0x02,0xf0,0x00,0x00,0x23]
#CHECK: cltnhe %r0, 0(%r15) # encoding: [0xeb,0x04,0xf0,0x00,0x00,0x23]
#CHECK: cltnlh %r0, 0(%r15) # encoding: [0xeb,0x08,0xf0,0x00,0x00,0x23]
#CHECK: cltlh %r0, 0(%r15) # encoding: [0xeb,0x06,0xf0,0x00,0x00,0x23]
#CHECK: clthe %r0, 0(%r15) # encoding: [0xeb,0x0a,0xf0,0x00,0x00,0x23]
#CHECK: cltle %r0, 0(%r15) # encoding: [0xeb,0x0c,0xf0,0x00,0x00,0x23]

clt %r0, 12, -524288
clt %r0, 12, -1
Expand All @@ -165,6 +171,12 @@
cltne %r0, 0(%r15)
cltnl %r0, 0(%r15)
cltnh %r0, 0(%r15)
cltnle %r0, 0(%r15)
cltnhe %r0, 0(%r15)
cltnlh %r0, 0(%r15)
cltlh %r0, 0(%r15)
clthe %r0, 0(%r15)
cltle %r0, 0(%r15)

#CHECK: clgt %r0, 12, -524288 # encoding: [0xeb,0x0c,0x00,0x00,0x80,0x2b]
#CHECK: clgt %r0, 12, -1 # encoding: [0xeb,0x0c,0x0f,0xff,0xff,0x2b]
Expand All @@ -181,6 +193,12 @@
#CHECK: clgtne %r0, 0(%r15) # encoding: [0xeb,0x06,0xf0,0x00,0x00,0x2b]
#CHECK: clgtnl %r0, 0(%r15) # encoding: [0xeb,0x0a,0xf0,0x00,0x00,0x2b]
#CHECK: clgtnh %r0, 0(%r15) # encoding: [0xeb,0x0c,0xf0,0x00,0x00,0x2b]
#CHECK: clgtnle %r0, 0(%r15) # encoding: [0xeb,0x02,0xf0,0x00,0x00,0x2b]
#CHECK: clgtnhe %r0, 0(%r15) # encoding: [0xeb,0x04,0xf0,0x00,0x00,0x2b]
#CHECK: clgtnlh %r0, 0(%r15) # encoding: [0xeb,0x08,0xf0,0x00,0x00,0x2b]
#CHECK: clgtlh %r0, 0(%r15) # encoding: [0xeb,0x06,0xf0,0x00,0x00,0x2b]
#CHECK: clgthe %r0, 0(%r15) # encoding: [0xeb,0x0a,0xf0,0x00,0x00,0x2b]
#CHECK: clgtle %r0, 0(%r15) # encoding: [0xeb,0x0c,0xf0,0x00,0x00,0x2b]

clgt %r0, 12, -524288
clgt %r0, 12, -1
Expand All @@ -197,6 +215,12 @@
clgtne %r0, 0(%r15)
clgtnl %r0, 0(%r15)
clgtnh %r0, 0(%r15)
clgtnle %r0, 0(%r15)
clgtnhe %r0, 0(%r15)
clgtnlh %r0, 0(%r15)
clgtlh %r0, 0(%r15)
clgthe %r0, 0(%r15)
clgtle %r0, 0(%r15)

#CHECK: crdte %r0, %r0, %r0 # encoding: [0xb9,0x8f,0x00,0x00]
#CHECK: crdte %r0, %r0, %r14 # encoding: [0xb9,0x8f,0x00,0x0e]
Expand Down
Loading
Loading