diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2025-07-29 13:48:32 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2025-07-29 13:48:32 -0700 |
| commit | e869b9351bae90a57a4b86fef1b48e2e7e46348a (patch) | |
| tree | 00ad3196c1c2ae3d260fc35619451ff82acd8ae9 /src/check_builtin.cpp | |
| parent | e1fd69f573bcf8ba9c8cfc961a007ab23aa83135 (diff) | |
| parent | 861fa4ab68d07bc8f3827ca29946c79c7b3f744e (diff) | |
Merge remote-tracking branch 'live/master' into spall_v3
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 58fa44ec9..974224ed2 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -4713,6 +4713,15 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As } break; + case BuiltinProc_read_cycle_counter_frequency: + if (build_context.metrics.arch != TargetArch_arm64) { + error(call, "'%.*s' is only allowed on arm64 targets", LIT(builtin_name)); + return false; + } + operand->mode = Addressing_Value; + operand->type = t_i64; + break; + case BuiltinProc_read_cycle_counter: operand->mode = Addressing_Value; operand->type = t_i64; |