mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
cbe: translate sparc ccr/icc/xcc registers to icc
C compilers do not distinguish between these.
This commit is contained in:
parent
1231aa9719
commit
0a9f666ea6
@ -5672,6 +5672,10 @@ fn airAsm(f: *Function, inst: Air.Inst.Index) !CValue {
|
||||
c_name_buf[0] = '$';
|
||||
@memcpy((&c_name_buf)[1..][0..field_name.len], field_name);
|
||||
break :name (&c_name_buf)[0 .. 1 + field_name.len];
|
||||
} else if (target.cpu.arch.isSPARC() and
|
||||
(mem.eql(u8, field_name, "ccr") or mem.eql(u8, field_name, "icc") or mem.eql(u8, field_name, "xcc"))) name: {
|
||||
// C compilers just use `icc` to encompass all of these.
|
||||
break :name "icc";
|
||||
} else field_name;
|
||||
|
||||
try w.print(" {f}", .{fmtStringLiteral(name, null)});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user