Files
Toooba/Tests/isa/rv64ui-p-and.dump

490 lines
22 KiB
Plaintext

rv64ui-p-and: file format elf64-littleriscv
Disassembly of section .text.init:
0000000080000000 <_start>:
80000000: 04c0006f j 8000004c <reset_vector>
0000000080000004 <trap_vector>:
80000004: 34202f73 csrr t5,mcause
80000008: 00800f93 li t6,8
8000000c: 03ff0a63 beq t5,t6,80000040 <write_tohost>
80000010: 00900f93 li t6,9
80000014: 03ff0663 beq t5,t6,80000040 <write_tohost>
80000018: 00b00f93 li t6,11
8000001c: 03ff0263 beq t5,t6,80000040 <write_tohost>
80000020: 80000f17 auipc t5,0x80000
80000024: fe0f0f13 addi t5,t5,-32 # 0 <_start-0x80000000>
80000028: 000f0463 beqz t5,80000030 <trap_vector+0x2c>
8000002c: 000f0067 jr t5
80000030: 34202f73 csrr t5,mcause
80000034: 000f5463 bgez t5,8000003c <handle_exception>
80000038: 0040006f j 8000003c <handle_exception>
000000008000003c <handle_exception>:
8000003c: 5391e193 ori gp,gp,1337
0000000080000040 <write_tohost>:
80000040: 00001f17 auipc t5,0x1
80000044: fc3f2023 sw gp,-64(t5) # 80001000 <tohost>
80000048: ff9ff06f j 80000040 <write_tohost>
000000008000004c <reset_vector>:
8000004c: f1402573 csrr a0,mhartid
80000050: 00051063 bnez a0,80000050 <reset_vector+0x4>
80000054: 00000297 auipc t0,0x0
80000058: 01028293 addi t0,t0,16 # 80000064 <reset_vector+0x18>
8000005c: 30529073 csrw mtvec,t0
80000060: 18005073 csrwi satp,0
80000064: 00000297 auipc t0,0x0
80000068: 02428293 addi t0,t0,36 # 80000088 <reset_vector+0x3c>
8000006c: 30529073 csrw mtvec,t0
80000070: 0010029b addiw t0,zero,1
80000074: 03529293 slli t0,t0,0x35
80000078: fff28293 addi t0,t0,-1
8000007c: 3b029073 csrw pmpaddr0,t0
80000080: 01f00293 li t0,31
80000084: 3a029073 csrw pmpcfg0,t0
80000088: 00000297 auipc t0,0x0
8000008c: 01828293 addi t0,t0,24 # 800000a0 <reset_vector+0x54>
80000090: 30529073 csrw mtvec,t0
80000094: 30205073 csrwi medeleg,0
80000098: 30305073 csrwi mideleg,0
8000009c: 30405073 csrwi mie,0
800000a0: 00000193 li gp,0
800000a4: 00000297 auipc t0,0x0
800000a8: f6028293 addi t0,t0,-160 # 80000004 <trap_vector>
800000ac: 30529073 csrw mtvec,t0
800000b0: 00100513 li a0,1
800000b4: 01f51513 slli a0,a0,0x1f
800000b8: 00055863 bgez a0,800000c8 <reset_vector+0x7c>
800000bc: 0ff0000f fence
800000c0: 00100193 li gp,1
800000c4: 00000073 ecall
800000c8: 80000297 auipc t0,0x80000
800000cc: f3828293 addi t0,t0,-200 # 0 <_start-0x80000000>
800000d0: 00028e63 beqz t0,800000ec <reset_vector+0xa0>
800000d4: 10529073 csrw stvec,t0
800000d8: 0000b2b7 lui t0,0xb
800000dc: 1092829b addiw t0,t0,265
800000e0: 30229073 csrw medeleg,t0
800000e4: 30202373 csrr t1,medeleg
800000e8: f4629ae3 bne t0,t1,8000003c <handle_exception>
800000ec: 30005073 csrwi mstatus,0
800000f0: 00000297 auipc t0,0x0
800000f4: 01428293 addi t0,t0,20 # 80000104 <test_2>
800000f8: 34129073 csrw mepc,t0
800000fc: f1402573 csrr a0,mhartid
80000100: 30200073 mret
0000000080000104 <test_2>:
80000104: 000100b7 lui ra,0x10
80000108: f010809b addiw ra,ra,-255
8000010c: 01009093 slli ra,ra,0x10
80000110: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000114: 0f0f1137 lui sp,0xf0f1
80000118: f0f1011b addiw sp,sp,-241
8000011c: 0020ff33 and t5,ra,sp
80000120: 0f001eb7 lui t4,0xf001
80000124: f00e8e9b addiw t4,t4,-256
80000128: 00200193 li gp,2
8000012c: 53df1863 bne t5,t4,8000065c <fail>
0000000080000130 <test_3>:
80000130: 0ff010b7 lui ra,0xff01
80000134: ff00809b addiw ra,ra,-16
80000138: 000f1137 lui sp,0xf1
8000013c: f0f1011b addiw sp,sp,-241
80000140: 00c11113 slli sp,sp,0xc
80000144: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
80000148: 0020ff33 and t5,ra,sp
8000014c: 00f00eb7 lui t4,0xf00
80000150: 0f0e8e9b addiw t4,t4,240
80000154: 00300193 li gp,3
80000158: 51df1263 bne t5,t4,8000065c <fail>
000000008000015c <test_4>:
8000015c: 00ff00b7 lui ra,0xff0
80000160: 0ff0809b addiw ra,ra,255
80000164: 0f0f1137 lui sp,0xf0f1
80000168: f0f1011b addiw sp,sp,-241
8000016c: 0020ff33 and t5,ra,sp
80000170: 000f0eb7 lui t4,0xf0
80000174: 00fe8e9b addiw t4,t4,15
80000178: 00400193 li gp,4
8000017c: 4fdf1063 bne t5,t4,8000065c <fail>
0000000080000180 <test_5>:
80000180: 000f00b7 lui ra,0xf0
80000184: 0ff0809b addiw ra,ra,255
80000188: 00c09093 slli ra,ra,0xc
8000018c: 00f08093 addi ra,ra,15 # f000f <_start-0x7ff0fff1>
80000190: 000f1137 lui sp,0xf1
80000194: f0f1011b addiw sp,sp,-241
80000198: 00c11113 slli sp,sp,0xc
8000019c: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
800001a0: 0020ff33 and t5,ra,sp
800001a4: 000f0eb7 lui t4,0xf0
800001a8: 00fe8e9b addiw t4,t4,15
800001ac: 00ce9e93 slli t4,t4,0xc
800001b0: 00500193 li gp,5
800001b4: 4bdf1463 bne t5,t4,8000065c <fail>
00000000800001b8 <test_6>:
800001b8: 000100b7 lui ra,0x10
800001bc: f010809b addiw ra,ra,-255
800001c0: 01009093 slli ra,ra,0x10
800001c4: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
800001c8: 0f0f1137 lui sp,0xf0f1
800001cc: f0f1011b addiw sp,sp,-241
800001d0: 0020f0b3 and ra,ra,sp
800001d4: 0f001eb7 lui t4,0xf001
800001d8: f00e8e9b addiw t4,t4,-256
800001dc: 00600193 li gp,6
800001e0: 47d09e63 bne ra,t4,8000065c <fail>
00000000800001e4 <test_7>:
800001e4: 0ff010b7 lui ra,0xff01
800001e8: ff00809b addiw ra,ra,-16
800001ec: 000f1137 lui sp,0xf1
800001f0: f0f1011b addiw sp,sp,-241
800001f4: 00c11113 slli sp,sp,0xc
800001f8: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
800001fc: 0020f133 and sp,ra,sp
80000200: 00f00eb7 lui t4,0xf00
80000204: 0f0e8e9b addiw t4,t4,240
80000208: 00700193 li gp,7
8000020c: 45d11863 bne sp,t4,8000065c <fail>
0000000080000210 <test_8>:
80000210: 000100b7 lui ra,0x10
80000214: f010809b addiw ra,ra,-255
80000218: 01009093 slli ra,ra,0x10
8000021c: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000220: 0010f0b3 and ra,ra,ra
80000224: 00010eb7 lui t4,0x10
80000228: f01e8e9b addiw t4,t4,-255
8000022c: 010e9e93 slli t4,t4,0x10
80000230: f00e8e93 addi t4,t4,-256 # ff00 <_start-0x7fff0100>
80000234: 00800193 li gp,8
80000238: 43d09263 bne ra,t4,8000065c <fail>
000000008000023c <test_9>:
8000023c: 00000213 li tp,0
80000240: 000100b7 lui ra,0x10
80000244: f010809b addiw ra,ra,-255
80000248: 01009093 slli ra,ra,0x10
8000024c: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000250: 0f0f1137 lui sp,0xf0f1
80000254: f0f1011b addiw sp,sp,-241
80000258: 0020ff33 and t5,ra,sp
8000025c: 000f0313 mv t1,t5
80000260: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000264: 00200293 li t0,2
80000268: fc521ce3 bne tp,t0,80000240 <test_9+0x4>
8000026c: 0f001eb7 lui t4,0xf001
80000270: f00e8e9b addiw t4,t4,-256
80000274: 00900193 li gp,9
80000278: 3fd31263 bne t1,t4,8000065c <fail>
000000008000027c <test_10>:
8000027c: 00000213 li tp,0
80000280: 0ff010b7 lui ra,0xff01
80000284: ff00809b addiw ra,ra,-16
80000288: 000f1137 lui sp,0xf1
8000028c: f0f1011b addiw sp,sp,-241
80000290: 00c11113 slli sp,sp,0xc
80000294: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
80000298: 0020ff33 and t5,ra,sp
8000029c: 00000013 nop
800002a0: 000f0313 mv t1,t5
800002a4: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
800002a8: 00200293 li t0,2
800002ac: fc521ae3 bne tp,t0,80000280 <test_10+0x4>
800002b0: 00f00eb7 lui t4,0xf00
800002b4: 0f0e8e9b addiw t4,t4,240
800002b8: 00a00193 li gp,10
800002bc: 3bd31063 bne t1,t4,8000065c <fail>
00000000800002c0 <test_11>:
800002c0: 00000213 li tp,0
800002c4: 00ff00b7 lui ra,0xff0
800002c8: 0ff0809b addiw ra,ra,255
800002cc: 0f0f1137 lui sp,0xf0f1
800002d0: f0f1011b addiw sp,sp,-241
800002d4: 0020ff33 and t5,ra,sp
800002d8: 00000013 nop
800002dc: 00000013 nop
800002e0: 000f0313 mv t1,t5
800002e4: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
800002e8: 00200293 li t0,2
800002ec: fc521ce3 bne tp,t0,800002c4 <test_11+0x4>
800002f0: 000f0eb7 lui t4,0xf0
800002f4: 00fe8e9b addiw t4,t4,15
800002f8: 00b00193 li gp,11
800002fc: 37d31063 bne t1,t4,8000065c <fail>
0000000080000300 <test_12>:
80000300: 00000213 li tp,0
80000304: 000100b7 lui ra,0x10
80000308: f010809b addiw ra,ra,-255
8000030c: 01009093 slli ra,ra,0x10
80000310: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000314: 0f0f1137 lui sp,0xf0f1
80000318: f0f1011b addiw sp,sp,-241
8000031c: 0020ff33 and t5,ra,sp
80000320: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000324: 00200293 li t0,2
80000328: fc521ee3 bne tp,t0,80000304 <test_12+0x4>
8000032c: 0f001eb7 lui t4,0xf001
80000330: f00e8e9b addiw t4,t4,-256
80000334: 00c00193 li gp,12
80000338: 33df1263 bne t5,t4,8000065c <fail>
000000008000033c <test_13>:
8000033c: 00000213 li tp,0
80000340: 0ff010b7 lui ra,0xff01
80000344: ff00809b addiw ra,ra,-16
80000348: 000f1137 lui sp,0xf1
8000034c: f0f1011b addiw sp,sp,-241
80000350: 00c11113 slli sp,sp,0xc
80000354: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
80000358: 00000013 nop
8000035c: 0020ff33 and t5,ra,sp
80000360: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000364: 00200293 li t0,2
80000368: fc521ce3 bne tp,t0,80000340 <test_13+0x4>
8000036c: 00f00eb7 lui t4,0xf00
80000370: 0f0e8e9b addiw t4,t4,240
80000374: 00d00193 li gp,13
80000378: 2fdf1263 bne t5,t4,8000065c <fail>
000000008000037c <test_14>:
8000037c: 00000213 li tp,0
80000380: 00ff00b7 lui ra,0xff0
80000384: 0ff0809b addiw ra,ra,255
80000388: 0f0f1137 lui sp,0xf0f1
8000038c: f0f1011b addiw sp,sp,-241
80000390: 00000013 nop
80000394: 00000013 nop
80000398: 0020ff33 and t5,ra,sp
8000039c: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
800003a0: 00200293 li t0,2
800003a4: fc521ee3 bne tp,t0,80000380 <test_14+0x4>
800003a8: 000f0eb7 lui t4,0xf0
800003ac: 00fe8e9b addiw t4,t4,15
800003b0: 00e00193 li gp,14
800003b4: 2bdf1463 bne t5,t4,8000065c <fail>
00000000800003b8 <test_15>:
800003b8: 00000213 li tp,0
800003bc: 000100b7 lui ra,0x10
800003c0: f010809b addiw ra,ra,-255
800003c4: 01009093 slli ra,ra,0x10
800003c8: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
800003cc: 00000013 nop
800003d0: 0f0f1137 lui sp,0xf0f1
800003d4: f0f1011b addiw sp,sp,-241
800003d8: 0020ff33 and t5,ra,sp
800003dc: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
800003e0: 00200293 li t0,2
800003e4: fc521ce3 bne tp,t0,800003bc <test_15+0x4>
800003e8: 0f001eb7 lui t4,0xf001
800003ec: f00e8e9b addiw t4,t4,-256
800003f0: 00f00193 li gp,15
800003f4: 27df1463 bne t5,t4,8000065c <fail>
00000000800003f8 <test_16>:
800003f8: 00000213 li tp,0
800003fc: 0ff010b7 lui ra,0xff01
80000400: ff00809b addiw ra,ra,-16
80000404: 00000013 nop
80000408: 000f1137 lui sp,0xf1
8000040c: f0f1011b addiw sp,sp,-241
80000410: 00c11113 slli sp,sp,0xc
80000414: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
80000418: 00000013 nop
8000041c: 0020ff33 and t5,ra,sp
80000420: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000424: 00200293 li t0,2
80000428: fc521ae3 bne tp,t0,800003fc <test_16+0x4>
8000042c: 00f00eb7 lui t4,0xf00
80000430: 0f0e8e9b addiw t4,t4,240
80000434: 01000193 li gp,16
80000438: 23df1263 bne t5,t4,8000065c <fail>
000000008000043c <test_17>:
8000043c: 00000213 li tp,0
80000440: 00ff00b7 lui ra,0xff0
80000444: 0ff0809b addiw ra,ra,255
80000448: 00000013 nop
8000044c: 00000013 nop
80000450: 0f0f1137 lui sp,0xf0f1
80000454: f0f1011b addiw sp,sp,-241
80000458: 0020ff33 and t5,ra,sp
8000045c: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000460: 00200293 li t0,2
80000464: fc521ee3 bne tp,t0,80000440 <test_17+0x4>
80000468: 000f0eb7 lui t4,0xf0
8000046c: 00fe8e9b addiw t4,t4,15
80000470: 01100193 li gp,17
80000474: 1fdf1463 bne t5,t4,8000065c <fail>
0000000080000478 <test_18>:
80000478: 00000213 li tp,0
8000047c: 0f0f1137 lui sp,0xf0f1
80000480: f0f1011b addiw sp,sp,-241
80000484: 000100b7 lui ra,0x10
80000488: f010809b addiw ra,ra,-255
8000048c: 01009093 slli ra,ra,0x10
80000490: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000494: 0020ff33 and t5,ra,sp
80000498: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
8000049c: 00200293 li t0,2
800004a0: fc521ee3 bne tp,t0,8000047c <test_18+0x4>
800004a4: 0f001eb7 lui t4,0xf001
800004a8: f00e8e9b addiw t4,t4,-256
800004ac: 01200193 li gp,18
800004b0: 1bdf1663 bne t5,t4,8000065c <fail>
00000000800004b4 <test_19>:
800004b4: 00000213 li tp,0
800004b8: 000f1137 lui sp,0xf1
800004bc: f0f1011b addiw sp,sp,-241
800004c0: 00c11113 slli sp,sp,0xc
800004c4: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
800004c8: 0ff010b7 lui ra,0xff01
800004cc: ff00809b addiw ra,ra,-16
800004d0: 00000013 nop
800004d4: 0020ff33 and t5,ra,sp
800004d8: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
800004dc: 00200293 li t0,2
800004e0: fc521ce3 bne tp,t0,800004b8 <test_19+0x4>
800004e4: 00f00eb7 lui t4,0xf00
800004e8: 0f0e8e9b addiw t4,t4,240
800004ec: 01300193 li gp,19
800004f0: 17df1663 bne t5,t4,8000065c <fail>
00000000800004f4 <test_20>:
800004f4: 00000213 li tp,0
800004f8: 0f0f1137 lui sp,0xf0f1
800004fc: f0f1011b addiw sp,sp,-241
80000500: 00ff00b7 lui ra,0xff0
80000504: 0ff0809b addiw ra,ra,255
80000508: 00000013 nop
8000050c: 00000013 nop
80000510: 0020ff33 and t5,ra,sp
80000514: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000518: 00200293 li t0,2
8000051c: fc521ee3 bne tp,t0,800004f8 <test_20+0x4>
80000520: 000f0eb7 lui t4,0xf0
80000524: 00fe8e9b addiw t4,t4,15
80000528: 01400193 li gp,20
8000052c: 13df1863 bne t5,t4,8000065c <fail>
0000000080000530 <test_21>:
80000530: 00000213 li tp,0
80000534: 0f0f1137 lui sp,0xf0f1
80000538: f0f1011b addiw sp,sp,-241
8000053c: 00000013 nop
80000540: 000100b7 lui ra,0x10
80000544: f010809b addiw ra,ra,-255
80000548: 01009093 slli ra,ra,0x10
8000054c: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000550: 0020ff33 and t5,ra,sp
80000554: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
80000558: 00200293 li t0,2
8000055c: fc521ce3 bne tp,t0,80000534 <test_21+0x4>
80000560: 0f001eb7 lui t4,0xf001
80000564: f00e8e9b addiw t4,t4,-256
80000568: 01500193 li gp,21
8000056c: 0fdf1863 bne t5,t4,8000065c <fail>
0000000080000570 <test_22>:
80000570: 00000213 li tp,0
80000574: 000f1137 lui sp,0xf1
80000578: f0f1011b addiw sp,sp,-241
8000057c: 00c11113 slli sp,sp,0xc
80000580: 0f010113 addi sp,sp,240 # f10f0 <_start-0x7ff0ef10>
80000584: 00000013 nop
80000588: 0ff010b7 lui ra,0xff01
8000058c: ff00809b addiw ra,ra,-16
80000590: 00000013 nop
80000594: 0020ff33 and t5,ra,sp
80000598: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
8000059c: 00200293 li t0,2
800005a0: fc521ae3 bne tp,t0,80000574 <test_22+0x4>
800005a4: 00f00eb7 lui t4,0xf00
800005a8: 0f0e8e9b addiw t4,t4,240
800005ac: 01600193 li gp,22
800005b0: 0bdf1663 bne t5,t4,8000065c <fail>
00000000800005b4 <test_23>:
800005b4: 00000213 li tp,0
800005b8: 0f0f1137 lui sp,0xf0f1
800005bc: f0f1011b addiw sp,sp,-241
800005c0: 00000013 nop
800005c4: 00000013 nop
800005c8: 00ff00b7 lui ra,0xff0
800005cc: 0ff0809b addiw ra,ra,255
800005d0: 0020ff33 and t5,ra,sp
800005d4: 00120213 addi tp,tp,1 # 1 <_start-0x7fffffff>
800005d8: 00200293 li t0,2
800005dc: fc521ee3 bne tp,t0,800005b8 <test_23+0x4>
800005e0: 000f0eb7 lui t4,0xf0
800005e4: 00fe8e9b addiw t4,t4,15
800005e8: 01700193 li gp,23
800005ec: 07df1863 bne t5,t4,8000065c <fail>
00000000800005f0 <test_24>:
800005f0: 000100b7 lui ra,0x10
800005f4: f010809b addiw ra,ra,-255
800005f8: 01009093 slli ra,ra,0x10
800005fc: f0008093 addi ra,ra,-256 # ff00 <_start-0x7fff0100>
80000600: 00107133 and sp,zero,ra
80000604: 00000e93 li t4,0
80000608: 01800193 li gp,24
8000060c: 05d11863 bne sp,t4,8000065c <fail>
0000000080000610 <test_25>:
80000610: 00ff00b7 lui ra,0xff0
80000614: 0ff0809b addiw ra,ra,255
80000618: 0000f133 and sp,ra,zero
8000061c: 00000e93 li t4,0
80000620: 01900193 li gp,25
80000624: 03d11c63 bne sp,t4,8000065c <fail>
0000000080000628 <test_26>:
80000628: 000070b3 and ra,zero,zero
8000062c: 00000e93 li t4,0
80000630: 01a00193 li gp,26
80000634: 03d09463 bne ra,t4,8000065c <fail>
0000000080000638 <test_27>:
80000638: 111110b7 lui ra,0x11111
8000063c: 1110809b addiw ra,ra,273
80000640: 22222137 lui sp,0x22222
80000644: 2221011b addiw sp,sp,546
80000648: 0020f033 and zero,ra,sp
8000064c: 00000e93 li t4,0
80000650: 01b00193 li gp,27
80000654: 01d01463 bne zero,t4,8000065c <fail>
80000658: 00301c63 bne zero,gp,80000670 <pass>
000000008000065c <fail>:
8000065c: 0ff0000f fence
80000660: 00018063 beqz gp,80000660 <fail+0x4>
80000664: 00119193 slli gp,gp,0x1
80000668: 0011e193 ori gp,gp,1
8000066c: 00000073 ecall
0000000080000670 <pass>:
80000670: 0ff0000f fence
80000674: 00100193 li gp,1
80000678: 00000073 ecall
8000067c: c0001073 unimp
80000680: 0000 unimp
80000682: 0000 unimp