tbi.c 275 B

1234567891011121314
  1. // TEST_CONFIG OS=iphoneos ARCH=arm64
  2. #include "test.h"
  3. #ifndef __arm64__
  4. #error wrong architecture for TBI hardware feature
  5. #endif
  6. volatile int x = 123456;
  7. int main(void) {
  8. testassert(*(int *)((unsigned long)&x | 0xFF00000000000000ul) == 123456);
  9. succeed(__FILE__);
  10. }