Fixing constant compare.
This commit is contained in:
parent
ac4337cabf
commit
df600a105a
Binary file not shown.
|
@ -5,22 +5,142 @@ Disassembly of section .text:
|
|||
100004: 7c c0 01 14 adde r6,r0,r0
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_addc_2>:
|
||||
10000c: 7c 64 28 14 addc r3,r4,r5
|
||||
100010: 7c c0 01 14 adde r6,r0,r0
|
||||
100014: 4e 80 00 20 blr
|
||||
000000000010000c <test_addc_1_constant>:
|
||||
10000c: 38 80 00 01 li r4,1
|
||||
100010: 38 a0 00 02 li r5,2
|
||||
100014: 7c 64 28 14 addc r3,r4,r5
|
||||
100018: 7c c0 01 14 adde r6,r0,r0
|
||||
10001c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100018 <test_addc_3>:
|
||||
100018: 7c 64 28 14 addc r3,r4,r5
|
||||
10001c: 7c c0 01 14 adde r6,r0,r0
|
||||
100020: 4e 80 00 20 blr
|
||||
0000000000100020 <test_addc_2>:
|
||||
100020: 7c 64 28 14 addc r3,r4,r5
|
||||
100024: 7c c0 01 14 adde r6,r0,r0
|
||||
100028: 4e 80 00 20 blr
|
||||
|
||||
0000000000100024 <test_addc_4>:
|
||||
100024: 7c 64 28 14 addc r3,r4,r5
|
||||
100028: 7c c0 01 14 adde r6,r0,r0
|
||||
10002c: 4e 80 00 20 blr
|
||||
000000000010002c <test_addc_2_constant>:
|
||||
10002c: 38 80 ff ff li r4,-1
|
||||
100030: 38 a0 00 00 li r5,0
|
||||
100034: 7c 64 28 14 addc r3,r4,r5
|
||||
100038: 7c c0 01 14 adde r6,r0,r0
|
||||
10003c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_addc_5>:
|
||||
100030: 7c 64 28 14 addc r3,r4,r5
|
||||
100034: 7c c0 01 14 adde r6,r0,r0
|
||||
100038: 4e 80 00 20 blr
|
||||
0000000000100040 <test_addc_3>:
|
||||
100040: 7c 64 28 14 addc r3,r4,r5
|
||||
100044: 7c c0 01 14 adde r6,r0,r0
|
||||
100048: 4e 80 00 20 blr
|
||||
|
||||
000000000010004c <test_addc_3_constant>:
|
||||
10004c: 38 80 ff ff li r4,-1
|
||||
100050: 38 a0 00 01 li r5,1
|
||||
100054: 7c 64 28 14 addc r3,r4,r5
|
||||
100058: 7c c0 01 14 adde r6,r0,r0
|
||||
10005c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100060 <test_addc_4>:
|
||||
100060: 7c 64 28 14 addc r3,r4,r5
|
||||
100064: 7c c0 01 14 adde r6,r0,r0
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_addc_4_constant>:
|
||||
10006c: 38 80 ff ff li r4,-1
|
||||
100070: 38 a0 00 7b li r5,123
|
||||
100074: 7c 64 28 14 addc r3,r4,r5
|
||||
100078: 7c c0 01 14 adde r6,r0,r0
|
||||
10007c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100080 <test_addc_5>:
|
||||
100080: 7c 64 28 14 addc r3,r4,r5
|
||||
100084: 7c c0 01 14 adde r6,r0,r0
|
||||
100088: 4e 80 00 20 blr
|
||||
|
||||
000000000010008c <test_addc_5_constant>:
|
||||
10008c: 38 a0 ff ff li r5,-1
|
||||
100090: 78 a4 f8 42 rldicl r4,r5,63,1
|
||||
100094: 7c 64 28 14 addc r3,r4,r5
|
||||
100098: 7c c0 01 14 adde r6,r0,r0
|
||||
10009c: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a0 <test_addc_cr_1>:
|
||||
1000a0: 7c 64 28 15 addc. r3,r4,r5
|
||||
1000a4: 7c c0 01 14 adde r6,r0,r0
|
||||
1000a8: 7d 80 00 26 mfcr r12
|
||||
1000ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b0 <test_addc_cr_1_constant>:
|
||||
1000b0: 38 80 00 01 li r4,1
|
||||
1000b4: 38 a0 00 02 li r5,2
|
||||
1000b8: 7c 64 28 15 addc. r3,r4,r5
|
||||
1000bc: 7c c0 01 14 adde r6,r0,r0
|
||||
1000c0: 7d 80 00 26 mfcr r12
|
||||
1000c4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c8 <test_addc_cr_2>:
|
||||
1000c8: 7c 64 28 15 addc. r3,r4,r5
|
||||
1000cc: 7c c0 01 14 adde r6,r0,r0
|
||||
1000d0: 7d 80 00 26 mfcr r12
|
||||
1000d4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000d8 <test_addc_cr_2_constant>:
|
||||
1000d8: 38 80 ff ff li r4,-1
|
||||
1000dc: 38 a0 00 00 li r5,0
|
||||
1000e0: 7c 64 28 15 addc. r3,r4,r5
|
||||
1000e4: 7c c0 01 14 adde r6,r0,r0
|
||||
1000e8: 7d 80 00 26 mfcr r12
|
||||
1000ec: 4e 80 00 20 blr
|
||||
|
||||
00000000001000f0 <test_addc_cr_3>:
|
||||
1000f0: 7c 64 28 15 addc. r3,r4,r5
|
||||
1000f4: 7c c0 01 14 adde r6,r0,r0
|
||||
1000f8: 7d 80 00 26 mfcr r12
|
||||
1000fc: 4e 80 00 20 blr
|
||||
|
||||
0000000000100100 <test_addc_cr_3_constant>:
|
||||
100100: 38 80 ff ff li r4,-1
|
||||
100104: 38 a0 00 01 li r5,1
|
||||
100108: 7c 64 28 15 addc. r3,r4,r5
|
||||
10010c: 7c c0 01 14 adde r6,r0,r0
|
||||
100110: 7d 80 00 26 mfcr r12
|
||||
100114: 4e 80 00 20 blr
|
||||
|
||||
0000000000100118 <test_addc_cr_4>:
|
||||
100118: 7c 64 28 15 addc. r3,r4,r5
|
||||
10011c: 7c c0 01 14 adde r6,r0,r0
|
||||
100120: 7d 80 00 26 mfcr r12
|
||||
100124: 4e 80 00 20 blr
|
||||
|
||||
0000000000100128 <test_addc_cr_4_constant>:
|
||||
100128: 38 80 ff ff li r4,-1
|
||||
10012c: 38 a0 00 7b li r5,123
|
||||
100130: 7c 64 28 15 addc. r3,r4,r5
|
||||
100134: 7c c0 01 14 adde r6,r0,r0
|
||||
100138: 7d 80 00 26 mfcr r12
|
||||
10013c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100140 <test_addc_cr_5>:
|
||||
100140: 7c 64 28 15 addc. r3,r4,r5
|
||||
100144: 7c c0 01 14 adde r6,r0,r0
|
||||
100148: 7d 80 00 26 mfcr r12
|
||||
10014c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100150 <test_addc_cr_5_constant>:
|
||||
100150: 38 a0 ff ff li r5,-1
|
||||
100154: 78 a4 f8 42 rldicl r4,r5,63,1
|
||||
100158: 7c 64 28 15 addc. r3,r4,r5
|
||||
10015c: 7c c0 01 14 adde r6,r0,r0
|
||||
100160: 7d 80 00 26 mfcr r12
|
||||
100164: 4e 80 00 20 blr
|
||||
|
||||
0000000000100168 <test_addc_cr_6>:
|
||||
100168: 7c 64 28 15 addc. r3,r4,r5
|
||||
10016c: 7c c0 01 14 adde r6,r0,r0
|
||||
100170: 7d 80 00 26 mfcr r12
|
||||
100174: 4e 80 00 20 blr
|
||||
|
||||
0000000000100178 <test_addc_cr_6_constant>:
|
||||
100178: 38 80 ff ff li r4,-1
|
||||
10017c: 78 84 f8 42 rldicl r4,r4,63,1
|
||||
100180: 38 a0 00 02 li r5,2
|
||||
100184: 7c 64 28 15 addc. r3,r4,r5
|
||||
100188: 7c c0 01 14 adde r6,r0,r0
|
||||
10018c: 7d 80 00 26 mfcr r12
|
||||
100190: 4e 80 00 20 blr
|
||||
|
|
|
@ -1,5 +1,22 @@
|
|||
0000000000000000 t test_addc_1
|
||||
000000000000000c t test_addc_2
|
||||
0000000000000018 t test_addc_3
|
||||
0000000000000024 t test_addc_4
|
||||
0000000000000030 t test_addc_5
|
||||
000000000000000c t test_addc_1_constant
|
||||
0000000000000020 t test_addc_2
|
||||
000000000000002c t test_addc_2_constant
|
||||
0000000000000040 t test_addc_3
|
||||
000000000000004c t test_addc_3_constant
|
||||
0000000000000060 t test_addc_4
|
||||
000000000000006c t test_addc_4_constant
|
||||
0000000000000080 t test_addc_5
|
||||
000000000000008c t test_addc_5_constant
|
||||
00000000000000a0 t test_addc_cr_1
|
||||
00000000000000b0 t test_addc_cr_1_constant
|
||||
00000000000000c8 t test_addc_cr_2
|
||||
00000000000000d8 t test_addc_cr_2_constant
|
||||
00000000000000f0 t test_addc_cr_3
|
||||
0000000000000100 t test_addc_cr_3_constant
|
||||
0000000000000118 t test_addc_cr_4
|
||||
0000000000000128 t test_addc_cr_4_constant
|
||||
0000000000000140 t test_addc_cr_5
|
||||
0000000000000150 t test_addc_cr_5_constant
|
||||
0000000000000168 t test_addc_cr_6
|
||||
0000000000000178 t test_addc_cr_6_constant
|
||||
|
|
Binary file not shown.
|
@ -149,3 +149,193 @@ Disassembly of section .text:
|
|||
1001ac: 7c 64 29 14 adde r3,r4,r5
|
||||
1001b0: 7c c0 01 14 adde r6,r0,r0
|
||||
1001b4: 4e 80 00 20 blr
|
||||
|
||||
00000000001001b8 <test_adde_cr_1>:
|
||||
1001b8: 7c 64 29 15 adde. r3,r4,r5
|
||||
1001bc: 7d 60 00 26 mfcr r11
|
||||
1001c0: 7c c0 01 15 adde. r6,r0,r0
|
||||
1001c4: 7d 80 00 26 mfcr r12
|
||||
1001c8: 4e 80 00 20 blr
|
||||
|
||||
00000000001001cc <test_adde_cr_1_constant>:
|
||||
1001cc: 38 80 00 01 li r4,1
|
||||
1001d0: 38 a0 00 02 li r5,2
|
||||
1001d4: 7c 64 29 15 adde. r3,r4,r5
|
||||
1001d8: 7d 60 00 26 mfcr r11
|
||||
1001dc: 7c c0 01 15 adde. r6,r0,r0
|
||||
1001e0: 7d 80 00 26 mfcr r12
|
||||
1001e4: 4e 80 00 20 blr
|
||||
|
||||
00000000001001e8 <test_adde_cr_2>:
|
||||
1001e8: 7c 63 1a 78 xor r3,r3,r3
|
||||
1001ec: 7c 63 18 f8 not r3,r3
|
||||
1001f0: 30 63 00 01 addic r3,r3,1
|
||||
1001f4: 7c 64 29 15 adde. r3,r4,r5
|
||||
1001f8: 7d 60 00 26 mfcr r11
|
||||
1001fc: 7c c0 01 15 adde. r6,r0,r0
|
||||
100200: 7d 80 00 26 mfcr r12
|
||||
100204: 4e 80 00 20 blr
|
||||
|
||||
0000000000100208 <test_adde_cr_2_constant>:
|
||||
100208: 38 80 00 01 li r4,1
|
||||
10020c: 38 a0 00 02 li r5,2
|
||||
100210: 7c 63 1a 78 xor r3,r3,r3
|
||||
100214: 7c 63 18 f8 not r3,r3
|
||||
100218: 30 63 00 01 addic r3,r3,1
|
||||
10021c: 7c 64 29 15 adde. r3,r4,r5
|
||||
100220: 7d 60 00 26 mfcr r11
|
||||
100224: 7c c0 01 15 adde. r6,r0,r0
|
||||
100228: 7d 80 00 26 mfcr r12
|
||||
10022c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100230 <test_adde_cr_3>:
|
||||
100230: 7c 64 29 15 adde. r3,r4,r5
|
||||
100234: 7d 60 00 26 mfcr r11
|
||||
100238: 7c c0 01 15 adde. r6,r0,r0
|
||||
10023c: 7d 80 00 26 mfcr r12
|
||||
100240: 4e 80 00 20 blr
|
||||
|
||||
0000000000100244 <test_adde_cr_3_constant>:
|
||||
100244: 38 80 ff ff li r4,-1
|
||||
100248: 38 a0 00 00 li r5,0
|
||||
10024c: 7c 64 29 15 adde. r3,r4,r5
|
||||
100250: 7d 60 00 26 mfcr r11
|
||||
100254: 7c c0 01 15 adde. r6,r0,r0
|
||||
100258: 7d 80 00 26 mfcr r12
|
||||
10025c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100260 <test_adde_cr_4>:
|
||||
100260: 7c 63 1a 78 xor r3,r3,r3
|
||||
100264: 7c 63 18 f8 not r3,r3
|
||||
100268: 30 63 00 01 addic r3,r3,1
|
||||
10026c: 7c 64 29 15 adde. r3,r4,r5
|
||||
100270: 7d 60 00 26 mfcr r11
|
||||
100274: 7c c0 01 15 adde. r6,r0,r0
|
||||
100278: 7d 80 00 26 mfcr r12
|
||||
10027c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100280 <test_adde_cr_4_constant>:
|
||||
100280: 38 80 ff ff li r4,-1
|
||||
100284: 38 a0 00 00 li r5,0
|
||||
100288: 7c 63 1a 78 xor r3,r3,r3
|
||||
10028c: 7c 63 18 f8 not r3,r3
|
||||
100290: 30 63 00 01 addic r3,r3,1
|
||||
100294: 7c 64 29 15 adde. r3,r4,r5
|
||||
100298: 7d 60 00 26 mfcr r11
|
||||
10029c: 7c c0 01 15 adde. r6,r0,r0
|
||||
1002a0: 7d 80 00 26 mfcr r12
|
||||
1002a4: 4e 80 00 20 blr
|
||||
|
||||
00000000001002a8 <test_adde_cr_5>:
|
||||
1002a8: 7c 64 29 15 adde. r3,r4,r5
|
||||
1002ac: 7d 60 00 26 mfcr r11
|
||||
1002b0: 7c c0 01 15 adde. r6,r0,r0
|
||||
1002b4: 7d 80 00 26 mfcr r12
|
||||
1002b8: 4e 80 00 20 blr
|
||||
|
||||
00000000001002bc <test_adde_cr_5_constant>:
|
||||
1002bc: 38 80 ff ff li r4,-1
|
||||
1002c0: 38 a0 00 01 li r5,1
|
||||
1002c4: 7c 64 29 15 adde. r3,r4,r5
|
||||
1002c8: 7d 60 00 26 mfcr r11
|
||||
1002cc: 7c c0 01 15 adde. r6,r0,r0
|
||||
1002d0: 7d 80 00 26 mfcr r12
|
||||
1002d4: 4e 80 00 20 blr
|
||||
|
||||
00000000001002d8 <test_adde_cr_6>:
|
||||
1002d8: 7c 63 1a 78 xor r3,r3,r3
|
||||
1002dc: 7c 63 18 f8 not r3,r3
|
||||
1002e0: 30 63 00 01 addic r3,r3,1
|
||||
1002e4: 7c 64 29 15 adde. r3,r4,r5
|
||||
1002e8: 7d 60 00 26 mfcr r11
|
||||
1002ec: 7c c0 01 15 adde. r6,r0,r0
|
||||
1002f0: 7d 80 00 26 mfcr r12
|
||||
1002f4: 4e 80 00 20 blr
|
||||
|
||||
00000000001002f8 <test_adde_cr_6_constant>:
|
||||
1002f8: 38 80 ff ff li r4,-1
|
||||
1002fc: 38 a0 00 01 li r5,1
|
||||
100300: 7c 63 1a 78 xor r3,r3,r3
|
||||
100304: 7c 63 18 f8 not r3,r3
|
||||
100308: 30 63 00 01 addic r3,r3,1
|
||||
10030c: 7c 64 29 15 adde. r3,r4,r5
|
||||
100310: 7d 60 00 26 mfcr r11
|
||||
100314: 7c c0 01 15 adde. r6,r0,r0
|
||||
100318: 7d 80 00 26 mfcr r12
|
||||
10031c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100320 <test_adde_cr_7>:
|
||||
100320: 7c 64 29 15 adde. r3,r4,r5
|
||||
100324: 7d 60 00 26 mfcr r11
|
||||
100328: 7c c0 01 15 adde. r6,r0,r0
|
||||
10032c: 7d 80 00 26 mfcr r12
|
||||
100330: 4e 80 00 20 blr
|
||||
|
||||
0000000000100334 <test_adde_cr_7_constant>:
|
||||
100334: 38 80 ff ff li r4,-1
|
||||
100338: 38 a0 00 7b li r5,123
|
||||
10033c: 7c 64 29 15 adde. r3,r4,r5
|
||||
100340: 7d 60 00 26 mfcr r11
|
||||
100344: 7c c0 01 15 adde. r6,r0,r0
|
||||
100348: 7d 80 00 26 mfcr r12
|
||||
10034c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100350 <test_adde_cr_8>:
|
||||
100350: 7c 63 1a 78 xor r3,r3,r3
|
||||
100354: 7c 63 18 f8 not r3,r3
|
||||
100358: 30 63 00 01 addic r3,r3,1
|
||||
10035c: 7c 64 29 15 adde. r3,r4,r5
|
||||
100360: 7d 60 00 26 mfcr r11
|
||||
100364: 7c c0 01 15 adde. r6,r0,r0
|
||||
100368: 7d 80 00 26 mfcr r12
|
||||
10036c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100370 <test_adde_cr_8_constant>:
|
||||
100370: 38 80 ff ff li r4,-1
|
||||
100374: 38 a0 00 7b li r5,123
|
||||
100378: 7c 63 1a 78 xor r3,r3,r3
|
||||
10037c: 7c 63 18 f8 not r3,r3
|
||||
100380: 30 63 00 01 addic r3,r3,1
|
||||
100384: 7c 64 29 15 adde. r3,r4,r5
|
||||
100388: 7d 60 00 26 mfcr r11
|
||||
10038c: 7c c0 01 15 adde. r6,r0,r0
|
||||
100390: 7d 80 00 26 mfcr r12
|
||||
100394: 4e 80 00 20 blr
|
||||
|
||||
0000000000100398 <test_adde_cr_9>:
|
||||
100398: 7c 64 29 15 adde. r3,r4,r5
|
||||
10039c: 7d 60 00 26 mfcr r11
|
||||
1003a0: 7c c0 01 15 adde. r6,r0,r0
|
||||
1003a4: 7d 80 00 26 mfcr r12
|
||||
1003a8: 4e 80 00 20 blr
|
||||
|
||||
00000000001003ac <test_adde_cr_9_constant>:
|
||||
1003ac: 38 a0 ff ff li r5,-1
|
||||
1003b0: 78 a4 f8 42 rldicl r4,r5,63,1
|
||||
1003b4: 7c 64 29 15 adde. r3,r4,r5
|
||||
1003b8: 7d 60 00 26 mfcr r11
|
||||
1003bc: 7c c0 01 15 adde. r6,r0,r0
|
||||
1003c0: 7d 80 00 26 mfcr r12
|
||||
1003c4: 4e 80 00 20 blr
|
||||
|
||||
00000000001003c8 <test_adde_cr_10>:
|
||||
1003c8: 7c 63 1a 78 xor r3,r3,r3
|
||||
1003cc: 7c 63 18 f8 not r3,r3
|
||||
1003d0: 30 63 00 01 addic r3,r3,1
|
||||
1003d4: 7c 64 29 15 adde. r3,r4,r5
|
||||
1003d8: 7d 60 00 26 mfcr r11
|
||||
1003dc: 7c c0 01 15 adde. r6,r0,r0
|
||||
1003e0: 7d 80 00 26 mfcr r12
|
||||
1003e4: 4e 80 00 20 blr
|
||||
|
||||
00000000001003e8 <test_adde_cr_10_constant>:
|
||||
1003e8: 38 a0 ff ff li r5,-1
|
||||
1003ec: 78 a4 f8 42 rldicl r4,r5,63,1
|
||||
1003f0: 7c 63 1a 78 xor r3,r3,r3
|
||||
1003f4: 7c 63 18 f8 not r3,r3
|
||||
1003f8: 30 63 00 01 addic r3,r3,1
|
||||
1003fc: 7c 64 29 15 adde. r3,r4,r5
|
||||
100400: 7d 60 00 26 mfcr r11
|
||||
100404: 7c c0 01 15 adde. r6,r0,r0
|
||||
100408: 7d 80 00 26 mfcr r12
|
||||
10040c: 4e 80 00 20 blr
|
||||
|
|
|
@ -18,3 +18,23 @@
|
|||
000000000000016c t test_adde_9_constant
|
||||
0000000000000180 t test_adde_10
|
||||
0000000000000198 t test_adde_10_constant
|
||||
00000000000001b8 t test_adde_cr_1
|
||||
00000000000001cc t test_adde_cr_1_constant
|
||||
00000000000001e8 t test_adde_cr_2
|
||||
0000000000000208 t test_adde_cr_2_constant
|
||||
0000000000000230 t test_adde_cr_3
|
||||
0000000000000244 t test_adde_cr_3_constant
|
||||
0000000000000260 t test_adde_cr_4
|
||||
0000000000000280 t test_adde_cr_4_constant
|
||||
00000000000002a8 t test_adde_cr_5
|
||||
00000000000002bc t test_adde_cr_5_constant
|
||||
00000000000002d8 t test_adde_cr_6
|
||||
00000000000002f8 t test_adde_cr_6_constant
|
||||
0000000000000320 t test_adde_cr_7
|
||||
0000000000000334 t test_adde_cr_7_constant
|
||||
0000000000000350 t test_adde_cr_8
|
||||
0000000000000370 t test_adde_cr_8_constant
|
||||
0000000000000398 t test_adde_cr_9
|
||||
00000000000003ac t test_adde_cr_9_constant
|
||||
00000000000003c8 t test_adde_cr_10
|
||||
00000000000003e8 t test_adde_cr_10_constant
|
||||
|
|
Binary file not shown.
|
@ -5,7 +5,45 @@ Disassembly of section .text:
|
|||
100004: 7c c0 01 14 adde r6,r0,r0
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_addic_2>:
|
||||
10000c: 30 84 00 01 addic r4,r4,1
|
||||
100010: 7c c0 01 14 adde r6,r0,r0
|
||||
100014: 4e 80 00 20 blr
|
||||
000000000010000c <test_addic_1_constant>:
|
||||
10000c: 38 80 00 01 li r4,1
|
||||
100010: 30 84 00 01 addic r4,r4,1
|
||||
100014: 7c c0 01 14 adde r6,r0,r0
|
||||
100018: 4e 80 00 20 blr
|
||||
|
||||
000000000010001c <test_addic_2>:
|
||||
10001c: 30 84 00 01 addic r4,r4,1
|
||||
100020: 7c c0 01 14 adde r6,r0,r0
|
||||
100024: 4e 80 00 20 blr
|
||||
|
||||
0000000000100028 <test_addic_2_constant>:
|
||||
100028: 38 80 ff ff li r4,-1
|
||||
10002c: 30 84 00 01 addic r4,r4,1
|
||||
100030: 7c c0 01 14 adde r6,r0,r0
|
||||
100034: 4e 80 00 20 blr
|
||||
|
||||
0000000000100038 <test_addic_cr_1>:
|
||||
100038: 34 84 00 01 addic. r4,r4,1
|
||||
10003c: 7c c0 01 14 adde r6,r0,r0
|
||||
100040: 7d 80 00 26 mfcr r12
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_addic_cr_1_constant>:
|
||||
100048: 38 80 00 01 li r4,1
|
||||
10004c: 34 84 00 01 addic. r4,r4,1
|
||||
100050: 7c c0 01 14 adde r6,r0,r0
|
||||
100054: 7d 80 00 26 mfcr r12
|
||||
100058: 4e 80 00 20 blr
|
||||
|
||||
000000000010005c <test_addic_cr_2>:
|
||||
10005c: 34 84 00 01 addic. r4,r4,1
|
||||
100060: 7c c0 01 14 adde r6,r0,r0
|
||||
100064: 7d 80 00 26 mfcr r12
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_addic_cr_2_constant>:
|
||||
10006c: 38 80 ff ff li r4,-1
|
||||
100070: 34 84 00 01 addic. r4,r4,1
|
||||
100074: 7c c0 01 14 adde r6,r0,r0
|
||||
100078: 7d 80 00 26 mfcr r12
|
||||
10007c: 4e 80 00 20 blr
|
||||
|
|
|
@ -1,2 +1,8 @@
|
|||
0000000000000000 t test_addic_1
|
||||
000000000000000c t test_addic_2
|
||||
000000000000000c t test_addic_1_constant
|
||||
000000000000001c t test_addic_2
|
||||
0000000000000028 t test_addic_2_constant
|
||||
0000000000000038 t test_addic_cr_1
|
||||
0000000000000048 t test_addic_cr_1_constant
|
||||
000000000000005c t test_addic_cr_2
|
||||
000000000000006c t test_addic_cr_2_constant
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,49 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_addis_1>:
|
||||
100000: 3c 60 00 01 lis r3,1
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_addis_1_constant>:
|
||||
100008: 38 00 04 d2 li r0,1234
|
||||
10000c: 38 80 00 01 li r4,1
|
||||
100010: 3c 60 00 01 lis r3,1
|
||||
100014: 4e 80 00 20 blr
|
||||
|
||||
0000000000100018 <test_addis_2>:
|
||||
100018: 3c 64 00 01 addis r3,r4,1
|
||||
10001c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100020 <test_addis_2_constant>:
|
||||
100020: 38 80 04 d2 li r4,1234
|
||||
100024: 38 a0 00 01 li r5,1
|
||||
100028: 3c 64 00 01 addis r3,r4,1
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_lis_1>:
|
||||
100030: 3c 60 00 01 lis r3,1
|
||||
100034: 4e 80 00 20 blr
|
||||
|
||||
0000000000100038 <test_lis_1_constant>:
|
||||
100038: 38 00 04 d2 li r0,1234
|
||||
10003c: 3c 60 00 01 lis r3,1
|
||||
100040: 4e 80 00 20 blr
|
||||
|
||||
0000000000100044 <test_lis_2>:
|
||||
100044: 3c 60 ff ff lis r3,-1
|
||||
100048: 4e 80 00 20 blr
|
||||
|
||||
000000000010004c <test_lis_2_constant>:
|
||||
10004c: 38 00 04 d2 li r0,1234
|
||||
100050: 3c 60 ff ff lis r3,-1
|
||||
100054: 4e 80 00 20 blr
|
||||
|
||||
0000000000100058 <test_subis_1>:
|
||||
100058: 3c 64 ff ff addis r3,r4,-1
|
||||
10005c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100060 <test_subis_1_constant>:
|
||||
100060: 38 80 04 d2 li r4,1234
|
||||
100064: 38 a0 00 01 li r5,1
|
||||
100068: 3c 64 ff ff addis r3,r4,-1
|
||||
10006c: 4e 80 00 20 blr
|
|
@ -0,0 +1,10 @@
|
|||
0000000000000000 t test_addis_1
|
||||
0000000000000008 t test_addis_1_constant
|
||||
0000000000000018 t test_addis_2
|
||||
0000000000000020 t test_addis_2_constant
|
||||
0000000000000030 t test_lis_1
|
||||
0000000000000038 t test_lis_1_constant
|
||||
0000000000000044 t test_lis_2
|
||||
000000000000004c t test_lis_2_constant
|
||||
0000000000000058 t test_subis_1
|
||||
0000000000000060 t test_subis_1_constant
|
Binary file not shown.
|
@ -111,3 +111,131 @@ Disassembly of section .text:
|
|||
100134: 7c 64 01 d4 addme r3,r4
|
||||
100138: 7c c0 01 14 adde r6,r0,r0
|
||||
10013c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100140 <test_addme_cr_1>:
|
||||
100140: 7c 64 01 d5 addme. r3,r4
|
||||
100144: 7c c0 01 14 adde r6,r0,r0
|
||||
100148: 7d 80 00 26 mfcr r12
|
||||
10014c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100150 <test_addme_cr_1_constant>:
|
||||
100150: 38 80 00 01 li r4,1
|
||||
100154: 7c 64 01 d5 addme. r3,r4
|
||||
100158: 7c c0 01 14 adde r6,r0,r0
|
||||
10015c: 7d 80 00 26 mfcr r12
|
||||
100160: 4e 80 00 20 blr
|
||||
|
||||
0000000000100164 <test_addme_cr_2>:
|
||||
100164: 7c 63 1a 78 xor r3,r3,r3
|
||||
100168: 7c 63 18 f8 not r3,r3
|
||||
10016c: 30 63 00 01 addic r3,r3,1
|
||||
100170: 7c 64 01 d5 addme. r3,r4
|
||||
100174: 7c c0 01 14 adde r6,r0,r0
|
||||
100178: 7d 80 00 26 mfcr r12
|
||||
10017c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100180 <test_addme_cr_2_constant>:
|
||||
100180: 38 80 00 01 li r4,1
|
||||
100184: 7c 63 1a 78 xor r3,r3,r3
|
||||
100188: 7c 63 18 f8 not r3,r3
|
||||
10018c: 30 63 00 01 addic r3,r3,1
|
||||
100190: 7c 64 01 d5 addme. r3,r4
|
||||
100194: 7c c0 01 14 adde r6,r0,r0
|
||||
100198: 7d 80 00 26 mfcr r12
|
||||
10019c: 4e 80 00 20 blr
|
||||
|
||||
00000000001001a0 <test_addme_cr_3>:
|
||||
1001a0: 7c 64 01 d5 addme. r3,r4
|
||||
1001a4: 7c c0 01 14 adde r6,r0,r0
|
||||
1001a8: 7d 80 00 26 mfcr r12
|
||||
1001ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001001b0 <test_addme_cr_3_constant>:
|
||||
1001b0: 38 80 00 0c li r4,12
|
||||
1001b4: 7c 64 01 d5 addme. r3,r4
|
||||
1001b8: 7c c0 01 14 adde r6,r0,r0
|
||||
1001bc: 7d 80 00 26 mfcr r12
|
||||
1001c0: 4e 80 00 20 blr
|
||||
|
||||
00000000001001c4 <test_addme_cr_4>:
|
||||
1001c4: 7c 63 1a 78 xor r3,r3,r3
|
||||
1001c8: 7c 63 18 f8 not r3,r3
|
||||
1001cc: 30 63 00 01 addic r3,r3,1
|
||||
1001d0: 7c 64 01 d5 addme. r3,r4
|
||||
1001d4: 7c c0 01 14 adde r6,r0,r0
|
||||
1001d8: 7d 80 00 26 mfcr r12
|
||||
1001dc: 4e 80 00 20 blr
|
||||
|
||||
00000000001001e0 <test_addme_cr_4_constant>:
|
||||
1001e0: 38 80 00 0c li r4,12
|
||||
1001e4: 7c 63 1a 78 xor r3,r3,r3
|
||||
1001e8: 7c 63 18 f8 not r3,r3
|
||||
1001ec: 30 63 00 01 addic r3,r3,1
|
||||
1001f0: 7c 64 01 d5 addme. r3,r4
|
||||
1001f4: 7c c0 01 14 adde r6,r0,r0
|
||||
1001f8: 7d 80 00 26 mfcr r12
|
||||
1001fc: 4e 80 00 20 blr
|
||||
|
||||
0000000000100200 <test_addme_cr_5>:
|
||||
100200: 7c 64 01 d5 addme. r3,r4
|
||||
100204: 7c c0 01 14 adde r6,r0,r0
|
||||
100208: 7d 80 00 26 mfcr r12
|
||||
10020c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100210 <test_addme_cr_5_constant>:
|
||||
100210: 38 80 ff ff li r4,-1
|
||||
100214: 7c 64 01 d5 addme. r3,r4
|
||||
100218: 7c c0 01 14 adde r6,r0,r0
|
||||
10021c: 7d 80 00 26 mfcr r12
|
||||
100220: 4e 80 00 20 blr
|
||||
|
||||
0000000000100224 <test_addme_cr_6>:
|
||||
100224: 7c 63 1a 78 xor r3,r3,r3
|
||||
100228: 7c 63 18 f8 not r3,r3
|
||||
10022c: 30 63 00 01 addic r3,r3,1
|
||||
100230: 7c 64 01 d5 addme. r3,r4
|
||||
100234: 7c c0 01 14 adde r6,r0,r0
|
||||
100238: 7d 80 00 26 mfcr r12
|
||||
10023c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100240 <test_addme_cr_6_constant>:
|
||||
100240: 38 80 ff ff li r4,-1
|
||||
100244: 7c 63 1a 78 xor r3,r3,r3
|
||||
100248: 7c 63 18 f8 not r3,r3
|
||||
10024c: 30 63 00 01 addic r3,r3,1
|
||||
100250: 7c 64 01 d5 addme. r3,r4
|
||||
100254: 7c c0 01 14 adde r6,r0,r0
|
||||
100258: 7d 80 00 26 mfcr r12
|
||||
10025c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100260 <test_addme_cr_7>:
|
||||
100260: 7c 64 01 d5 addme. r3,r4
|
||||
100264: 7c c0 01 14 adde r6,r0,r0
|
||||
100268: 7d 80 00 26 mfcr r12
|
||||
10026c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100270 <test_addme_cr_7_constant>:
|
||||
100270: 38 80 00 00 li r4,0
|
||||
100274: 7c 64 01 d5 addme. r3,r4
|
||||
100278: 7c c0 01 14 adde r6,r0,r0
|
||||
10027c: 7d 80 00 26 mfcr r12
|
||||
100280: 4e 80 00 20 blr
|
||||
|
||||
0000000000100284 <test_addme_cr_8>:
|
||||
100284: 7c 63 1a 78 xor r3,r3,r3
|
||||
100288: 7c 63 18 f8 not r3,r3
|
||||
10028c: 30 63 00 01 addic r3,r3,1
|
||||
100290: 7c 64 01 d5 addme. r3,r4
|
||||
100294: 7c c0 01 14 adde r6,r0,r0
|
||||
100298: 7d 80 00 26 mfcr r12
|
||||
10029c: 4e 80 00 20 blr
|
||||
|
||||
00000000001002a0 <test_addme_cr_8_constant>:
|
||||
1002a0: 38 80 00 00 li r4,0
|
||||
1002a4: 7c 63 1a 78 xor r3,r3,r3
|
||||
1002a8: 7c 63 18 f8 not r3,r3
|
||||
1002ac: 30 63 00 01 addic r3,r3,1
|
||||
1002b0: 7c 64 01 d5 addme. r3,r4
|
||||
1002b4: 7c c0 01 14 adde r6,r0,r0
|
||||
1002b8: 7d 80 00 26 mfcr r12
|
||||
1002bc: 4e 80 00 20 blr
|
||||
|
|
|
@ -14,3 +14,19 @@
|
|||
00000000000000fc t test_addme_7_constant
|
||||
000000000000010c t test_addme_8
|
||||
0000000000000124 t test_addme_8_constant
|
||||
0000000000000140 t test_addme_cr_1
|
||||
0000000000000150 t test_addme_cr_1_constant
|
||||
0000000000000164 t test_addme_cr_2
|
||||
0000000000000180 t test_addme_cr_2_constant
|
||||
00000000000001a0 t test_addme_cr_3
|
||||
00000000000001b0 t test_addme_cr_3_constant
|
||||
00000000000001c4 t test_addme_cr_4
|
||||
00000000000001e0 t test_addme_cr_4_constant
|
||||
0000000000000200 t test_addme_cr_5
|
||||
0000000000000210 t test_addme_cr_5_constant
|
||||
0000000000000224 t test_addme_cr_6
|
||||
0000000000000240 t test_addme_cr_6_constant
|
||||
0000000000000260 t test_addme_cr_7
|
||||
0000000000000270 t test_addme_cr_7_constant
|
||||
0000000000000284 t test_addme_cr_8
|
||||
00000000000002a0 t test_addme_cr_8_constant
|
||||
|
|
Binary file not shown.
|
@ -111,3 +111,131 @@ Disassembly of section .text:
|
|||
100134: 7c 64 01 94 addze r3,r4
|
||||
100138: 7c c0 01 14 adde r6,r0,r0
|
||||
10013c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100140 <test_addze_cr_1>:
|
||||
100140: 7c 64 01 95 addze. r3,r4
|
||||
100144: 7c c0 01 14 adde r6,r0,r0
|
||||
100148: 7d 80 00 26 mfcr r12
|
||||
10014c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100150 <test_addze_cr_1_constant>:
|
||||
100150: 38 80 00 01 li r4,1
|
||||
100154: 7c 64 01 95 addze. r3,r4
|
||||
100158: 7c c0 01 14 adde r6,r0,r0
|
||||
10015c: 7d 80 00 26 mfcr r12
|
||||
100160: 4e 80 00 20 blr
|
||||
|
||||
0000000000100164 <test_addze_cr_2>:
|
||||
100164: 7c 63 1a 78 xor r3,r3,r3
|
||||
100168: 7c 63 18 f8 not r3,r3
|
||||
10016c: 30 63 00 01 addic r3,r3,1
|
||||
100170: 7c 64 01 95 addze. r3,r4
|
||||
100174: 7c c0 01 14 adde r6,r0,r0
|
||||
100178: 7d 80 00 26 mfcr r12
|
||||
10017c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100180 <test_addze_cr_2_constant>:
|
||||
100180: 38 80 00 01 li r4,1
|
||||
100184: 7c 63 1a 78 xor r3,r3,r3
|
||||
100188: 7c 63 18 f8 not r3,r3
|
||||
10018c: 30 63 00 01 addic r3,r3,1
|
||||
100190: 7c 64 01 95 addze. r3,r4
|
||||
100194: 7c c0 01 14 adde r6,r0,r0
|
||||
100198: 7d 80 00 26 mfcr r12
|
||||
10019c: 4e 80 00 20 blr
|
||||
|
||||
00000000001001a0 <test_addze_cr_3>:
|
||||
1001a0: 7c 64 01 95 addze. r3,r4
|
||||
1001a4: 7c c0 01 14 adde r6,r0,r0
|
||||
1001a8: 7d 80 00 26 mfcr r12
|
||||
1001ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001001b0 <test_addze_cr_3_constant>:
|
||||
1001b0: 38 80 00 0c li r4,12
|
||||
1001b4: 7c 64 01 95 addze. r3,r4
|
||||
1001b8: 7c c0 01 14 adde r6,r0,r0
|
||||
1001bc: 7d 80 00 26 mfcr r12
|
||||
1001c0: 4e 80 00 20 blr
|
||||
|
||||
00000000001001c4 <test_addze_cr_4>:
|
||||
1001c4: 7c 63 1a 78 xor r3,r3,r3
|
||||
1001c8: 7c 63 18 f8 not r3,r3
|
||||
1001cc: 30 63 00 01 addic r3,r3,1
|
||||
1001d0: 7c 64 01 95 addze. r3,r4
|
||||
1001d4: 7c c0 01 14 adde r6,r0,r0
|
||||
1001d8: 7d 80 00 26 mfcr r12
|
||||
1001dc: 4e 80 00 20 blr
|
||||
|
||||
00000000001001e0 <test_addze_cr_4_constant>:
|
||||
1001e0: 38 80 00 0c li r4,12
|
||||
1001e4: 7c 63 1a 78 xor r3,r3,r3
|
||||
1001e8: 7c 63 18 f8 not r3,r3
|
||||
1001ec: 30 63 00 01 addic r3,r3,1
|
||||
1001f0: 7c 64 01 95 addze. r3,r4
|
||||
1001f4: 7c c0 01 14 adde r6,r0,r0
|
||||
1001f8: 7d 80 00 26 mfcr r12
|
||||
1001fc: 4e 80 00 20 blr
|
||||
|
||||
0000000000100200 <test_addze_cr_5>:
|
||||
100200: 7c 64 01 95 addze. r3,r4
|
||||
100204: 7c c0 01 14 adde r6,r0,r0
|
||||
100208: 7d 80 00 26 mfcr r12
|
||||
10020c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100210 <test_addze_cr_5_constant>:
|
||||
100210: 38 80 ff ff li r4,-1
|
||||
100214: 7c 64 01 95 addze. r3,r4
|
||||
100218: 7c c0 01 14 adde r6,r0,r0
|
||||
10021c: 7d 80 00 26 mfcr r12
|
||||
100220: 4e 80 00 20 blr
|
||||
|
||||
0000000000100224 <test_addze_cr_6>:
|
||||
100224: 7c 63 1a 78 xor r3,r3,r3
|
||||
100228: 7c 63 18 f8 not r3,r3
|
||||
10022c: 30 63 00 01 addic r3,r3,1
|
||||
100230: 7c 64 01 95 addze. r3,r4
|
||||
100234: 7c c0 01 14 adde r6,r0,r0
|
||||
100238: 7d 80 00 26 mfcr r12
|
||||
10023c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100240 <test_addze_cr_6_constant>:
|
||||
100240: 38 80 ff ff li r4,-1
|
||||
100244: 7c 63 1a 78 xor r3,r3,r3
|
||||
100248: 7c 63 18 f8 not r3,r3
|
||||
10024c: 30 63 00 01 addic r3,r3,1
|
||||
100250: 7c 64 01 95 addze. r3,r4
|
||||
100254: 7c c0 01 14 adde r6,r0,r0
|
||||
100258: 7d 80 00 26 mfcr r12
|
||||
10025c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100260 <test_addze_cr_7>:
|
||||
100260: 7c 64 01 95 addze. r3,r4
|
||||
100264: 7c c0 01 14 adde r6,r0,r0
|
||||
100268: 7d 80 00 26 mfcr r12
|
||||
10026c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100270 <test_addze_cr_7_constant>:
|
||||
100270: 38 80 00 00 li r4,0
|
||||
100274: 7c 64 01 95 addze. r3,r4
|
||||
100278: 7c c0 01 14 adde r6,r0,r0
|
||||
10027c: 7d 80 00 26 mfcr r12
|
||||
100280: 4e 80 00 20 blr
|
||||
|
||||
0000000000100284 <test_addze_cr_8>:
|
||||
100284: 7c 63 1a 78 xor r3,r3,r3
|
||||
100288: 7c 63 18 f8 not r3,r3
|
||||
10028c: 30 63 00 01 addic r3,r3,1
|
||||
100290: 7c 64 01 95 addze. r3,r4
|
||||
100294: 7c c0 01 14 adde r6,r0,r0
|
||||
100298: 7d 80 00 26 mfcr r12
|
||||
10029c: 4e 80 00 20 blr
|
||||
|
||||
00000000001002a0 <test_addze_cr_8_constant>:
|
||||
1002a0: 38 80 00 00 li r4,0
|
||||
1002a4: 7c 63 1a 78 xor r3,r3,r3
|
||||
1002a8: 7c 63 18 f8 not r3,r3
|
||||
1002ac: 30 63 00 01 addic r3,r3,1
|
||||
1002b0: 7c 64 01 95 addze. r3,r4
|
||||
1002b4: 7c c0 01 14 adde r6,r0,r0
|
||||
1002b8: 7d 80 00 26 mfcr r12
|
||||
1002bc: 4e 80 00 20 blr
|
||||
|
|
|
@ -14,3 +14,19 @@
|
|||
00000000000000fc t test_addze_7_constant
|
||||
000000000000010c t test_addze_8
|
||||
0000000000000124 t test_addze_8_constant
|
||||
0000000000000140 t test_addze_cr_1
|
||||
0000000000000150 t test_addze_cr_1_constant
|
||||
0000000000000164 t test_addze_cr_2
|
||||
0000000000000180 t test_addze_cr_2_constant
|
||||
00000000000001a0 t test_addze_cr_3
|
||||
00000000000001b0 t test_addze_cr_3_constant
|
||||
00000000000001c4 t test_addze_cr_4
|
||||
00000000000001e0 t test_addze_cr_4_constant
|
||||
0000000000000200 t test_addze_cr_5
|
||||
0000000000000210 t test_addze_cr_5_constant
|
||||
0000000000000224 t test_addze_cr_6
|
||||
0000000000000240 t test_addze_cr_6_constant
|
||||
0000000000000260 t test_addze_cr_7
|
||||
0000000000000270 t test_addze_cr_7_constant
|
||||
0000000000000284 t test_addze_cr_8
|
||||
00000000000002a0 t test_addze_cr_8_constant
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,117 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_and_1>:
|
||||
100000: 7c ab c8 38 and r11,r5,r25
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_and_1_constant>:
|
||||
100008: 38 a0 ff ff li r5,-1
|
||||
10000c: 3b 20 ff ff li r25,-1
|
||||
100010: 7c ab c8 38 and r11,r5,r25
|
||||
100014: 4e 80 00 20 blr
|
||||
|
||||
0000000000100018 <test_and_2>:
|
||||
100018: 7c ab c8 38 and r11,r5,r25
|
||||
10001c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100020 <test_and_2_constant>:
|
||||
100020: 38 a0 ff ff li r5,-1
|
||||
100024: 3b 20 00 00 li r25,0
|
||||
100028: 7c ab c8 38 and r11,r5,r25
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_and_3>:
|
||||
100030: 7c ab c8 38 and r11,r5,r25
|
||||
100034: 4e 80 00 20 blr
|
||||
|
||||
0000000000100038 <test_and_3_constant>:
|
||||
100038: 38 a0 00 00 li r5,0
|
||||
10003c: 3b 20 ff ff li r25,-1
|
||||
100040: 7c ab c8 38 and r11,r5,r25
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_and_4>:
|
||||
100048: 7c ab c8 38 and r11,r5,r25
|
||||
10004c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100050 <test_and_4_constant>:
|
||||
100050: 38 a0 ff ff li r5,-1
|
||||
100054: 3b 20 ff ff li r25,-1
|
||||
100058: 7b 39 04 20 clrldi r25,r25,48
|
||||
10005c: 7c ab c8 38 and r11,r5,r25
|
||||
100060: 4e 80 00 20 blr
|
||||
|
||||
0000000000100064 <test_and_5>:
|
||||
100064: 7c 0b c8 38 and r11,r0,r25
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_and_5_constant>:
|
||||
10006c: 3c 00 10 00 lis r0,4096
|
||||
100070: 60 00 00 ff ori r0,r0,255
|
||||
100074: 3b 20 ff ff li r25,-1
|
||||
100078: 7b 39 04 20 clrldi r25,r25,48
|
||||
10007c: 7c 0b c8 38 and r11,r0,r25
|
||||
100080: 4e 80 00 20 blr
|
||||
|
||||
0000000000100084 <test_and_cr_1>:
|
||||
100084: 7c ab c8 39 and. r11,r5,r25
|
||||
100088: 7d 80 00 26 mfcr r12
|
||||
10008c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100090 <test_and_cr_1_constant>:
|
||||
100090: 38 a0 ff ff li r5,-1
|
||||
100094: 3b 20 ff ff li r25,-1
|
||||
100098: 7c ab c8 39 and. r11,r5,r25
|
||||
10009c: 7d 80 00 26 mfcr r12
|
||||
1000a0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a4 <test_and_cr_2>:
|
||||
1000a4: 7c ab c8 39 and. r11,r5,r25
|
||||
1000a8: 7d 80 00 26 mfcr r12
|
||||
1000ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b0 <test_and_cr_2_constant>:
|
||||
1000b0: 38 a0 ff ff li r5,-1
|
||||
1000b4: 3b 20 00 00 li r25,0
|
||||
1000b8: 7c ab c8 39 and. r11,r5,r25
|
||||
1000bc: 7d 80 00 26 mfcr r12
|
||||
1000c0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c4 <test_and_cr_3>:
|
||||
1000c4: 7c ab c8 39 and. r11,r5,r25
|
||||
1000c8: 7d 80 00 26 mfcr r12
|
||||
1000cc: 4e 80 00 20 blr
|
||||
|
||||
00000000001000d0 <test_and_cr_3_constant>:
|
||||
1000d0: 38 a0 00 00 li r5,0
|
||||
1000d4: 3b 20 ff ff li r25,-1
|
||||
1000d8: 7c ab c8 39 and. r11,r5,r25
|
||||
1000dc: 7d 80 00 26 mfcr r12
|
||||
1000e0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000e4 <test_and_cr_4>:
|
||||
1000e4: 7c ab c8 39 and. r11,r5,r25
|
||||
1000e8: 7d 80 00 26 mfcr r12
|
||||
1000ec: 4e 80 00 20 blr
|
||||
|
||||
00000000001000f0 <test_and_cr_4_constant>:
|
||||
1000f0: 38 a0 ff ff li r5,-1
|
||||
1000f4: 3b 20 ff ff li r25,-1
|
||||
1000f8: 7b 39 04 20 clrldi r25,r25,48
|
||||
1000fc: 7c ab c8 39 and. r11,r5,r25
|
||||
100100: 7d 80 00 26 mfcr r12
|
||||
100104: 4e 80 00 20 blr
|
||||
|
||||
0000000000100108 <test_and_cr_5>:
|
||||
100108: 7c 0b c8 39 and. r11,r0,r25
|
||||
10010c: 7d 80 00 26 mfcr r12
|
||||
100110: 4e 80 00 20 blr
|
||||
|
||||
0000000000100114 <test_and_cr_5_constant>:
|
||||
100114: 3c 00 10 00 lis r0,4096
|
||||
100118: 60 00 00 ff ori r0,r0,255
|
||||
10011c: 3b 20 ff ff li r25,-1
|
||||
100120: 7b 39 04 20 clrldi r25,r25,48
|
||||
100124: 7c 0b c8 39 and. r11,r0,r25
|
||||
100128: 7d 80 00 26 mfcr r12
|
||||
10012c: 4e 80 00 20 blr
|
|
@ -0,0 +1,20 @@
|
|||
0000000000000000 t test_and_1
|
||||
0000000000000008 t test_and_1_constant
|
||||
0000000000000018 t test_and_2
|
||||
0000000000000020 t test_and_2_constant
|
||||
0000000000000030 t test_and_3
|
||||
0000000000000038 t test_and_3_constant
|
||||
0000000000000048 t test_and_4
|
||||
0000000000000050 t test_and_4_constant
|
||||
0000000000000064 t test_and_5
|
||||
000000000000006c t test_and_5_constant
|
||||
0000000000000084 t test_and_cr_1
|
||||
0000000000000090 t test_and_cr_1_constant
|
||||
00000000000000a4 t test_and_cr_2
|
||||
00000000000000b0 t test_and_cr_2_constant
|
||||
00000000000000c4 t test_and_cr_3
|
||||
00000000000000d0 t test_and_cr_3_constant
|
||||
00000000000000e4 t test_and_cr_4
|
||||
00000000000000f0 t test_and_cr_4_constant
|
||||
0000000000000108 t test_and_cr_5
|
||||
0000000000000114 t test_and_cr_5_constant
|
Binary file not shown.
|
@ -0,0 +1,117 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_andc_1>:
|
||||
100000: 7c ab c8 78 andc r11,r5,r25
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_andc_1_constant>:
|
||||
100008: 38 a0 ff ff li r5,-1
|
||||
10000c: 3b 20 ff ff li r25,-1
|
||||
100010: 7c ab c8 78 andc r11,r5,r25
|
||||
100014: 4e 80 00 20 blr
|
||||
|
||||
0000000000100018 <test_andc_2>:
|
||||
100018: 7c ab c8 78 andc r11,r5,r25
|
||||
10001c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100020 <test_andc_2_constant>:
|
||||
100020: 38 a0 ff ff li r5,-1
|
||||
100024: 3b 20 00 00 li r25,0
|
||||
100028: 7c ab c8 78 andc r11,r5,r25
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_andc_3>:
|
||||
100030: 7c ab c8 78 andc r11,r5,r25
|
||||
100034: 4e 80 00 20 blr
|
||||
|
||||
0000000000100038 <test_andc_3_constant>:
|
||||
100038: 38 a0 00 00 li r5,0
|
||||
10003c: 3b 20 ff ff li r25,-1
|
||||
100040: 7c ab c8 78 andc r11,r5,r25
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_andc_4>:
|
||||
100048: 7c ab c8 78 andc r11,r5,r25
|
||||
10004c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100050 <test_andc_4_constant>:
|
||||
100050: 38 a0 ff ff li r5,-1
|
||||
100054: 3b 20 ff ff li r25,-1
|
||||
100058: 7b 39 04 20 clrldi r25,r25,48
|
||||
10005c: 7c ab c8 78 andc r11,r5,r25
|
||||
100060: 4e 80 00 20 blr
|
||||
|
||||
0000000000100064 <test_andc_5>:
|
||||
100064: 7c 0b c8 78 andc r11,r0,r25
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_andc_5_constant>:
|
||||
10006c: 3c 00 10 00 lis r0,4096
|
||||
100070: 60 00 00 ff ori r0,r0,255
|
||||
100074: 3b 20 ff ff li r25,-1
|
||||
100078: 7b 39 04 20 clrldi r25,r25,48
|
||||
10007c: 7c 0b c8 78 andc r11,r0,r25
|
||||
100080: 4e 80 00 20 blr
|
||||
|
||||
0000000000100084 <test_andc_cr_1>:
|
||||
100084: 7c ab c8 79 andc. r11,r5,r25
|
||||
100088: 7d 80 00 26 mfcr r12
|
||||
10008c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100090 <test_andc_cr_1_constant>:
|
||||
100090: 38 a0 ff ff li r5,-1
|
||||
100094: 3b 20 ff ff li r25,-1
|
||||
100098: 7c ab c8 79 andc. r11,r5,r25
|
||||
10009c: 7d 80 00 26 mfcr r12
|
||||
1000a0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a4 <test_andc_cr_2>:
|
||||
1000a4: 7c ab c8 79 andc. r11,r5,r25
|
||||
1000a8: 7d 80 00 26 mfcr r12
|
||||
1000ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b0 <test_andc_cr_2_constant>:
|
||||
1000b0: 38 a0 ff ff li r5,-1
|
||||
1000b4: 3b 20 00 00 li r25,0
|
||||
1000b8: 7c ab c8 79 andc. r11,r5,r25
|
||||
1000bc: 7d 80 00 26 mfcr r12
|
||||
1000c0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c4 <test_andc_cr_3>:
|
||||
1000c4: 7c ab c8 79 andc. r11,r5,r25
|
||||
1000c8: 7d 80 00 26 mfcr r12
|
||||
1000cc: 4e 80 00 20 blr
|
||||
|
||||
00000000001000d0 <test_andc_cr_3_constant>:
|
||||
1000d0: 38 a0 00 00 li r5,0
|
||||
1000d4: 3b 20 ff ff li r25,-1
|
||||
1000d8: 7c ab c8 79 andc. r11,r5,r25
|
||||
1000dc: 7d 80 00 26 mfcr r12
|
||||
1000e0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000e4 <test_andc_cr_4>:
|
||||
1000e4: 7c ab c8 79 andc. r11,r5,r25
|
||||
1000e8: 7d 80 00 26 mfcr r12
|
||||
1000ec: 4e 80 00 20 blr
|
||||
|
||||
00000000001000f0 <test_andc_cr_4_constant>:
|
||||
1000f0: 38 a0 ff ff li r5,-1
|
||||
1000f4: 3b 20 ff ff li r25,-1
|
||||
1000f8: 7b 39 04 20 clrldi r25,r25,48
|
||||
1000fc: 7c ab c8 79 andc. r11,r5,r25
|
||||
100100: 7d 80 00 26 mfcr r12
|
||||
100104: 4e 80 00 20 blr
|
||||
|
||||
0000000000100108 <test_andc_cr_5>:
|
||||
100108: 7c 0b c8 79 andc. r11,r0,r25
|
||||
10010c: 7d 80 00 26 mfcr r12
|
||||
100110: 4e 80 00 20 blr
|
||||
|
||||
0000000000100114 <test_andc_cr_5_constant>:
|
||||
100114: 3c 00 10 00 lis r0,4096
|
||||
100118: 60 00 00 ff ori r0,r0,255
|
||||
10011c: 3b 20 ff ff li r25,-1
|
||||
100120: 7b 39 04 20 clrldi r25,r25,48
|
||||
100124: 7c 0b c8 79 andc. r11,r0,r25
|
||||
100128: 7d 80 00 26 mfcr r12
|
||||
10012c: 4e 80 00 20 blr
|
|
@ -0,0 +1,20 @@
|
|||
0000000000000000 t test_andc_1
|
||||
0000000000000008 t test_andc_1_constant
|
||||
0000000000000018 t test_andc_2
|
||||
0000000000000020 t test_andc_2_constant
|
||||
0000000000000030 t test_andc_3
|
||||
0000000000000038 t test_andc_3_constant
|
||||
0000000000000048 t test_andc_4
|
||||
0000000000000050 t test_andc_4_constant
|
||||
0000000000000064 t test_andc_5
|
||||
000000000000006c t test_andc_5_constant
|
||||
0000000000000084 t test_andc_cr_1
|
||||
0000000000000090 t test_andc_cr_1_constant
|
||||
00000000000000a4 t test_andc_cr_2
|
||||
00000000000000b0 t test_andc_cr_2_constant
|
||||
00000000000000c4 t test_andc_cr_3
|
||||
00000000000000d0 t test_andc_cr_3_constant
|
||||
00000000000000e4 t test_andc_cr_4
|
||||
00000000000000f0 t test_andc_cr_4_constant
|
||||
0000000000000108 t test_andc_cr_5
|
||||
0000000000000114 t test_andc_cr_5_constant
|
Binary file not shown.
|
@ -0,0 +1,56 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_andi_cr_1>:
|
||||
100000: 70 ab ca fe andi. r11,r5,51966
|
||||
100004: 7d 80 00 26 mfcr r12
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_andi_cr_1_constant>:
|
||||
10000c: 38 a0 ff ff li r5,-1
|
||||
100010: 70 ab ca fe andi. r11,r5,51966
|
||||
100014: 7d 80 00 26 mfcr r12
|
||||
100018: 4e 80 00 20 blr
|
||||
|
||||
000000000010001c <test_andi_cr_2>:
|
||||
10001c: 70 ab 00 00 andi. r11,r5,0
|
||||
100020: 7d 80 00 26 mfcr r12
|
||||
100024: 4e 80 00 20 blr
|
||||
|
||||
0000000000100028 <test_andi_cr_2_constant>:
|
||||
100028: 70 ab 00 00 andi. r11,r5,0
|
||||
10002c: 7d 80 00 26 mfcr r12
|
||||
100030: 4e 80 00 20 blr
|
||||
|
||||
0000000000100034 <test_andi_cr_3>:
|
||||
100034: 70 ab ff ff andi. r11,r5,65535
|
||||
100038: 7d 80 00 26 mfcr r12
|
||||
10003c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100040 <test_andi_cr_3_constant>:
|
||||
100040: 38 a0 00 00 li r5,0
|
||||
100044: 70 ab ff ff andi. r11,r5,65535
|
||||
100048: 7d 80 00 26 mfcr r12
|
||||
10004c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100050 <test_andi_cr_4>:
|
||||
100050: 70 ab ca fe andi. r11,r5,51966
|
||||
100054: 7d 80 00 26 mfcr r12
|
||||
100058: 4e 80 00 20 blr
|
||||
|
||||
000000000010005c <test_andi_cr_4_constant>:
|
||||
10005c: 38 a0 ff ff li r5,-1
|
||||
100060: 70 ab ca fe andi. r11,r5,51966
|
||||
100064: 7d 80 00 26 mfcr r12
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_andi_cr_5>:
|
||||
10006c: 70 0b ff ff andi. r11,r0,65535
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_andi_cr_5_constant>:
|
||||
100078: 3c 00 10 00 lis r0,4096
|
||||
10007c: 60 00 00 ff ori r0,r0,255
|
||||
100080: 70 0b ff ff andi. r11,r0,65535
|
||||
100084: 7d 80 00 26 mfcr r12
|
||||
100088: 4e 80 00 20 blr
|
|
@ -0,0 +1,10 @@
|
|||
0000000000000000 t test_andi_cr_1
|
||||
000000000000000c t test_andi_cr_1_constant
|
||||
000000000000001c t test_andi_cr_2
|
||||
0000000000000028 t test_andi_cr_2_constant
|
||||
0000000000000034 t test_andi_cr_3
|
||||
0000000000000040 t test_andi_cr_3_constant
|
||||
0000000000000050 t test_andi_cr_4
|
||||
000000000000005c t test_andi_cr_4_constant
|
||||
000000000000006c t test_andi_cr_5
|
||||
0000000000000078 t test_andi_cr_5_constant
|
Binary file not shown.
|
@ -0,0 +1,56 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_andis_cr_1>:
|
||||
100000: 74 ab ca fe andis. r11,r5,51966
|
||||
100004: 7d 80 00 26 mfcr r12
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_andis_cr_1_constant>:
|
||||
10000c: 38 a0 ff ff li r5,-1
|
||||
100010: 74 ab ca fe andis. r11,r5,51966
|
||||
100014: 7d 80 00 26 mfcr r12
|
||||
100018: 4e 80 00 20 blr
|
||||
|
||||
000000000010001c <test_andis_cr_2>:
|
||||
10001c: 74 ab 00 00 andis. r11,r5,0
|
||||
100020: 7d 80 00 26 mfcr r12
|
||||
100024: 4e 80 00 20 blr
|
||||
|
||||
0000000000100028 <test_andis_cr_2_constant>:
|
||||
100028: 74 ab 00 00 andis. r11,r5,0
|
||||
10002c: 7d 80 00 26 mfcr r12
|
||||
100030: 4e 80 00 20 blr
|
||||
|
||||
0000000000100034 <test_andis_cr_3>:
|
||||
100034: 74 ab ff ff andis. r11,r5,65535
|
||||
100038: 7d 80 00 26 mfcr r12
|
||||
10003c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100040 <test_andis_cr_3_constant>:
|
||||
100040: 38 a0 00 00 li r5,0
|
||||
100044: 74 ab ff ff andis. r11,r5,65535
|
||||
100048: 7d 80 00 26 mfcr r12
|
||||
10004c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100050 <test_andis_cr_4>:
|
||||
100050: 74 ab ca fe andis. r11,r5,51966
|
||||
100054: 7d 80 00 26 mfcr r12
|
||||
100058: 4e 80 00 20 blr
|
||||
|
||||
000000000010005c <test_andis_cr_4_constant>:
|
||||
10005c: 38 a0 ff ff li r5,-1
|
||||
100060: 74 ab ca fe andis. r11,r5,51966
|
||||
100064: 7d 80 00 26 mfcr r12
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_andis_cr_5>:
|
||||
10006c: 74 0b ff ff andis. r11,r0,65535
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_andis_cr_5_constant>:
|
||||
100078: 3c 00 10 00 lis r0,4096
|
||||
10007c: 60 00 00 ff ori r0,r0,255
|
||||
100080: 74 0b ff ff andis. r11,r0,65535
|
||||
100084: 7d 80 00 26 mfcr r12
|
||||
100088: 4e 80 00 20 blr
|
|
@ -0,0 +1,10 @@
|
|||
0000000000000000 t test_andis_cr_1
|
||||
000000000000000c t test_andis_cr_1_constant
|
||||
000000000000001c t test_andis_cr_2
|
||||
0000000000000028 t test_andis_cr_2_constant
|
||||
0000000000000034 t test_andis_cr_3
|
||||
0000000000000040 t test_andis_cr_3_constant
|
||||
0000000000000050 t test_andis_cr_4
|
||||
000000000000005c t test_andis_cr_4_constant
|
||||
000000000000006c t test_andis_cr_5
|
||||
0000000000000078 t test_andis_cr_5_constant
|
Binary file not shown.
|
@ -0,0 +1,116 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_cmpd_1>:
|
||||
100000: 7c 23 20 00 cmpd r3,r4
|
||||
100004: 7d 80 00 26 mfcr r12
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_cmpd_1_constant>:
|
||||
10000c: 38 60 00 01 li r3,1
|
||||
100010: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
100014: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
100018: 7c 23 20 00 cmpd r3,r4
|
||||
10001c: 7d 80 00 26 mfcr r12
|
||||
100020: 4e 80 00 20 blr
|
||||
|
||||
0000000000100024 <test_cmpd_2>:
|
||||
100024: 7c 23 20 00 cmpd r3,r4
|
||||
100028: 7d 80 00 26 mfcr r12
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_cmpd_2_constant>:
|
||||
100030: 38 80 00 01 li r4,1
|
||||
100034: 78 84 07 c6 rldicr r4,r4,32,31
|
||||
100038: 78 83 0f a4 rldicr r3,r4,1,62
|
||||
10003c: 7c 23 20 00 cmpd r3,r4
|
||||
100040: 7d 80 00 26 mfcr r12
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_cmpw_1>:
|
||||
100048: 7c 03 20 00 cmpw r3,r4
|
||||
10004c: 7d 80 00 26 mfcr r12
|
||||
100050: 4e 80 00 20 blr
|
||||
|
||||
0000000000100054 <test_cmpw_1_constant>:
|
||||
100054: 38 60 00 01 li r3,1
|
||||
100058: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
10005c: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
100060: 7c 03 20 00 cmpw r3,r4
|
||||
100064: 7d 80 00 26 mfcr r12
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_cmpw_2>:
|
||||
10006c: 7c 03 20 00 cmpw r3,r4
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_cmpw_2_constant>:
|
||||
100078: 38 80 00 01 li r4,1
|
||||
10007c: 78 84 07 c6 rldicr r4,r4,32,31
|
||||
100080: 78 83 0f a4 rldicr r3,r4,1,62
|
||||
100084: 7c 03 20 00 cmpw r3,r4
|
||||
100088: 7d 80 00 26 mfcr r12
|
||||
10008c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100090 <test_cmpw_3>:
|
||||
100090: 7c 03 20 00 cmpw r3,r4
|
||||
100094: 7d 80 00 26 mfcr r12
|
||||
100098: 4e 80 00 20 blr
|
||||
|
||||
000000000010009c <test_cmpw_3_constant>:
|
||||
10009c: 38 60 00 01 li r3,1
|
||||
1000a0: 38 80 00 02 li r4,2
|
||||
1000a4: 7c 03 20 00 cmpw r3,r4
|
||||
1000a8: 7d 80 00 26 mfcr r12
|
||||
1000ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b0 <test_cmpw_4>:
|
||||
1000b0: 7c 03 20 00 cmpw r3,r4
|
||||
1000b4: 7d 80 00 26 mfcr r12
|
||||
1000b8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000bc <test_cmpw_4_constant>:
|
||||
1000bc: 38 60 00 02 li r3,2
|
||||
1000c0: 38 80 00 01 li r4,1
|
||||
1000c4: 7c 03 20 00 cmpw r3,r4
|
||||
1000c8: 7d 80 00 26 mfcr r12
|
||||
1000cc: 4e 80 00 20 blr
|
||||
|
||||
00000000001000d0 <test_cmpw_5>:
|
||||
1000d0: 7c 03 20 00 cmpw r3,r4
|
||||
1000d4: 7d 80 00 26 mfcr r12
|
||||
1000d8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000dc <test_cmpw_5_constant>:
|
||||
1000dc: 38 60 00 01 li r3,1
|
||||
1000e0: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
1000e4: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
1000e8: 38 63 00 02 addi r3,r3,2
|
||||
1000ec: 38 84 00 01 addi r4,r4,1
|
||||
1000f0: 7c 03 20 00 cmpw r3,r4
|
||||
1000f4: 7d 80 00 26 mfcr r12
|
||||
1000f8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000fc <test_cmp_1>:
|
||||
1000fc: 7e 83 20 00 cmpw cr5,r3,r4
|
||||
100100: 7d 80 00 26 mfcr r12
|
||||
100104: 4e 80 00 20 blr
|
||||
|
||||
0000000000100108 <test_cmp_1_constant>:
|
||||
100108: 38 60 00 01 li r3,1
|
||||
10010c: 38 80 00 02 li r4,2
|
||||
100110: 7e 83 20 00 cmpw cr5,r3,r4
|
||||
100114: 7d 80 00 26 mfcr r12
|
||||
100118: 4e 80 00 20 blr
|
||||
|
||||
000000000010011c <test_cmp_2>:
|
||||
10011c: 7d 83 20 00 cmpw cr3,r3,r4
|
||||
100120: 7d 80 00 26 mfcr r12
|
||||
100124: 4e 80 00 20 blr
|
||||
|
||||
0000000000100128 <test_cmp_2_constant>:
|
||||
100128: 38 60 00 02 li r3,2
|
||||
10012c: 38 80 00 01 li r4,1
|
||||
100130: 7d 83 20 00 cmpw cr3,r3,r4
|
||||
100134: 7d 80 00 26 mfcr r12
|
||||
100138: 4e 80 00 20 blr
|
|
@ -0,0 +1,18 @@
|
|||
0000000000000000 t test_cmpd_1
|
||||
000000000000000c t test_cmpd_1_constant
|
||||
0000000000000024 t test_cmpd_2
|
||||
0000000000000030 t test_cmpd_2_constant
|
||||
0000000000000048 t test_cmpw_1
|
||||
0000000000000054 t test_cmpw_1_constant
|
||||
000000000000006c t test_cmpw_2
|
||||
0000000000000078 t test_cmpw_2_constant
|
||||
0000000000000090 t test_cmpw_3
|
||||
000000000000009c t test_cmpw_3_constant
|
||||
00000000000000b0 t test_cmpw_4
|
||||
00000000000000bc t test_cmpw_4_constant
|
||||
00000000000000d0 t test_cmpw_5
|
||||
00000000000000dc t test_cmpw_5_constant
|
||||
00000000000000fc t test_cmp_1
|
||||
0000000000000108 t test_cmp_1_constant
|
||||
000000000000011c t test_cmp_2
|
||||
0000000000000128 t test_cmp_2_constant
|
Binary file not shown.
|
@ -0,0 +1,83 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_cmpdi_1>:
|
||||
100000: 2c 23 00 02 cmpdi r3,2
|
||||
100004: 7d 80 00 26 mfcr r12
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_cmpdi_1_constant>:
|
||||
10000c: 38 60 00 01 li r3,1
|
||||
100010: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
100014: 2c 23 00 02 cmpdi r3,2
|
||||
100018: 7d 80 00 26 mfcr r12
|
||||
10001c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100020 <test_cmpdi_2>:
|
||||
100020: 2c 23 00 02 cmpdi r3,2
|
||||
100024: 7d 80 00 26 mfcr r12
|
||||
100028: 4e 80 00 20 blr
|
||||
|
||||
000000000010002c <test_cmpdi_2_constant>:
|
||||
10002c: 38 60 00 01 li r3,1
|
||||
100030: 2c 23 00 02 cmpdi r3,2
|
||||
100034: 7d 80 00 26 mfcr r12
|
||||
100038: 4e 80 00 20 blr
|
||||
|
||||
000000000010003c <test_cmpwi_1>:
|
||||
10003c: 2c 03 00 02 cmpwi r3,2
|
||||
100040: 7d 80 00 26 mfcr r12
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_cmpwi_1_constant>:
|
||||
100048: 38 60 00 01 li r3,1
|
||||
10004c: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
100050: 2c 03 00 02 cmpwi r3,2
|
||||
100054: 7d 80 00 26 mfcr r12
|
||||
100058: 4e 80 00 20 blr
|
||||
|
||||
000000000010005c <test_cmpwi_2>:
|
||||
10005c: 2c 03 00 01 cmpwi r3,1
|
||||
100060: 7d 80 00 26 mfcr r12
|
||||
100064: 4e 80 00 20 blr
|
||||
|
||||
0000000000100068 <test_cmpwi_2_constant>:
|
||||
100068: 38 60 00 02 li r3,2
|
||||
10006c: 2c 03 00 01 cmpwi r3,1
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_cmpwi_5>:
|
||||
100078: 2c 03 00 01 cmpwi r3,1
|
||||
10007c: 7d 80 00 26 mfcr r12
|
||||
100080: 4e 80 00 20 blr
|
||||
|
||||
0000000000100084 <test_cmpwi_5_constant>:
|
||||
100084: 38 60 00 01 li r3,1
|
||||
100088: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
10008c: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
100090: 38 63 00 02 addi r3,r3,2
|
||||
100094: 2c 03 00 01 cmpwi r3,1
|
||||
100098: 7d 80 00 26 mfcr r12
|
||||
10009c: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a0 <test_cmpi_1>:
|
||||
1000a0: 2e 83 00 02 cmpwi cr5,r3,2
|
||||
1000a4: 7d 80 00 26 mfcr r12
|
||||
1000a8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000ac <test_cmpi_1_constant>:
|
||||
1000ac: 38 60 00 01 li r3,1
|
||||
1000b0: 2e 83 00 02 cmpwi cr5,r3,2
|
||||
1000b4: 7d 80 00 26 mfcr r12
|
||||
1000b8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000bc <test_cmpi_2>:
|
||||
1000bc: 2d 83 00 01 cmpwi cr3,r3,1
|
||||
1000c0: 7d 80 00 26 mfcr r12
|
||||
1000c4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c8 <test_cmpi_2_constant>:
|
||||
1000c8: 38 60 00 02 li r3,2
|
||||
1000cc: 2d 83 00 01 cmpwi cr3,r3,1
|
||||
1000d0: 7d 80 00 26 mfcr r12
|
||||
1000d4: 4e 80 00 20 blr
|
|
@ -0,0 +1,14 @@
|
|||
0000000000000000 t test_cmpdi_1
|
||||
000000000000000c t test_cmpdi_1_constant
|
||||
0000000000000020 t test_cmpdi_2
|
||||
000000000000002c t test_cmpdi_2_constant
|
||||
000000000000003c t test_cmpwi_1
|
||||
0000000000000048 t test_cmpwi_1_constant
|
||||
000000000000005c t test_cmpwi_2
|
||||
0000000000000068 t test_cmpwi_2_constant
|
||||
0000000000000078 t test_cmpwi_5
|
||||
0000000000000084 t test_cmpwi_5_constant
|
||||
00000000000000a0 t test_cmpi_1
|
||||
00000000000000ac t test_cmpi_1_constant
|
||||
00000000000000bc t test_cmpi_2
|
||||
00000000000000c8 t test_cmpi_2_constant
|
Binary file not shown.
|
@ -0,0 +1,131 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_cmpld_1>:
|
||||
100000: 7c 23 20 40 cmpld r3,r4
|
||||
100004: 7d 80 00 26 mfcr r12
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_cmpld_1_constant>:
|
||||
10000c: 38 60 00 01 li r3,1
|
||||
100010: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
100014: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
100018: 7c 23 20 40 cmpld r3,r4
|
||||
10001c: 7d 80 00 26 mfcr r12
|
||||
100020: 4e 80 00 20 blr
|
||||
|
||||
0000000000100024 <test_cmpld_2>:
|
||||
100024: 7c 23 20 40 cmpld r3,r4
|
||||
100028: 7d 80 00 26 mfcr r12
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_cmpld_2_constant>:
|
||||
100030: 38 80 00 01 li r4,1
|
||||
100034: 78 84 07 c6 rldicr r4,r4,32,31
|
||||
100038: 78 83 0f a4 rldicr r3,r4,1,62
|
||||
10003c: 7c 23 20 40 cmpld r3,r4
|
||||
100040: 7d 80 00 26 mfcr r12
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_cmplw_1>:
|
||||
100048: 7c 03 20 40 cmplw r3,r4
|
||||
10004c: 7d 80 00 26 mfcr r12
|
||||
100050: 4e 80 00 20 blr
|
||||
|
||||
0000000000100054 <test_cmplw_1_constant>:
|
||||
100054: 38 60 00 01 li r3,1
|
||||
100058: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
10005c: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
100060: 7c 03 20 40 cmplw r3,r4
|
||||
100064: 7d 80 00 26 mfcr r12
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_cmplw_2>:
|
||||
10006c: 7c 03 20 40 cmplw r3,r4
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_cmplw_2_constant>:
|
||||
100078: 38 80 00 01 li r4,1
|
||||
10007c: 78 84 07 c6 rldicr r4,r4,32,31
|
||||
100080: 78 83 0f a4 rldicr r3,r4,1,62
|
||||
100084: 7c 03 20 40 cmplw r3,r4
|
||||
100088: 7d 80 00 26 mfcr r12
|
||||
10008c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100090 <test_cmplw_3>:
|
||||
100090: 7c 03 20 40 cmplw r3,r4
|
||||
100094: 7d 80 00 26 mfcr r12
|
||||
100098: 4e 80 00 20 blr
|
||||
|
||||
000000000010009c <test_cmplw_3_constant>:
|
||||
10009c: 38 60 00 01 li r3,1
|
||||
1000a0: 38 80 00 02 li r4,2
|
||||
1000a4: 7c 03 20 40 cmplw r3,r4
|
||||
1000a8: 7d 80 00 26 mfcr r12
|
||||
1000ac: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b0 <test_cmplw_4>:
|
||||
1000b0: 7c 03 20 40 cmplw r3,r4
|
||||
1000b4: 7d 80 00 26 mfcr r12
|
||||
1000b8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000bc <test_cmplw_4_constant>:
|
||||
1000bc: 38 60 00 02 li r3,2
|
||||
1000c0: 38 80 00 01 li r4,1
|
||||
1000c4: 7c 03 20 40 cmplw r3,r4
|
||||
1000c8: 7d 80 00 26 mfcr r12
|
||||
1000cc: 4e 80 00 20 blr
|
||||
|
||||
00000000001000d0 <test_cmplw_5>:
|
||||
1000d0: 7c 03 20 40 cmplw r3,r4
|
||||
1000d4: 7d 80 00 26 mfcr r12
|
||||
1000d8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000dc <test_cmplw_5_constant>:
|
||||
1000dc: 38 60 00 01 li r3,1
|
||||
1000e0: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
1000e4: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
1000e8: 38 63 00 02 addi r3,r3,2
|
||||
1000ec: 38 84 00 01 addi r4,r4,1
|
||||
1000f0: 7c 03 20 40 cmplw r3,r4
|
||||
1000f4: 7d 80 00 26 mfcr r12
|
||||
1000f8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000fc <test_cmplw_6>:
|
||||
1000fc: 7c 03 20 40 cmplw r3,r4
|
||||
100100: 7d 80 00 26 mfcr r12
|
||||
100104: 4e 80 00 20 blr
|
||||
|
||||
0000000000100108 <test_cmplw_6_constant>:
|
||||
100108: 3c 60 7f ff lis r3,32767
|
||||
10010c: 60 63 ff ff ori r3,r3,65535
|
||||
100110: 7c 63 18 f8 not r3,r3
|
||||
100114: 38 80 00 01 li r4,1
|
||||
100118: 78 84 f8 24 rldicr r4,r4,31,32
|
||||
10011c: 7c 03 20 40 cmplw r3,r4
|
||||
100120: 7d 80 00 26 mfcr r12
|
||||
100124: 4e 80 00 20 blr
|
||||
|
||||
0000000000100128 <test_cmpl_1>:
|
||||
100128: 7e 83 20 40 cmplw cr5,r3,r4
|
||||
10012c: 7d 80 00 26 mfcr r12
|
||||
100130: 4e 80 00 20 blr
|
||||
|
||||
0000000000100134 <test_cmpl_1_constant>:
|
||||
100134: 38 60 00 01 li r3,1
|
||||
100138: 38 80 00 02 li r4,2
|
||||
10013c: 7e 83 20 40 cmplw cr5,r3,r4
|
||||
100140: 7d 80 00 26 mfcr r12
|
||||
100144: 4e 80 00 20 blr
|
||||
|
||||
0000000000100148 <test_cmpl_2>:
|
||||
100148: 7d 83 20 40 cmplw cr3,r3,r4
|
||||
10014c: 7d 80 00 26 mfcr r12
|
||||
100150: 4e 80 00 20 blr
|
||||
|
||||
0000000000100154 <test_cmpl_2_constant>:
|
||||
100154: 38 60 00 02 li r3,2
|
||||
100158: 38 80 00 01 li r4,1
|
||||
10015c: 7d 83 20 40 cmplw cr3,r3,r4
|
||||
100160: 7d 80 00 26 mfcr r12
|
||||
100164: 4e 80 00 20 blr
|
|
@ -0,0 +1,20 @@
|
|||
0000000000000000 t test_cmpld_1
|
||||
000000000000000c t test_cmpld_1_constant
|
||||
0000000000000024 t test_cmpld_2
|
||||
0000000000000030 t test_cmpld_2_constant
|
||||
0000000000000048 t test_cmplw_1
|
||||
0000000000000054 t test_cmplw_1_constant
|
||||
000000000000006c t test_cmplw_2
|
||||
0000000000000078 t test_cmplw_2_constant
|
||||
0000000000000090 t test_cmplw_3
|
||||
000000000000009c t test_cmplw_3_constant
|
||||
00000000000000b0 t test_cmplw_4
|
||||
00000000000000bc t test_cmplw_4_constant
|
||||
00000000000000d0 t test_cmplw_5
|
||||
00000000000000dc t test_cmplw_5_constant
|
||||
00000000000000fc t test_cmplw_6
|
||||
0000000000000108 t test_cmplw_6_constant
|
||||
0000000000000128 t test_cmpl_1
|
||||
0000000000000134 t test_cmpl_1_constant
|
||||
0000000000000148 t test_cmpl_2
|
||||
0000000000000154 t test_cmpl_2_constant
|
Binary file not shown.
|
@ -0,0 +1,83 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_cmpldi_1>:
|
||||
100000: 28 23 00 02 cmpldi r3,2
|
||||
100004: 7d 80 00 26 mfcr r12
|
||||
100008: 4e 80 00 20 blr
|
||||
|
||||
000000000010000c <test_cmpldi_1_constant>:
|
||||
10000c: 38 60 00 01 li r3,1
|
||||
100010: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
100014: 28 23 00 02 cmpldi r3,2
|
||||
100018: 7d 80 00 26 mfcr r12
|
||||
10001c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100020 <test_cmpldi_2>:
|
||||
100020: 28 23 00 02 cmpldi r3,2
|
||||
100024: 7d 80 00 26 mfcr r12
|
||||
100028: 4e 80 00 20 blr
|
||||
|
||||
000000000010002c <test_cmpldi_2_constant>:
|
||||
10002c: 38 60 00 01 li r3,1
|
||||
100030: 28 23 00 02 cmpldi r3,2
|
||||
100034: 7d 80 00 26 mfcr r12
|
||||
100038: 4e 80 00 20 blr
|
||||
|
||||
000000000010003c <test_cmplwi_1>:
|
||||
10003c: 28 03 00 02 cmplwi r3,2
|
||||
100040: 7d 80 00 26 mfcr r12
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_cmplwi_1_constant>:
|
||||
100048: 38 60 00 01 li r3,1
|
||||
10004c: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
100050: 28 03 00 02 cmplwi r3,2
|
||||
100054: 7d 80 00 26 mfcr r12
|
||||
100058: 4e 80 00 20 blr
|
||||
|
||||
000000000010005c <test_cmplwi_2>:
|
||||
10005c: 28 03 00 01 cmplwi r3,1
|
||||
100060: 7d 80 00 26 mfcr r12
|
||||
100064: 4e 80 00 20 blr
|
||||
|
||||
0000000000100068 <test_cmplwi_2_constant>:
|
||||
100068: 38 60 00 02 li r3,2
|
||||
10006c: 28 03 00 01 cmplwi r3,1
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_cmplwi_5>:
|
||||
100078: 28 03 00 01 cmplwi r3,1
|
||||
10007c: 7d 80 00 26 mfcr r12
|
||||
100080: 4e 80 00 20 blr
|
||||
|
||||
0000000000100084 <test_cmplwi_5_constant>:
|
||||
100084: 38 60 00 01 li r3,1
|
||||
100088: 78 63 07 c6 rldicr r3,r3,32,31
|
||||
10008c: 78 64 0f a4 rldicr r4,r3,1,62
|
||||
100090: 38 63 00 02 addi r3,r3,2
|
||||
100094: 28 03 00 01 cmplwi r3,1
|
||||
100098: 7d 80 00 26 mfcr r12
|
||||
10009c: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a0 <test_cmpli_1>:
|
||||
1000a0: 2a 83 00 02 cmplwi cr5,r3,2
|
||||
1000a4: 7d 80 00 26 mfcr r12
|
||||
1000a8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000ac <test_cmpli_1_constant>:
|
||||
1000ac: 38 60 00 01 li r3,1
|
||||
1000b0: 2a 83 00 02 cmplwi cr5,r3,2
|
||||
1000b4: 7d 80 00 26 mfcr r12
|
||||
1000b8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000bc <test_cmpli_2>:
|
||||
1000bc: 29 83 00 01 cmplwi cr3,r3,1
|
||||
1000c0: 7d 80 00 26 mfcr r12
|
||||
1000c4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c8 <test_cmpli_2_constant>:
|
||||
1000c8: 38 60 00 02 li r3,2
|
||||
1000cc: 29 83 00 01 cmplwi cr3,r3,1
|
||||
1000d0: 7d 80 00 26 mfcr r12
|
||||
1000d4: 4e 80 00 20 blr
|
|
@ -0,0 +1,14 @@
|
|||
0000000000000000 t test_cmpldi_1
|
||||
000000000000000c t test_cmpldi_1_constant
|
||||
0000000000000020 t test_cmpldi_2
|
||||
000000000000002c t test_cmpldi_2_constant
|
||||
000000000000003c t test_cmplwi_1
|
||||
0000000000000048 t test_cmplwi_1_constant
|
||||
000000000000005c t test_cmplwi_2
|
||||
0000000000000068 t test_cmplwi_2_constant
|
||||
0000000000000078 t test_cmplwi_5
|
||||
0000000000000084 t test_cmplwi_5_constant
|
||||
00000000000000a0 t test_cmpli_1
|
||||
00000000000000ac t test_cmpli_1_constant
|
||||
00000000000000bc t test_cmpli_2
|
||||
00000000000000c8 t test_cmpli_2_constant
|
Binary file not shown.
|
@ -0,0 +1,83 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_extsb_1>:
|
||||
100000: 7c 83 07 74 extsb r3,r4
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_extsb_1_constant>:
|
||||
100008: 38 80 00 0f li r4,15
|
||||
10000c: 7c 83 07 74 extsb r3,r4
|
||||
100010: 4e 80 00 20 blr
|
||||
|
||||
0000000000100014 <test_extsb_2>:
|
||||
100014: 7c 83 07 74 extsb r3,r4
|
||||
100018: 4e 80 00 20 blr
|
||||
|
||||
000000000010001c <test_extsb_2_constant>:
|
||||
10001c: 38 80 00 7f li r4,127
|
||||
100020: 7c 83 07 74 extsb r3,r4
|
||||
100024: 4e 80 00 20 blr
|
||||
|
||||
0000000000100028 <test_extsb_3>:
|
||||
100028: 7c 83 07 74 extsb r3,r4
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_extsb_3_constant>:
|
||||
100030: 38 80 00 80 li r4,128
|
||||
100034: 7c 83 07 74 extsb r3,r4
|
||||
100038: 4e 80 00 20 blr
|
||||
|
||||
000000000010003c <test_extsb_4>:
|
||||
10003c: 7c 83 07 74 extsb r3,r4
|
||||
100040: 4e 80 00 20 blr
|
||||
|
||||
0000000000100044 <test_extsb_4_constant>:
|
||||
100044: 38 80 0f 7f li r4,3967
|
||||
100048: 7c 84 20 f8 not r4,r4
|
||||
10004c: 7c 83 07 74 extsb r3,r4
|
||||
100050: 4e 80 00 20 blr
|
||||
|
||||
0000000000100054 <test_extsb_cr_1>:
|
||||
100054: 7c 83 07 75 extsb. r3,r4
|
||||
100058: 7d 80 00 26 mfcr r12
|
||||
10005c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100060 <test_extsb_cr_1_constant>:
|
||||
100060: 38 80 00 0f li r4,15
|
||||
100064: 7c 83 07 75 extsb. r3,r4
|
||||
100068: 7d 80 00 26 mfcr r12
|
||||
10006c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100070 <test_extsb_cr_2>:
|
||||
100070: 7c 83 07 75 extsb. r3,r4
|
||||
100074: 7d 80 00 26 mfcr r12
|
||||
100078: 4e 80 00 20 blr
|
||||
|
||||
000000000010007c <test_extsb_cr_2_constant>:
|
||||
10007c: 38 80 00 7f li r4,127
|
||||
100080: 7c 83 07 75 extsb. r3,r4
|
||||
100084: 7d 80 00 26 mfcr r12
|
||||
100088: 4e 80 00 20 blr
|
||||
|
||||
000000000010008c <test_extsb_cr_3>:
|
||||
10008c: 7c 83 07 75 extsb. r3,r4
|
||||
100090: 7d 80 00 26 mfcr r12
|
||||
100094: 4e 80 00 20 blr
|
||||
|
||||
0000000000100098 <test_extsb_cr_3_constant>:
|
||||
100098: 38 80 00 80 li r4,128
|
||||
10009c: 7c 83 07 75 extsb. r3,r4
|
||||
1000a0: 7d 80 00 26 mfcr r12
|
||||
1000a4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a8 <test_extsb_cr_4>:
|
||||
1000a8: 7c 83 07 75 extsb. r3,r4
|
||||
1000ac: 7d 80 00 26 mfcr r12
|
||||
1000b0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b4 <test_extsb_cr_4_constant>:
|
||||
1000b4: 38 80 0f 7f li r4,3967
|
||||
1000b8: 7c 84 20 f8 not r4,r4
|
||||
1000bc: 7c 83 07 75 extsb. r3,r4
|
||||
1000c0: 7d 80 00 26 mfcr r12
|
||||
1000c4: 4e 80 00 20 blr
|
|
@ -0,0 +1,16 @@
|
|||
0000000000000000 t test_extsb_1
|
||||
0000000000000008 t test_extsb_1_constant
|
||||
0000000000000014 t test_extsb_2
|
||||
000000000000001c t test_extsb_2_constant
|
||||
0000000000000028 t test_extsb_3
|
||||
0000000000000030 t test_extsb_3_constant
|
||||
000000000000003c t test_extsb_4
|
||||
0000000000000044 t test_extsb_4_constant
|
||||
0000000000000054 t test_extsb_cr_1
|
||||
0000000000000060 t test_extsb_cr_1_constant
|
||||
0000000000000070 t test_extsb_cr_2
|
||||
000000000000007c t test_extsb_cr_2_constant
|
||||
000000000000008c t test_extsb_cr_3
|
||||
0000000000000098 t test_extsb_cr_3_constant
|
||||
00000000000000a8 t test_extsb_cr_4
|
||||
00000000000000b4 t test_extsb_cr_4_constant
|
Binary file not shown.
|
@ -0,0 +1,87 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_extsh_1>:
|
||||
100000: 7c 83 07 34 extsh r3,r4
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_extsh_1_constant>:
|
||||
100008: 38 80 00 0f li r4,15
|
||||
10000c: 7c 83 07 34 extsh r3,r4
|
||||
100010: 4e 80 00 20 blr
|
||||
|
||||
0000000000100014 <test_extsh_2>:
|
||||
100014: 7c 83 07 34 extsh r3,r4
|
||||
100018: 4e 80 00 20 blr
|
||||
|
||||
000000000010001c <test_extsh_2_constant>:
|
||||
10001c: 38 80 7f ff li r4,32767
|
||||
100020: 7c 83 07 34 extsh r3,r4
|
||||
100024: 4e 80 00 20 blr
|
||||
|
||||
0000000000100028 <test_extsh_3>:
|
||||
100028: 7c 83 07 34 extsh r3,r4
|
||||
10002c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100030 <test_extsh_3_constant>:
|
||||
100030: 38 80 00 80 li r4,128
|
||||
100034: 78 84 45 e4 rldicr r4,r4,8,55
|
||||
100038: 7c 83 07 34 extsh r3,r4
|
||||
10003c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100040 <test_extsh_4>:
|
||||
100040: 7c 83 07 34 extsh r3,r4
|
||||
100044: 4e 80 00 20 blr
|
||||
|
||||
0000000000100048 <test_extsh_4_constant>:
|
||||
100048: 38 80 0f 7f li r4,3967
|
||||
10004c: 7c 84 20 f8 not r4,r4
|
||||
100050: 78 84 45 e4 rldicr r4,r4,8,55
|
||||
100054: 7c 83 07 34 extsh r3,r4
|
||||
100058: 4e 80 00 20 blr
|
||||
|
||||
000000000010005c <test_extsh_cr_1>:
|
||||
10005c: 7c 83 07 35 extsh. r3,r4
|
||||
100060: 7d 80 00 26 mfcr r12
|
||||
100064: 4e 80 00 20 blr
|
||||
|
||||
0000000000100068 <test_extsh_cr_1_constant>:
|
||||
100068: 38 80 00 0f li r4,15
|
||||
10006c: 7c 83 07 35 extsh. r3,r4
|
||||
100070: 7d 80 00 26 mfcr r12
|
||||
100074: 4e 80 00 20 blr
|
||||
|
||||
0000000000100078 <test_extsh_cr_2>:
|
||||
100078: 7c 83 07 35 extsh. r3,r4
|
||||
10007c: 7d 80 00 26 mfcr r12
|
||||
100080: 4e 80 00 20 blr
|
||||
|
||||
0000000000100084 <test_extsh_cr_2_constant>:
|
||||
100084: 38 80 7f ff li r4,32767
|
||||
100088: 7c 83 07 35 extsh. r3,r4
|
||||
10008c: 7d 80 00 26 mfcr r12
|
||||
100090: 4e 80 00 20 blr
|
||||
|
||||
0000000000100094 <test_extsh_cr_3>:
|
||||
100094: 7c 83 07 35 extsh. r3,r4
|
||||
100098: 7d 80 00 26 mfcr r12
|
||||
10009c: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a0 <test_extsh_cr_3_constant>:
|
||||
1000a0: 38 80 00 80 li r4,128
|
||||
1000a4: 78 84 45 e4 rldicr r4,r4,8,55
|
||||
1000a8: 7c 83 07 35 extsh. r3,r4
|
||||
1000ac: 7d 80 00 26 mfcr r12
|
||||
1000b0: 4e 80 00 20 blr
|
||||
|
||||
00000000001000b4 <test_extsh_cr_4>:
|
||||
1000b4: 7c 83 07 35 extsh. r3,r4
|
||||
1000b8: 7d 80 00 26 mfcr r12
|
||||
1000bc: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c0 <test_extsh_cr_4_constant>:
|
||||
1000c0: 38 80 0f 7f li r4,3967
|
||||
1000c4: 7c 84 20 f8 not r4,r4
|
||||
1000c8: 78 84 45 e4 rldicr r4,r4,8,55
|
||||
1000cc: 7c 83 07 35 extsh. r3,r4
|
||||
1000d0: 7d 80 00 26 mfcr r12
|
||||
1000d4: 4e 80 00 20 blr
|
|
@ -0,0 +1,16 @@
|
|||
0000000000000000 t test_extsh_1
|
||||
0000000000000008 t test_extsh_1_constant
|
||||
0000000000000014 t test_extsh_2
|
||||
000000000000001c t test_extsh_2_constant
|
||||
0000000000000028 t test_extsh_3
|
||||
0000000000000030 t test_extsh_3_constant
|
||||
0000000000000040 t test_extsh_4
|
||||
0000000000000048 t test_extsh_4_constant
|
||||
000000000000005c t test_extsh_cr_1
|
||||
0000000000000068 t test_extsh_cr_1_constant
|
||||
0000000000000078 t test_extsh_cr_2
|
||||
0000000000000084 t test_extsh_cr_2_constant
|
||||
0000000000000094 t test_extsh_cr_3
|
||||
00000000000000a0 t test_extsh_cr_3_constant
|
||||
00000000000000b4 t test_extsh_cr_4
|
||||
00000000000000c0 t test_extsh_cr_4_constant
|
Binary file not shown.
|
@ -0,0 +1,89 @@
|
|||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_extsw_1>:
|
||||
100000: 7c 83 07 b4 extsw r3,r4
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_extsw_1_constant>:
|
||||
100008: 38 80 00 0f li r4,15
|
||||
10000c: 7c 83 07 b4 extsw r3,r4
|
||||
100010: 4e 80 00 20 blr
|
||||
|
||||
0000000000100014 <test_extsw_2>:
|
||||
100014: 7c 83 07 b4 extsw r3,r4
|
||||
100018: 4e 80 00 20 blr
|
||||
|
||||
000000000010001c <test_extsw_2_constant>:
|
||||
10001c: 3c 80 7f ff lis r4,32767
|
||||
100020: 60 84 ff ff ori r4,r4,65535
|
||||
100024: 7c 83 07 b4 extsw r3,r4
|
||||
100028: 4e 80 00 20 blr
|
||||
|
||||
000000000010002c <test_extsw_3>:
|
||||
10002c: 7c 83 07 b4 extsw r3,r4
|
||||
100030: 4e 80 00 20 blr
|
||||
|
||||
0000000000100034 <test_extsw_3_constant>:
|
||||
100034: 38 80 00 80 li r4,128
|
||||
100038: 78 84 c1 e4 rldicr r4,r4,24,39
|
||||
10003c: 7c 83 07 b4 extsw r3,r4
|
||||
100040: 4e 80 00 20 blr
|
||||
|
||||
0000000000100044 <test_extsw_4>:
|
||||
100044: 7c 83 07 b4 extsw r3,r4
|
||||
100048: 4e 80 00 20 blr
|
||||
|
||||
000000000010004c <test_extsw_4_constant>:
|
||||
10004c: 38 80 0f 7f li r4,3967
|
||||
100050: 7c 84 20 f8 not r4,r4
|
||||
100054: 78 84 c1 e4 rldicr r4,r4,24,39
|
||||
100058: 7c 83 07 b4 extsw r3,r4
|
||||
10005c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100060 <test_extsw_cr_1>:
|
||||
100060: 7c 83 07 b5 extsw. r3,r4
|
||||
100064: 7d 80 00 26 mfcr r12
|
||||
100068: 4e 80 00 20 blr
|
||||
|
||||
000000000010006c <test_extsw_cr_1_constant>:
|
||||
10006c: 38 80 00 0f li r4,15
|
||||
100070: 7c 83 07 b5 extsw. r3,r4
|
||||
100074: 7d 80 00 26 mfcr r12
|
||||
100078: 4e 80 00 20 blr
|
||||
|
||||
000000000010007c <test_extsw_cr_2>:
|
||||
10007c: 7c 83 07 b5 extsw. r3,r4
|
||||
100080: 7d 80 00 26 mfcr r12
|
||||
100084: 4e 80 00 20 blr
|
||||
|
||||
0000000000100088 <test_extsw_cr_2_constant>:
|
||||
100088: 3c 80 7f ff lis r4,32767
|
||||
10008c: 60 84 ff ff ori r4,r4,65535
|
||||
100090: 7c 83 07 b5 extsw. r3,r4
|
||||
100094: 7d 80 00 26 mfcr r12
|
||||
100098: 4e 80 00 20 blr
|
||||
|
||||
000000000010009c <test_extsw_cr_3>:
|
||||
10009c: 7c 83 07 b5 extsw. r3,r4
|
||||
1000a0: 7d 80 00 26 mfcr r12
|
||||
1000a4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000a8 <test_extsw_cr_3_constant>:
|
||||
1000a8: 38 80 00 80 li r4,128
|
||||
1000ac: 78 84 c1 e4 rldicr r4,r4,24,39
|
||||
1000b0: 7c 83 07 b5 extsw. r3,r4
|
||||
1000b4: 7d 80 00 26 mfcr r12
|
||||
1000b8: 4e 80 00 20 blr
|
||||
|
||||
00000000001000bc <test_extsw_cr_4>:
|
||||
1000bc: 7c 83 07 b5 extsw. r3,r4
|
||||
1000c0: 7d 80 00 26 mfcr r12
|
||||
1000c4: 4e 80 00 20 blr
|
||||
|
||||
00000000001000c8 <test_extsw_cr_4_constant>:
|
||||
1000c8: 38 80 0f 7f li r4,3967
|
||||
1000cc: 7c 84 20 f8 not r4,r4
|
||||
1000d0: 78 84 c1 e4 rldicr r4,r4,24,39
|
||||
1000d4: 7c 83 07 b5 extsw. r3,r4
|
||||
1000d8: 7d 80 00 26 mfcr r12
|
||||
1000dc: 4e 80 00 20 blr
|
|
@ -0,0 +1,16 @@
|
|||
0000000000000000 t test_extsw_1
|
||||
0000000000000008 t test_extsw_1_constant
|
||||
0000000000000014 t test_extsw_2
|
||||
000000000000001c t test_extsw_2_constant
|
||||
000000000000002c t test_extsw_3
|
||||
0000000000000034 t test_extsw_3_constant
|
||||
0000000000000044 t test_extsw_4
|
||||
000000000000004c t test_extsw_4_constant
|
||||
0000000000000060 t test_extsw_cr_1
|
||||
000000000000006c t test_extsw_cr_1_constant
|
||||
000000000000007c t test_extsw_cr_2
|
||||
0000000000000088 t test_extsw_cr_2_constant
|
||||
000000000000009c t test_extsw_cr_3
|
||||
00000000000000a8 t test_extsw_cr_3_constant
|
||||
00000000000000bc t test_extsw_cr_4
|
||||
00000000000000c8 t test_extsw_cr_4_constant
|
|
@ -16,23 +16,23 @@ test_andi_cr_1_constant:
|
|||
#_ REGISTER_OUT r11 0x0000CAFE
|
||||
#_ REGISTER_OUT r12 0x40000000
|
||||
|
||||
#test_andi_cr_2:
|
||||
# #_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
# andi. r11, r5, 0
|
||||
# mfcr r12
|
||||
# blr
|
||||
# #_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
# #_ REGISTER_OUT r11 0
|
||||
# #_ REGISTER_OUT r12 0x20000000
|
||||
test_andi_cr_2:
|
||||
#_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
andi. r11, r5, 0
|
||||
mfcr r12
|
||||
blr
|
||||
#_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
#_ REGISTER_OUT r11 0
|
||||
#_ REGISTER_OUT r12 0x20000000
|
||||
|
||||
#test_andi_cr_2_constant:
|
||||
# #_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
# andi. r11, r5, 0
|
||||
# mfcr r12
|
||||
# blr
|
||||
# #_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
# #_ REGISTER_OUT r11 0
|
||||
# #_ REGISTER_OUT r12 0x20000000
|
||||
test_andi_cr_2_constant:
|
||||
#_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
andi. r11, r5, 0
|
||||
mfcr r12
|
||||
blr
|
||||
#_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
#_ REGISTER_OUT r11 0
|
||||
#_ REGISTER_OUT r12 0x20000000
|
||||
|
||||
test_andi_cr_3:
|
||||
#_ REGISTER_IN r5 0
|
||||
|
|
|
@ -16,23 +16,23 @@ test_andis_cr_1_constant:
|
|||
#_ REGISTER_OUT r11 0xCAFE0000
|
||||
#_ REGISTER_OUT r12 0x80000000
|
||||
|
||||
#test_andis_cr_2:
|
||||
# #_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
# andis. r11, r5, 0
|
||||
# mfcr r12
|
||||
# blr
|
||||
# #_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
# #_ REGISTER_OUT r11 0
|
||||
# #_ REGISTER_OUT r12 0x20000000
|
||||
test_andis_cr_2:
|
||||
#_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
andis. r11, r5, 0
|
||||
mfcr r12
|
||||
blr
|
||||
#_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
#_ REGISTER_OUT r11 0
|
||||
#_ REGISTER_OUT r12 0x20000000
|
||||
|
||||
#test_andis_cr_2_constant:
|
||||
# #_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
# andis. r11, r5, 0
|
||||
# mfcr r12
|
||||
# blr
|
||||
# #_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
# #_ REGISTER_OUT r11 0
|
||||
# #_ REGISTER_OUT r12 0x20000000
|
||||
test_andis_cr_2_constant:
|
||||
#_ REGISTER_IN r5 0xFFFFFFFFFFFFFFFF
|
||||
andis. r11, r5, 0
|
||||
mfcr r12
|
||||
blr
|
||||
#_ REGISTER_OUT r5 0xFFFFFFFFFFFFFFFF
|
||||
#_ REGISTER_OUT r11 0
|
||||
#_ REGISTER_OUT r12 0x20000000
|
||||
|
||||
test_andis_cr_3:
|
||||
#_ REGISTER_IN r5 0
|
||||
|
|
|
@ -1196,7 +1196,8 @@ Value* HIRBuilder::CompareXX(const OpcodeInfo& opcode, Value* value1,
|
|||
Value* value2) {
|
||||
ASSERT_TYPES_EQUAL(value1, value2);
|
||||
if (value1->IsConstant() && value2->IsConstant()) {
|
||||
return LoadConstant(value1->Compare(opcode.num, value2) ? 1 : 0);
|
||||
return LoadConstant(value1->Compare(opcode.num, value2) ? int8_t(1)
|
||||
: int8_t(0));
|
||||
}
|
||||
|
||||
Instr* i = AppendInstr(opcode, 0, AllocValue(INT8_TYPE));
|
||||
|
|
|
@ -244,7 +244,7 @@ bool Value::Add(Value* other) {
|
|||
}
|
||||
|
||||
bool Value::Sub(Value* other) {
|
||||
#define SUB_DID_CARRY(a, b) (b == 0 || a > (~(0-b)))
|
||||
#define SUB_DID_CARRY(a, b) (b == 0 || a > (~(0 - b)))
|
||||
assert_true(type == other->type);
|
||||
bool did_carry = false;
|
||||
switch (type) {
|
||||
|
@ -313,9 +313,12 @@ void Value::MulHi(Value* other, bool is_unsigned) {
|
|||
switch (type) {
|
||||
case INT32_TYPE:
|
||||
if (is_unsigned) {
|
||||
constant.i32 = (int32_t)(((uint64_t)((uint32_t)constant.i32) * (uint32_t)other->constant.i32) >> 32);
|
||||
constant.i32 = (int32_t)(((uint64_t)((uint32_t)constant.i32) *
|
||||
(uint32_t)other->constant.i32) >>
|
||||
32);
|
||||
} else {
|
||||
constant.i32 = (int32_t)(((int64_t)constant.i32 * (int64_t)other->constant.i32) >> 32);
|
||||
constant.i32 = (int32_t)(
|
||||
((int64_t)constant.i32 * (int64_t)other->constant.i32) >> 32);
|
||||
}
|
||||
break;
|
||||
case INT64_TYPE:
|
||||
|
@ -670,9 +673,132 @@ void Value::CountLeadingZeros(const Value* other) {
|
|||
}
|
||||
|
||||
bool Value::Compare(Opcode opcode, Value* other) {
|
||||
// TODO(benvanik): big matrix.
|
||||
assert_always();
|
||||
return false;
|
||||
assert_true(type == other->type);
|
||||
switch (other->type) {
|
||||
case INT8_TYPE:
|
||||
return CompareInt8(opcode, this, other);
|
||||
case INT16_TYPE:
|
||||
return CompareInt16(opcode, this, other);
|
||||
case INT32_TYPE:
|
||||
return CompareInt32(opcode, this, other);
|
||||
case INT64_TYPE:
|
||||
return CompareInt64(opcode, this, other);
|
||||
default:
|
||||
assert_unhandled_case(type);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool Value::CompareInt8(Opcode opcode, Value* a, Value* b) {
|
||||
switch (opcode) {
|
||||
case OPCODE_COMPARE_EQ:
|
||||
return a->constant.i8 == b->constant.i8;
|
||||
case OPCODE_COMPARE_NE:
|
||||
return a->constant.i8 != b->constant.i8;
|
||||
case OPCODE_COMPARE_SLT:
|
||||
return a->constant.i8 < b->constant.i8;
|
||||
case OPCODE_COMPARE_SLE:
|
||||
return a->constant.i8 <= b->constant.i8;
|
||||
case OPCODE_COMPARE_SGT:
|
||||
return a->constant.i8 > b->constant.i8;
|
||||
case OPCODE_COMPARE_SGE:
|
||||
return a->constant.i8 >= b->constant.i8;
|
||||
case OPCODE_COMPARE_ULT:
|
||||
return uint8_t(a->constant.i8) < uint8_t(b->constant.i8);
|
||||
case OPCODE_COMPARE_ULE:
|
||||
return uint8_t(a->constant.i8) <= uint8_t(b->constant.i8);
|
||||
case OPCODE_COMPARE_UGT:
|
||||
return uint8_t(a->constant.i8) > uint8_t(b->constant.i8);
|
||||
case OPCODE_COMPARE_UGE:
|
||||
return uint8_t(a->constant.i8) >= uint8_t(b->constant.i8);
|
||||
default:
|
||||
assert_unhandled_case(opcode);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool Value::CompareInt16(Opcode opcode, Value* a, Value* b) {
|
||||
switch (opcode) {
|
||||
case OPCODE_COMPARE_EQ:
|
||||
return a->constant.i16 == b->constant.i16;
|
||||
case OPCODE_COMPARE_NE:
|
||||
return a->constant.i16 != b->constant.i16;
|
||||
case OPCODE_COMPARE_SLT:
|
||||
return a->constant.i16 < b->constant.i16;
|
||||
case OPCODE_COMPARE_SLE:
|
||||
return a->constant.i16 <= b->constant.i16;
|
||||
case OPCODE_COMPARE_SGT:
|
||||
return a->constant.i16 > b->constant.i16;
|
||||
case OPCODE_COMPARE_SGE:
|
||||
return a->constant.i16 >= b->constant.i16;
|
||||
case OPCODE_COMPARE_ULT:
|
||||
return uint16_t(a->constant.i16) < uint16_t(b->constant.i16);
|
||||
case OPCODE_COMPARE_ULE:
|
||||
return uint16_t(a->constant.i16) <= uint16_t(b->constant.i16);
|
||||
case OPCODE_COMPARE_UGT:
|
||||
return uint16_t(a->constant.i16) > uint16_t(b->constant.i16);
|
||||
case OPCODE_COMPARE_UGE:
|
||||
return uint16_t(a->constant.i16) >= uint16_t(b->constant.i16);
|
||||
default:
|
||||
assert_unhandled_case(opcode);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool Value::CompareInt32(Opcode opcode, Value* a, Value* b) {
|
||||
switch (opcode) {
|
||||
case OPCODE_COMPARE_EQ:
|
||||
return a->constant.i32 == b->constant.i32;
|
||||
case OPCODE_COMPARE_NE:
|
||||
return a->constant.i32 != b->constant.i32;
|
||||
case OPCODE_COMPARE_SLT:
|
||||
return a->constant.i32 < b->constant.i32;
|
||||
case OPCODE_COMPARE_SLE:
|
||||
return a->constant.i32 <= b->constant.i32;
|
||||
case OPCODE_COMPARE_SGT:
|
||||
return a->constant.i32 > b->constant.i32;
|
||||
case OPCODE_COMPARE_SGE:
|
||||
return a->constant.i32 >= b->constant.i32;
|
||||
case OPCODE_COMPARE_ULT:
|
||||
return uint32_t(a->constant.i32) < uint32_t(b->constant.i32);
|
||||
case OPCODE_COMPARE_ULE:
|
||||
return uint32_t(a->constant.i32) <= uint32_t(b->constant.i32);
|
||||
case OPCODE_COMPARE_UGT:
|
||||
return uint32_t(a->constant.i32) > uint32_t(b->constant.i32);
|
||||
case OPCODE_COMPARE_UGE:
|
||||
return uint32_t(a->constant.i32) >= uint32_t(b->constant.i32);
|
||||
default:
|
||||
assert_unhandled_case(opcode);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool Value::CompareInt64(Opcode opcode, Value* a, Value* b) {
|
||||
switch (opcode) {
|
||||
case OPCODE_COMPARE_EQ:
|
||||
return a->constant.i64 == b->constant.i64;
|
||||
case OPCODE_COMPARE_NE:
|
||||
return a->constant.i64 != b->constant.i64;
|
||||
case OPCODE_COMPARE_SLT:
|
||||
return a->constant.i64 < b->constant.i64;
|
||||
case OPCODE_COMPARE_SLE:
|
||||
return a->constant.i64 <= b->constant.i64;
|
||||
case OPCODE_COMPARE_SGT:
|
||||
return a->constant.i64 > b->constant.i64;
|
||||
case OPCODE_COMPARE_SGE:
|
||||
return a->constant.i64 >= b->constant.i64;
|
||||
case OPCODE_COMPARE_ULT:
|
||||
return uint64_t(a->constant.i64) < uint64_t(b->constant.i64);
|
||||
case OPCODE_COMPARE_ULE:
|
||||
return uint64_t(a->constant.i64) <= uint64_t(b->constant.i64);
|
||||
case OPCODE_COMPARE_UGT:
|
||||
return uint64_t(a->constant.i64) > uint64_t(b->constant.i64);
|
||||
case OPCODE_COMPARE_UGE:
|
||||
return uint64_t(a->constant.i64) >= uint64_t(b->constant.i64);
|
||||
default:
|
||||
assert_unhandled_case(opcode);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace hir
|
||||
|
|
|
@ -403,6 +403,12 @@ class Value {
|
|||
void ByteSwap();
|
||||
void CountLeadingZeros(const Value* other);
|
||||
bool Compare(Opcode opcode, Value* other);
|
||||
|
||||
private:
|
||||
static bool CompareInt8(Opcode opcode, Value* a, Value* b);
|
||||
static bool CompareInt16(Opcode opcode, Value* a, Value* b);
|
||||
static bool CompareInt32(Opcode opcode, Value* a, Value* b);
|
||||
static bool CompareInt64(Opcode opcode, Value* a, Value* b);
|
||||
};
|
||||
|
||||
} // namespace hir
|
||||
|
|
Loading…
Reference in New Issue