diff options
| author | gingerBill <bill@gingerbill.org> | 2020-11-24 15:18:20 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-11-24 15:18:20 +0000 |
| commit | 9c1c9693f26114499d0fb37bb692291ede8fa7ea (patch) | |
| tree | bd25fc2e16428bff7351db5d31108ecda874b9ab /src/ir_print.cpp | |
| parent | 776c3f4e90f5a8c2240ea084ffe94cce9f5525aa (diff) | |
Patch up gb.h
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index a6bfc75d3..cb71589c5 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1575,7 +1575,11 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) { break; case BuiltinProc_cpu_relax: - ir_write_str_lit(f, "call void asm sideeffect \"pause\", \"\"()"); + if (build_context.metrics.arch == TargetArch_amd64) { + ir_write_str_lit(f, "call void asm sideeffect \"pause\", \"\"()"); + } else { + // ir_write_str_lit(f, "call void asm sideeffect \"yield\", \"\"()"); + } break; default: GB_PANIC("Unknown inline code %d", instr->InlineCode.id); break; } |