a.c (311B)
1 /* ADR_PREL_PG_HI21 + ADD_ABS_LO12_NC (address-of) + LDST64 store+load. */ 2 #include <stdint.h> 3 static uint64_t g; 4 int test_main(void) { 5 uint64_t* p = &g; /* ADD_ABS_LO12_NC */ 6 *p = UINT64_C(0xdeadbeefcafebabe); /* LDST64 store */ 7 return (*p == UINT64_C(0xdeadbeefcafebabe)) ? 0 : 1; 8 }