Skip to content

Instantly share code, notes, and snippets.

View hcindyl's full-sized avatar

CindyLiu hcindyl

  • Google
  • Sunnyvale, CA
View GitHub Profile
@hcindyl
hcindyl / simple_mul_riscv_32_dispatch.txt
Last active June 22, 2021 05:16
simple_mul_dispatch debug
$ ${QEMU32_BIN} -cpu rv32 iree-build-riscv_rv32/iree/hal/local/elf/elf_module_test_binary
instr_ptr[i]: 0x331e0
instr_ptr[i]: 0x34214
instr_ptr[i]: 0x331fc
instr_ptr[i]: 0x33212
instr_ptr[i]: 0x35320
instr_ptr[i]: 0x35330
instr_ptr[i]: 0x331f8
instr_ptr[i]: 0x35334
instr_ptr[i]: 0x35338
@hcindyl
hcindyl / qemu-riscv32_in_asm.txt
Last active June 11, 2021 04:38
RV32 debug qemu asm
----------------
IN: iree_elf_call_i_pp
0x00012df4: 87aa mv a5,a0
0x00012df6: 852e mv a0,a1
0x00012df8: 85b2 mv a1,a2
0x00012dfa: 8782 jr a5
----------------
IN:
0x3fc5e200: ff010113 addi sp,sp,-16
00010480 <dispatch_tile_a>:
10480: 550c lw a1,40(a0)
10482: 418c lw a1,0(a1)
10484: 4611 li a2,4
10486: 02c5e963 bltu a1,a2,104b8 <dispatch_tile_a+0x38>
1048a: 5154 lw a3,36(a0)
1048c: 0025d513 srli a0,a1,0x2
10490: 4585 li a1,1
10492: 00a5e363 bltu a1,a0,10498 <dispatch_tile_a+0x18>
10496: 4505 li a0,1