Repository navigation
Commit 26604b9
Core: Give a helper call's value the sign its registry entry declares
The registry types ktime, pid, uid, random, cgroup_id and smp_processor_id
as unsigned, and undeclared locals initialised from them already took
that sign. The expression value did not: each emitter returns
(value, plain i64), so ktime() >> 1 was an ashr and pid() // 3 an sdiv.
The dispatcher now substitutes the registered descriptor when the widths
agree, in one place instead of in every emitter.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent c52a5f5 commit 26604b9
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
| 1079 | + | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
1087 | 1100 | | |
1088 | 1101 | | |
1089 | 1102 | | |
| |||
0 commit comments