-
Notifications
You must be signed in to change notification settings - Fork 895
basic processing case shows no results with O2 #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Hi @hotislandn. I will bring this to the attention of the team. We will be in touch. |
Thanks. |
|
Hi @hotislandn. I will start investigating this issue soon. In the meantime, can you provide additional details, please? Did you try different GCC versions? Are you getting the same result with -O1 or -O3? What other flags are you using? |
|
|
Well, we tried to do the compile only test with the latest code base of threadx with GCC and LLVM today. Compile cmd for GCC: The instruction for "tm_basic_processing_counter" is at address 3e. Compile cmd for LLVM: The instructions at address 3e and 42 does the expected job, which is different from GCC. BTW, O1 and O3 for GCC does not solve the problem here. Hope those tedious logs helpful for this topic. |
PR checklist
When compiling with the arm-none-eabi-gcc 13.2.1 with "-O2" for v8-r, this test case just outputs "0" as the result.