ir3-disasm: run clang-format

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28457>
This commit is contained in:
Job Noorman 2024-03-28 17:34:39 +01:00 committed by Marge Bot
parent 56cda23459
commit b9d2dd0788

View file

@ -25,33 +25,33 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "util/os_file.h"
#include "ir3-isa.h"
static void
disasm_instr_cb(void *d, unsigned n, void *instr)
{
uint32_t *dwords = (uint32_t *)instr;
printf("%3d[%08x_%08x] ", n, dwords[1], dwords[0]);
uint32_t *dwords = (uint32_t *)instr;
printf("%3d[%08x_%08x] ", n, dwords[1], dwords[0]);
}
int
main(int argc, char **argv)
{
size_t sz;
void *raw = os_read_file(argv[1], &sz);
size_t sz;
void *raw = os_read_file(argv[1], &sz);
ir3_isa_disasm(raw, sz, stdout, &(struct isa_decode_options) {
.show_errors = true,
.branch_labels = true,
.pre_instr_cb = disasm_instr_cb,
});
ir3_isa_disasm(raw, sz, stdout,
&(struct isa_decode_options){
.show_errors = true,
.branch_labels = true,
.pre_instr_cb = disasm_instr_cb,
});
return 0;
return 0;
}