bagel99 / llvm-my66000

This is a fork of the LLVM project. The code in branch my66000 supports Mitch Alsup's MY66000. The code in branch mcore supports the Motorola MCore.
http://llvm.org
Other
2 stars 2 forks source link

Unimplemented operand for __builtin_return_address and __builtin_frame_address(0) #41

Closed tkoenig1 closed 1 year ago

tkoenig1 commented 1 year ago

Reduced from the gcc testsuite.

The following functions hit an "unimplemented operand" message:

void test4() { volatile long a = (long)__builtin_return_address(0); }

and

void test4() { volatile long a = (long)__builtin_frame_address(0); }

I'm not sure that these even make sense on My 66000, it may be enough to just error out on an unimplemented builtin function.

bagel99 commented 1 year ago

Try commit ccd5046eb072.

tkoenig1 commented 1 year ago

No ICE, and the assembly looks reasonable.

Thanks!