Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
PowerPC instructions list in Linux kernel
# cat vmlinux-3.2.0-0.bpo.1-powerpc64.disassemble | cut -f 3 -s | cut -d ' ' -f 1 | sort | uniq -c | sort -r
288840 ld
132620 std
111105 mr
97117 li
77279 bl
76090 addi
63505 nop
53079 beq-
45476 b
44317 lwz
43399 cmpdi
37027 bne-
32244 cmpwi
24464 stw
19835 clrldi
19831 blr
19230 add
17237 mtlr
16905 mflr
16868 stdu
13371 rldicr
12659 lbz
12535 extsw
12179 rldicl
11976 stb
10582 mtctr
9721 sync
9623 bctrl
8797 bne+
8298 rldicl.
8009 ori
7977 rlwinm
7437 subf
6873 lhz
6760 bgt-
6631 beq+
6619 cmpd
6479 mr.
6337 cmpw
5812 rotldi
5521 lwa
5500 ble-
5386 cmpld
4581 lis
4512 or
4317 lwsync
4130 cmplwi
3969 ldx
3646 cmplw
3615 .long
3524 clrldi.
3505 twi
3465 isync
3268 blt-
3210 xor
3104 sth
3016 and
2857 addic
2680 bge-
2624 tdnei
2333 mulli
2297 stwcx.
2297 lwarx
2257 lwbrx
1807 stwbrx
1753 sradi
1617 clrlwi
1589 srawi
1537 mfcr
1401 andi.
1394 stdx
1317 cmpldi
1308 stdcx.
1306 ldarx
1263 ldu
1248 rldic
1242 bgt+
1214 rotlwi
1181 xori
990 neg
981 ble+
959 subfic
947 blt+
942 addis
933 cntlzd
932 lwzx
909 mullw
908 subfe
870 mulld
869 slw
850 sld
846 rldimi
794 oris
794 andc
777 stwx
759 rlwimi
726 lbzx
711 lfs
705 not
673 cntlzw
672 addic.
643 srd
642 bdnz+
607 xoris
532 bge+
524 addze
508 mtcrf
500 rlwinm.
456 divwu
449 divdu
403 lwax
390 lha
371 stbx
344 extsw.
336 and.
327 lhzx
313 subf.
269 beqlr
254 sraw
250 mfmsr
248 mtspr
223 lhbrx
212 mfspr
204 stwu
203 bctr
202 rldicr.
194 divw
191 add.
186 crnot
166 sthx
158 extsb
154 srw
151 subfc
141 andis.
128 sc
125 mtmsrd
120 sthbrx
120 bnelr
117 mcrf
112 extsh
100 lwzu
93 adde
89 divd
84 bdz-
72 mfsprg
69 mftbl
62 vor
62 fmr
52 lfd
51 rotldi.
48 stfd
46 mulhdu
45 lbzu
43 bgtlr
39 stbu
39
38 srad
37 rfid
37 mtsrr1
36 stvx
36 lvx
35 mtsrr0
34 mfctr
33 mtsprg
32 blelr
31 mfxer
25 mfsrr1
25 andc.
24 orc
22 mfsrr0
20 rotlw
20 bgelr
19 ptesync
19 or.
18 nand
18 mtcr
18 eieio
18 dcbst
17 tlbie
17 sthu
17 bdnz-
16 srd.
15 icbi
13 dcbtst
12 lfsx
12 dcbt
11 stdux
11 mfpvr
11 dcbz
10 mttbl
10 mtdec
10 bns-
10 bltlr
9 slbia
9 mfdar
8 slbmte
7 nor
7 mulhwu
7 lhax
7 beqlr+
7 bcl-
6 stfsx
6 slbie
6 mfdsisr
6 lbzux
6 dssall
6 bnelr+
5 tlbsync
5 srw.
5 rotld
5 rldic.
5 mttbu
5 mfmd_ctr
5 ldux
4 trap
4 stbux
4 sradi.
4 mtxer
4 mtmsr
4 fmuls
4 dcbf
4 bnel-
4 bdz+
4 bdnzf+
3 sraw.
3 not.
3 neg.
3 mtsdr1
3 mtfsf
3 mtcmpe
3 mfmi_twc
3 mfmi_rpn
3 mfmi_epn
3 mfmd_epn
3 mfmd_ap
3 mfm_casid
3 lhzu
3 fnmsubs
3 fmadds
3 crclr
3 blrl
2 xor.
2 stwux
2 stfs
2 sld.
2 slbmfev
2 slbmfee
2 mtvrsave
2 mtocrf
2 mfvrsave
2 mfsdr1
2 mfmi_ap
2 mffs
2 lwzux
2 bnslr
2 bdnzt+
2 addc
1 srawi.
1 srad.
1 nor.
1 mulld.
1 mulhw
1 mulhd
1 mtvscr
1 mtthrm2
1 mtictc
1 mtdsisr
1 mtdar
1 mtasr
1 mfvscr
1 mfthrm2
1 mfmi_ctr
1 mfmd_rpn
1 mfm_tw
1 mfictc
1 mfdec
1 fsubs
1 frsqrte
1 fmsub
1 fdivs
1 fadds
1 extsb.
1 dcbi
1 cror
1 creqv
1 crand
1 bns+
1 bnea-
1 bltlr+
1 bgtlr+
1 bgelr+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment